mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
feat(lsp): deprecate execute_command with client:exec_cmd
This commit is contained in:

committed by
Lewis Russell

parent
39d79efa1e
commit
7a7747f1e4
@@ -548,15 +548,7 @@ local function on_complete_done()
|
||||
|
||||
local command = completion_item.command
|
||||
if command then
|
||||
client:_exec_cmd(command, { bufnr = bufnr }, nil, function()
|
||||
vim.lsp.log.warn(
|
||||
string.format(
|
||||
'Language server `%s` does not support command `%s`. This command may require a client extension.',
|
||||
client.name,
|
||||
command.command
|
||||
)
|
||||
)
|
||||
end)
|
||||
client:exec_cmd(command, { bufnr = bufnr })
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user