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:
Matt Bierner
2020-02-06 16:32:56 -08:00
parent 7cb5172397
commit 4d35421462
2 changed files with 3 additions and 4 deletions

View File

@@ -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(