Skip to content

Commit 0dbdc2d

Browse files
committed
chore: fix types of code action requests
1 parent 5056d31 commit 0dbdc2d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -89,19 +89,19 @@ end
8989

9090
---Returns more information about the object the cursor is on
9191
---@param command jdtls.CodeActionCommand
92-
---@param params lsp.CodeActionParams
92+
---@param context lsp.CodeActionContext
9393
---@param buffer? number
9494
---@return jdtls.SelectionInfo[]
95-
function JdtlsClient:java_infer_selection(command, params, buffer)
95+
function JdtlsClient:java_infer_selection(command, context, buffer)
9696
return self:request('java/inferSelection', {
9797
command = command,
98-
context = params,
98+
context = context,
9999
}, buffer)
100100
end
101101

102102
---Returns refactor details
103103
---@param command jdtls.CodeActionCommand
104-
---@param context lsp.CodeActionParams
104+
---@param context lsp.CodeActionContext
105105
---@param options lsp.FormattingOptions
106106
---@param command_arguments jdtls.SelectionInfo[];
107107
---@param buffer? number

0 commit comments

Comments
 (0)