mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 09:38:38 +01:00
Remove version gating on for now enableProjectDiagnostics
None of the apis being users for this experimental setting require the latest TS version
This commit is contained in:
@@ -53,7 +53,7 @@ export class TypeScriptServerSpawner {
|
||||
primaryServer = this.spawnTsServer(ServerKind.Main, version, configuration, pluginManager);
|
||||
}
|
||||
|
||||
if (this.shouldUseSeparateDiagnosticsServer(version, configuration)) {
|
||||
if (this.shouldUseSeparateDiagnosticsServer(configuration)) {
|
||||
return new GetErrRoutingTsServer({
|
||||
getErr: this.spawnTsServer(ServerKind.Diagnostics, version, configuration, pluginManager),
|
||||
primary: primaryServer,
|
||||
@@ -71,10 +71,9 @@ export class TypeScriptServerSpawner {
|
||||
}
|
||||
|
||||
private shouldUseSeparateDiagnosticsServer(
|
||||
version: TypeScriptVersion,
|
||||
configuration: TypeScriptServiceConfiguration,
|
||||
): boolean {
|
||||
return configuration.enableProjectDiagnostics && !!version.apiVersion && version.apiVersion.gte(API.v380);
|
||||
return configuration.enableProjectDiagnostics;
|
||||
}
|
||||
|
||||
private spawnTsServer(
|
||||
|
||||
Reference in New Issue
Block a user