Skip to content

Commit 20191fe

Browse files
committed
fix: workspace_execute calling client command handler
1 parent d199986 commit 20191fe

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

lua/java-core/ls/clients/jdtls-client.lua

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,11 @@ end
9494
---@param arguments? lsp.LSPAny[]
9595
---@param buffer? integer
9696
---@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)
97+
function JdtlsClient:workspace_execute_command(command, params, buffer)
98+
return self:request('workspace/executeCommand', {
99+
command = command,
100+
arguments = params,
101+
}, buffer)
106102
end
107103

108104
---@class jdtls.ResourceMoveDestination

0 commit comments

Comments
 (0)