From fa1266520cb8e6da10e5e9c8df415e4841079154 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Thu, 18 Nov 2021 16:06:08 -0800 Subject: [PATCH] Removing gating for ts args These should be ignored on older TS versions --- .../src/tsServer/spawner.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/extensions/typescript-language-features/src/tsServer/spawner.ts b/extensions/typescript-language-features/src/tsServer/spawner.ts index efec8685ae963..9a1e767bdbc65 100644 --- a/extensions/typescript-language-features/src/tsServer/spawner.ts +++ b/extensions/typescript-language-features/src/tsServer/spawner.ts @@ -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 }; }