From fa97d34858fbb755e8bb6f161c49c18c7187eb4e Mon Sep 17 00:00:00 2001 From: Nghia Le Minh Date: Mon, 1 Nov 2021 20:29:50 +0700 Subject: fix(lsp): pass the enriched ctx to the client-side command (#16201) --- runtime/lua/vim/lsp/buf.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/lua') 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 -- cgit