aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/buf.lua
diff options
context:
space:
mode:
authorNghia Le Minh <nghialm269@gmail.com>2021-11-01 20:29:50 +0700
committerGitHub <noreply@github.com>2021-11-01 14:29:50 +0100
commitfa97d34858fbb755e8bb6f161c49c18c7187eb4e (patch)
tree26c550021211b0f2948dc195573ef9720a518cd3 /runtime/lua/vim/lsp/buf.lua
parent7f4b7320f63eee37841b9b7608495a3f6f9d2fb7 (diff)
downloadrneovim-fa97d34858fbb755e8bb6f161c49c18c7187eb4e.tar.gz
rneovim-fa97d34858fbb755e8bb6f161c49c18c7187eb4e.tar.bz2
rneovim-fa97d34858fbb755e8bb6f161c49c18c7187eb4e.zip
fix(lsp): pass the enriched ctx to the client-side command (#16201)
Diffstat (limited to 'runtime/lua/vim/lsp/buf.lua')
-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 6d85039958..128f0b01ad 100644
--- a/runtime/lua/vim/lsp/buf.lua
+++ b/runtime/lua/vim/lsp/buf.lua
@@ -484,7 +484,7 @@ local function on_code_action_results(results, ctx)
if fn then
local enriched_ctx = vim.deepcopy(ctx)
enriched_ctx.client_id = client.id
- fn(command, ctx)
+ fn(command, enriched_ctx)
else
M.execute_command(command)
end