Skip to content

Commit aaac74d

Browse files
committed
[FIX] Fix java settings causes LSP issues in theia
1 parent e5c5a53 commit aaac74d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/extension.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export function activate(context: ExtensionContext): Promise<ExtensionAPI> {
165165
initializationOptions: {
166166
bundles: collectJavaExtensions(extensions.all),
167167
workspaceFolders: workspace.workspaceFolders ? workspace.workspaceFolders.map(f => f.uri.toString()) : null,
168-
settings: { java: getJavaConfig(requirements.java_home) },
168+
settings: getJavaConfig(requirements.java_home),
169169
extendedClientCapabilities: {
170170
progressReportProvider: getJavaConfiguration().get('progressReports.enabled'),
171171
classFileContentsSupport: true,
@@ -192,9 +192,7 @@ export function activate(context: ExtensionContext): Promise<ExtensionAPI> {
192192
workspace: {
193193
didChangeConfiguration: () => {
194194
standardClient.getClient().sendNotification(DidChangeConfigurationNotification.type, {
195-
settings: {
196-
java: getJavaConfig(requirements.java_home),
197-
}
195+
settings: getJavaConfig(requirements.java_home)
198196
});
199197
}
200198
}

0 commit comments

Comments
 (0)