mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
fix(lsp): fix multi client handling in code action (#18869)
Fixes https://github.com/neovim/neovim/issues/18860
This commit is contained in:

committed by
GitHub

parent
214f866fe5
commit
e4df1c9b9e
@@ -752,7 +752,14 @@ local function on_code_action_results(results, ctx, options)
|
||||
enriched_ctx.client_id = client.id
|
||||
fn(command, enriched_ctx)
|
||||
else
|
||||
M.execute_command(command)
|
||||
-- Not using command directly to exclude extra properties,
|
||||
-- see https://github.com/python-lsp/python-lsp-server/issues/146
|
||||
local params = {
|
||||
command = command.command,
|
||||
arguments = command.arguments,
|
||||
workDoneToken = command.workDoneToken,
|
||||
}
|
||||
client.request('workspace/executeCommand', params, nil, ctx.bufnr)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user