We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d199986 commit 20191feCopy full SHA for 20191fe
lua/java-core/ls/clients/jdtls-client.lua
@@ -94,15 +94,11 @@ end
94
---@param arguments? lsp.LSPAny[]
95
---@param buffer? integer
96
---@return lsp.LSPAny
97
-function JdtlsClient:workspace_execute_command(command, arguments, buffer)
98
- return await(function(callback)
99
- self.client:exec_cmd(
100
- ---@diagnostic disable-next-line: missing-fields
101
- { command = command, arguments = arguments },
102
- { bufnr = buffer },
103
- callback
104
- )
105
- end)
+function JdtlsClient:workspace_execute_command(command, params, buffer)
+ return self:request('workspace/executeCommand', {
+ command = command,
+ arguments = params,
+ }, buffer)
106
end
107
108
---@class jdtls.ResourceMoveDestination
0 commit comments