Simplified eclipse config

This commit is contained in:
Michael Panchenko committed 2025-07-05 12:46:37 +02:00
1 parent 77fb2e18bb
commit 89b2ada09b
1 file changed
+4 -146
+4 -146
View File
@@ -343,7 +343,7 @@ class EclipseJDTLS(SolidLanguageServer):
"symbol": { "symbol": {
"dynamicRegistration": True, "dynamicRegistration": True,
"symbolKind": { "symbolKind": {
"valueSet": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26] "valueSet": list(range(1, 27))
}, },
"tagSupport": {"valueSet": [1]}, "tagSupport": {"valueSet": [1]},
"resolveSupport": {"properties": ["location.range"]}, "resolveSupport": {"properties": ["location.range"]},
@@ -375,6 +375,8 @@ class EclipseJDTLS(SolidLanguageServer):
"dataSupport": True, "dataSupport": True,
}, },
"synchronization": {"dynamicRegistration": True, "willSave": True, "willSaveWaitUntil": True, "didSave": True}, "synchronization": {"dynamicRegistration": True, "willSave": True, "willSaveWaitUntil": True, "didSave": True},
# TODO: we have an assert that completion provider is not included in the capabilities at server startup
# Removing this will cause the assert to fail. Investigate why this is the case, simplify config
"completion": { "completion": {
"dynamicRegistration": True, "dynamicRegistration": True,
"contextSupport": True, "contextSupport": True,
@@ -404,46 +406,18 @@ class EclipseJDTLS(SolidLanguageServer):
"parameterInformation": {"labelOffsetSupport": True}, "parameterInformation": {"labelOffsetSupport": True},
"activeParameterSupport": True, "activeParameterSupport": True,
}, },
"contextSupport": True,
}, },
"definition": {"dynamicRegistration": True, "linkSupport": True}, "definition": {"dynamicRegistration": True, "linkSupport": True},
"references": {"dynamicRegistration": True}, "references": {"dynamicRegistration": True},
"documentHighlight": {"dynamicRegistration": True},
"documentSymbol": { "documentSymbol": {
"dynamicRegistration": True, "dynamicRegistration": True,
"symbolKind": { "symbolKind": {
"valueSet": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26] "valueSet": list(range(1, 27)) #
}, },
"hierarchicalDocumentSymbolSupport": True, "hierarchicalDocumentSymbolSupport": True,
"tagSupport": {"valueSet": [1]}, "tagSupport": {"valueSet": [1]},
"labelSupport": True, "labelSupport": True,
}, },
"codeAction": {
"dynamicRegistration": True,
"isPreferredSupport": True,
"disabledSupport": True,
"dataSupport": True,
"resolveSupport": {"properties": ["edit"]},
"codeActionLiteralSupport": {
"codeActionKind": {
"valueSet": [
"",
"quickfix",
"refactor",
"refactor.extract",
"refactor.inline",
"refactor.rewrite",
"source",
"source.organizeImports",
]
}
},
"honorsChangeAnnotations": False,
},
"codeLens": {"dynamicRegistration": True},
"formatting": {"dynamicRegistration": True},
"rangeFormatting": {"dynamicRegistration": True},
"onTypeFormatting": {"dynamicRegistration": True},
"rename": { "rename": {
"dynamicRegistration": True, "dynamicRegistration": True,
"prepareSupport": True, "prepareSupport": True,
@@ -454,13 +428,6 @@ class EclipseJDTLS(SolidLanguageServer):
"typeDefinition": {"dynamicRegistration": True, "linkSupport": True}, "typeDefinition": {"dynamicRegistration": True, "linkSupport": True},
"implementation": {"dynamicRegistration": True, "linkSupport": True}, "implementation": {"dynamicRegistration": True, "linkSupport": True},
"colorProvider": {"dynamicRegistration": True}, "colorProvider": {"dynamicRegistration": True},
"foldingRange": {
"dynamicRegistration": True,
"rangeLimit": 5000,
"lineFoldingOnly": True,
"foldingRangeKind": {"valueSet": ["comment", "imports", "region"]},
"foldingRange": {"collapsedText": False},
},
"declaration": {"dynamicRegistration": True, "linkSupport": True}, "declaration": {"dynamicRegistration": True, "linkSupport": True},
"selectionRange": {"dynamicRegistration": True}, "selectionRange": {"dynamicRegistration": True},
"callHierarchy": {"dynamicRegistration": True}, "callHierarchy": {"dynamicRegistration": True},
@@ -510,20 +477,10 @@ class EclipseJDTLS(SolidLanguageServer):
"serverCancelSupport": True, "serverCancelSupport": True,
"augmentsSyntaxTokens": True, "augmentsSyntaxTokens": True,
}, },
"linkedEditingRange": {"dynamicRegistration": True},
"typeHierarchy": {"dynamicRegistration": True}, "typeHierarchy": {"dynamicRegistration": True},
"inlineValue": {"dynamicRegistration": True}, "inlineValue": {"dynamicRegistration": True},
"inlayHint": {
"dynamicRegistration": True,
"resolveSupport": {"properties": ["tooltip", "textEdits", "label.tooltip", "label.location", "label.command"]},
},
"diagnostic": {"dynamicRegistration": True, "relatedDocumentSupport": False}, "diagnostic": {"dynamicRegistration": True, "relatedDocumentSupport": False},
}, },
"window": {
"showMessage": {"messageActionItem": {"additionalPropertiesSupport": True}},
"showDocument": {"support": True},
"workDoneProgress": True,
},
"general": { "general": {
"staleRequestSupport": { "staleRequestSupport": {
"cancel": True, "cancel": True,
@@ -534,7 +491,6 @@ class EclipseJDTLS(SolidLanguageServer):
], ],
}, },
"regularExpressions": {"engine": "ECMAScript", "version": "ES2020"}, "regularExpressions": {"engine": "ECMAScript", "version": "ES2020"},
"markdown": {"parser": "marked", "version": "1.1.0"},
"positionEncodings": ["utf-16"], "positionEncodings": ["utf-16"],
}, },
"notebookDocument": {"synchronization": {"dynamicRegistration": True, "executionSummarySupport": True}}, "notebookDocument": {"synchronization": {"dynamicRegistration": True, "executionSummarySupport": True}},
@@ -597,7 +553,6 @@ class EclipseJDTLS(SolidLanguageServer):
}, },
"maven": {"downloadSources": True, "updateSnapshots": True}, "maven": {"downloadSources": True, "updateSnapshots": True},
"eclipse": {"downloadSources": True}, "eclipse": {"downloadSources": True},
"referencesCodeLens": {"enabled": True},
"signatureHelp": {"enabled": True, "description": {"enabled": True}}, "signatureHelp": {"enabled": True, "description": {"enabled": True}},
"implementationsCodeLens": {"enabled": True}, "implementationsCodeLens": {"enabled": True},
"format": { "format": {
@@ -620,49 +575,6 @@ class EclipseJDTLS(SolidLanguageServer):
"contentProvider": {"preferred": None}, "contentProvider": {"preferred": None},
"autobuild": {"enabled": True}, "autobuild": {"enabled": True},
"maxConcurrentBuilds": 1, "maxConcurrentBuilds": 1,
"recommendations": {"dependency": {"analytics": {"show": True}}},
"completion": {
"maxResults": 0,
"enabled": True,
"guessMethodArguments": True,
"favoriteStaticMembers": [
"org.junit.Assert.*",
"org.junit.Assume.*",
"org.junit.jupiter.api.Assertions.*",
"org.junit.jupiter.api.Assumptions.*",
"org.junit.jupiter.api.DynamicContainer.*",
"org.junit.jupiter.api.DynamicTest.*",
"org.mockito.Mockito.*",
"org.mockito.ArgumentMatchers.*",
"org.mockito.Answers.*",
],
"filteredTypes": [
"java.awt.*",
"com.sun.*",
"sun.*",
"jdk.*",
"org.graalvm.*",
"io.micrometer.shaded.*",
],
"importOrder": ["#", "java", "javax", "org", "com", ""],
"postfix": {"enabled": False},
"matchCase": "off",
},
"foldingRange": {"enabled": True},
"progressReports": {"enabled": False},
"codeGeneration": {
"hashCodeEquals": {"useJava7Objects": False, "useInstanceof": False},
"useBlocks": False,
"generateComments": False,
"toString": {
"template": "${object.className} [${member.name()}=${member.value}, ${otherMembers}]",
"codeStyle": "STRING_CONCATENATION",
"skipNullValues": False,
"listArrayContents": True,
"limitElements": 0,
},
"insertionLocation": "afterCursor",
},
"selectionRange": {"enabled": True}, "selectionRange": {"enabled": True},
"showBuildStatusOnStart": {"enabled": "notification"}, "showBuildStatusOnStart": {"enabled": "notification"},
"server": {"launchMode": "Standard"}, "server": {"launchMode": "Standard"},
@@ -673,7 +585,6 @@ class EclipseJDTLS(SolidLanguageServer):
"typeHierarchy": {"lazyLoad": False}, "typeHierarchy": {"lazyLoad": False},
"settings": {"url": None}, "settings": {"url": None},
"symbols": {"includeSourceMethodDeclarations": False}, "symbols": {"includeSourceMethodDeclarations": False},
"quickfix": {"showAt": "line"},
"inlayHints": {"parameterNames": {"enabled": "literals", "exclusions": []}}, "inlayHints": {"parameterNames": {"enabled": "literals", "exclusions": []}},
"codeAction": {"sortMembers": {"avoidVolatileChanges": True}}, "codeAction": {"sortMembers": {"avoidVolatileChanges": True}},
"compile": { "compile": {
@@ -691,35 +602,7 @@ class EclipseJDTLS(SolidLanguageServer):
"mode": "automatic", "mode": "automatic",
} }
}, },
"cleanup": {"actionsOnSave": []},
"sharedIndexes": {"enabled": "auto", "location": ""}, "sharedIndexes": {"enabled": "auto", "location": ""},
"refactoring": {"extract": {"interface": {"replace": True}}},
"debug": {
"logLevel": "verbose",
"settings": {
"showHex": False,
"showStaticVariables": False,
"showQualifiedNames": False,
"showLogicalStructure": True,
"showToString": True,
"maxStringLength": 0,
"numericPrecision": 0,
"hotCodeReplace": "manual",
"enableRunDebugCodeLens": True,
"forceBuildBeforeLaunch": True,
"onBuildFailureProceed": False,
"console": "integratedTerminal",
"exceptionBreakpoint": {"skipClasses": []},
"stepping": {
"skipClasses": [],
"skipSynthetics": False,
"skipStaticInitializers": False,
"skipConstructors": False,
},
"jdwp": {"limitOfVariablesPerJdwpRequest": 100, "requestTimeout": 3000, "async": "auto"},
"vmArgs": "",
},
},
"silentNotification": False, "silentNotification": False,
"dependency": { "dependency": {
"showMembers": False, "showMembers": False,
@@ -732,31 +615,6 @@ class EclipseJDTLS(SolidLanguageServer):
"test": {"defaultConfig": "", "config": {}}, "test": {"defaultConfig": "", "config": {}},
} }
}, },
"extendedClientCapabilities": {
"progressReportProvider": False,
"classFileContentsSupport": True,
"overrideMethodsPromptSupport": True,
"hashCodeEqualsPromptSupport": True,
"advancedOrganizeImportsSupport": True,
"generateToStringPromptSupport": True,
"advancedGenerateAccessorsSupport": True,
"generateConstructorsPromptSupport": True,
"generateDelegateMethodsPromptSupport": True,
"advancedExtractRefactoringSupport": True,
"inferSelectionSupport": ["extractMethod", "extractVariable", "extractField"],
"moveRefactoringSupport": True,
"clientHoverProvider": True,
"clientDocumentSymbolProvider": True,
"gradleChecksumWrapperPromptSupport": True,
"resolveAdditionalTextEditsSupport": True,
"advancedIntroduceParameterRefactoringSupport": True,
"actionableRuntimeNotificationSupport": True,
"shouldLanguageServerExitOnShutdown": True,
"onCompletionItemSelectedCommand": "editor.action.triggerParameterHints",
"extractInterfaceSupport": True,
"advancedUpgradeGradleSupport": True,
},
"triggerFiles": [],
}, },
"trace": "verbose", "trace": "verbose",
"processId": os.getpid(), "processId": os.getpid(),