Skip to content

Commit

Permalink
When sending an executeCommand request to the server, don't send the …
Browse files Browse the repository at this point in the history
…title field
  • Loading branch information
yegappan committed Mar 12, 2024
1 parent 0b9bba0 commit 9111948
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion autoload/lsp/lspserver.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1748,7 +1748,12 @@ enddef
# Params: ExecuteCommandParams
def ExecuteCommand(lspserver: dict<any>, cmd: dict<any>)
# Need to check for lspserver.caps.executeCommandProvider?
var params = cmd
var params: dict<any> = {}
params.command = cmd.command
if cmd->has_key('arguments')
params.arguments = cmd.arguments
endif

lspserver.rpc_a('workspace/executeCommand', params, WorkspaceExecuteReply)
enddef

Expand Down

0 comments on commit 9111948

Please sign in to comment.