From 28b14eb7613b83783430dc322ab30c6bba74cdce Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 1 Oct 2024 21:08:28 +0200 Subject: [PATCH] fix: bump codemp version, cancel promise --- build.lua | 2 +- lua/codemp/utils.lua | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/build.lua b/build.lua index 4170928..87b88ad 100644 --- a/build.lua +++ b/build.lua @@ -38,7 +38,7 @@ end local sep = '/' if os_uname.sysname == "Windows_NT" then sep = '\\' end -local version = "v0.7.2" +local version = "v0.7.3" local native_path = plugin_dir..sep.."lua"..sep.."codemp"..sep.."new-native."..ext local replace_native_path = plugin_dir..sep.."lua"..sep.."codemp"..sep.."native."..ext diff --git a/lua/codemp/utils.lua b/lua/codemp/utils.lua index fa468ab..93a86ed 100644 --- a/lua/codemp/utils.lua +++ b/lua/codemp/utils.lua @@ -46,10 +46,7 @@ local function async_poller(generator, callback) timer = vim.uv.new_timer(), stop = function (this) if this.promise ~= nil then - -- TODO the :abort() change still hasnt been merged, so check for its presence! - if this.promise.abort ~= nil then - this.promise:abort() - end + this.promise:cancel() end this.timer:stop() this.timer:close()