diff --git a/src/extension.ts b/src/extension.ts index 8f3824879..c6570d1e6 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) }); } }