aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
authorTobias Schmitz <tobiasschmitz2001@gmail.com>2025-03-15 12:23:01 +0100
committerChristian Clason <ch.clason+github@icloud.com>2025-03-15 15:56:47 +0100
commitf8d5811c717bbfa7b7d078211f4a5468eb0ff088 (patch)
tree833791be91eb4026d195312e6cd1689ff4441411 /runtime/lua/vim
parent026cfa28d0dccb7f1832d6fcca378518a4082fdb (diff)
downloadrneovim-f8d5811c717bbfa7b7d078211f4a5468eb0ff088.tar.gz
rneovim-f8d5811c717bbfa7b7d078211f4a5468eb0ff088.tar.bz2
rneovim-f8d5811c717bbfa7b7d078211f4a5468eb0ff088.zip
fix(lsp): correctly check for "codeAction/resolve" support
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/lsp/buf.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/buf.lua b/runtime/lua/vim/lsp/buf.lua
index 2da591e9bb..bd78f1ad50 100644
--- a/runtime/lua/vim/lsp/buf.lua
+++ b/runtime/lua/vim/lsp/buf.lua
@@ -1152,7 +1152,7 @@ local function on_code_action_results(results, opts)
return
end
- if not action.edit or not action.command and client:supports_method(ms.codeAction_resolve) then
+ if not (action.edit and action.command) and client:supports_method(ms.codeAction_resolve) then
client:request(ms.codeAction_resolve, action, function(err, resolved_action)
if err then
-- If resolve fails, try to apply the edit/command from the original code action.