No unnecessary support for Java features for Concourse LS

This commit is contained in:
aboyko
2022-12-21 13:40:40 -05:00
parent c45f8cd983
commit 7bf669a7a4
2 changed files with 7 additions and 3 deletions

View File

@@ -42,6 +42,7 @@ export interface ActivatorOptions {
highlightCodeLensSettingKey?: string;
explodedLsJarData?: ExplodedLsJarData;
vmArgs?: string[];
requiresJavaLs?: boolean;
}
export interface ExplodedLsJarData {
@@ -391,8 +392,10 @@ function setupLanguageClient(context: VSCode.ExtensionContext, createServer: Ser
}
return {applied: true};
});
registerClasspathService(client);
registerJavaDataService(client);
if (options.requiresJavaLs) {
registerClasspathService(client);
registerJavaDataService(client);
}
return Promise.resolve(client);
}

View File

@@ -117,7 +117,8 @@ export function activate(context: VSCode.ExtensionContext): Thenable<ExtensionAP
enableJdtClasspath: true
})
},
highlightCodeLensSettingKey: 'boot-java.highlight-codelens.on'
highlightCodeLensSettingKey: 'boot-java.highlight-codelens.on',
requiresJavaLs: true
};
// Register launch config contributior to java debug launch to be able to connect to JMX