Skip to content

Commit d8415f0

Browse files
authored
feat: add missing capabilities from vscode-java (#70)
1 parent 9053e60 commit d8415f0

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

lua/java-core/ls/servers/jdtls/config.lua

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,33 @@ function M.get_config()
44
return {
55
init_options = {
66
extendedClientCapabilities = {
7-
classFileContentsSupport = true,
8-
generateToStringPromptSupport = true,
9-
hashCodeEqualsPromptSupport = true,
7+
actionableRuntimeNotificationSupport = true,
108
advancedExtractRefactoringSupport = true,
9+
advancedGenerateAccessorsSupport = true,
10+
advancedIntroduceParameterRefactoringSupport = true,
1111
advancedOrganizeImportsSupport = true,
12+
advancedUpgradeGradleSupport = true,
13+
classFileContentsSupport = true,
14+
clientDocumentSymbolProvider = true,
15+
clientHoverProvider = true,
16+
executeClientCommandSupport = true,
17+
extractInterfaceSupport = true,
1218
generateConstructorsPromptSupport = true,
1319
generateDelegateMethodsPromptSupport = true,
14-
moveRefactoringSupport = true,
15-
overrideMethodsPromptSupport = true,
16-
executeClientCommandSupport = true,
20+
generateToStringPromptSupport = true,
21+
gradleChecksumWrapperPromptSupport = true,
22+
hashCodeEqualsPromptSupport = true,
1723
inferSelectionSupport = {
18-
'extractMethod',
19-
'extractVariable',
2024
'extractConstant',
25+
'extractField',
26+
'extractInterface',
27+
'extractMethod',
2128
'extractVariableAllOccurrence',
29+
'extractVariable',
2230
},
31+
moveRefactoringSupport = true,
32+
onCompletionItemSelectedCommand = 'editor.action.triggerParameterHints',
33+
overrideMethodsPromptSupport = true,
2334
},
2435
},
2536
}

0 commit comments

Comments
 (0)