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

@@ -48,7 +48,7 @@ local function execute_lens(lens, bufnr, client_id)
local client = vim.lsp.get_client_by_id(client_id)
assert(client, 'Client is required to execute lens, client_id=' .. client_id)
client:_exec_cmd(lens.command, { bufnr = bufnr }, function(...)
client:exec_cmd(lens.command, { bufnr = bufnr }, function(...)
vim.lsp.handlers[ms.workspace_executeCommand](...)
M.refresh()
end)