Skip to content

Commit

Permalink
Merge pull request #59 from creativenull/fix-executeCommand
Browse files Browse the repository at this point in the history
fix: ensure server supports executeCommand
  • Loading branch information
Shougo committed Apr 12, 2024
2 parents 93fe24b + b94f12d commit b84fb4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/ddc_source_lsp/internal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ end
---@param command lsp.Command
function M.execute(clientId, command)
local client = vim.lsp.get_client_by_id(clientId)
if client == nil then
if client == nil or not client.server_capabilities.executeCommandProvider then
return
end
command.title = nil
Expand Down

0 comments on commit b84fb4c

Please sign in to comment.