feat(lsp): deprecate execute_command with client:exec_cmd

This commit is contained in:
Lewis Russell
2024-10-24 12:11:27 +01:00
committed by Lewis Russell
parent 39d79efa1e
commit 7a7747f1e4
6 changed files with 34 additions and 36 deletions

View File

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