From aaac74db856c95370c6a34119d6face48fb5aba6 Mon Sep 17 00:00:00 2001 From: Vered Constantin Date: Sun, 7 Feb 2021 09:58:26 +0200 Subject: [PATCH] [FIX] Fix java settings causes LSP issues in theia --- src/extension.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/extension.ts b/src/extension.ts index 8f38248792..c6570d1e61 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -165,7 +165,7 @@ export function activate(context: ExtensionContext): Promise { initializationOptions: { bundles: collectJavaExtensions(extensions.all), workspaceFolders: workspace.workspaceFolders ? workspace.workspaceFolders.map(f => f.uri.toString()) : null, - settings: { java: getJavaConfig(requirements.java_home) }, + settings: getJavaConfig(requirements.java_home), extendedClientCapabilities: { progressReportProvider: getJavaConfiguration().get('progressReports.enabled'), classFileContentsSupport: true, @@ -192,9 +192,7 @@ export function activate(context: ExtensionContext): Promise { workspace: { didChangeConfiguration: () => { standardClient.getClient().sendNotification(DidChangeConfigurationNotification.type, { - settings: { - java: getJavaConfig(requirements.java_home), - } + settings: getJavaConfig(requirements.java_home) }); } }