No unnecessary support for Java features for Concourse LS
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user