Skip to content

Commit

Permalink
Removing gating for ts args
Browse files Browse the repository at this point in the history
These should be ignored on older TS versions
  • Loading branch information
mjbvz committed Nov 19, 2021
1 parent 75c202e commit fa12665
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions extensions/typescript-language-features/src/tsServer/spawner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
}
Expand Down

0 comments on commit fa12665

Please sign in to comment.