fix(lsp): pass the enriched ctx to the client-side command (#16201)

This commit is contained in:
Nghia Le Minh
2021-11-01 20:29:50 +07:00
committed by GitHub
parent 7f4b7320f6
commit fa97d34858

View File

@@ -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