+10
-5
lines changedFilter options
+10
-5
lines changed Original file line number Diff line number Diff line change
@@ -627,14 +627,19 @@ end
627
627
628
628
--- Executes an LSP server command.
629
629
---
630
-
---@param command A valid `ExecuteCommandParams` object
630
+
---@param command_params table A valid `ExecuteCommandParams` object
631
631
---@see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#workspace_executeCommand
632
-
function M.execute_command(command)
632
+
function M.execute_command(command_params)
633
633
validate {
634
-
command = { command.command, 's' },
635
-
arguments = { command.arguments, 't', true }
634
+
command = { command_params.command, 's' },
635
+
arguments = { command_params.arguments, 't', true }
636
636
}
637
-
request('workspace/executeCommand', command)
637
+
command_params = {
638
+
command=command_params.command,
639
+
arguments=command_params.arguments,
640
+
workDoneToken=command_params.workDoneToken,
641
+
}
642
+
request('workspace/executeCommand', command_params )
638
643
end
639
644
640
645
return M
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4