Removing gating for ts args

These should be ignored on older TS versions
This commit is contained in:
Matt Bierner 2021-11-18 16:06:08 -08:00
parent 75c202e435
commit fa1266520c
No known key found for this signature in database
GPG key ID: 099C331567E11888

View file

@ -260,17 +260,11 @@ export class TypeScriptServerSpawner {
args.push('--npmLocation', `"${configuration.npmLocation}"`);
}
if (apiVersion.gte(API.v260)) {
args.push('--locale', TypeScriptServerSpawner.getTsLocale(configuration));
}
args.push('--locale', TypeScriptServerSpawner.getTsLocale(configuration));
if (apiVersion.gte(API.v291)) {
args.push('--noGetErrOnBackgroundUpdate');
}
args.push('--noGetErrOnBackgroundUpdate');
if (apiVersion.gte(API.v345)) {
args.push('--validateDefaultNpmLocation');
}
args.push('--validateDefaultNpmLocation');
return { args, tsServerLogFile, tsServerTraceDirectory };
}