From b3c10273d7ba340865fd2549603e436e0c062c05 Mon Sep 17 00:00:00 2001 From: Dirk Baeumer Date: Thu, 3 Nov 2016 14:29:45 +0100 Subject: [PATCH] Fixes #14889: Flooding npm with @types package requests --- extensions/typescript/package.json | 5 ----- extensions/typescript/src/typescriptServiceClient.ts | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/extensions/typescript/package.json b/extensions/typescript/package.json index b5ba8ce4acc6b..6f6e18f0d083e 100644 --- a/extensions/typescript/package.json +++ b/extensions/typescript/package.json @@ -81,11 +81,6 @@ "default": null, "description": "%typescript.tsdk.desc%" }, - "typescript.disableAutomaticTypeAcquisition": { - "type": "boolean", - "default": false, - "description": "%typescript.disableAutomaticTypeAcquisition%" - }, "typescript.check.workspaceVersion": { "type": "boolean", "default": true, diff --git a/extensions/typescript/src/typescriptServiceClient.ts b/extensions/typescript/src/typescriptServiceClient.ts index 20f07aee919ae..54577b1077d29 100644 --- a/extensions/typescript/src/typescriptServiceClient.ts +++ b/extensions/typescript/src/typescriptServiceClient.ts @@ -401,9 +401,14 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient let args: string[] = []; if (this.apiVersion.has206Features()) { args.push('--useSingleInferredProject'); + /* https://github.com/Microsoft/vscode/issues/14889 if (workspace.getConfiguration().get('typescript.disableAutomaticTypeAcquisition', false)) { args.push('--disableAutomaticTypingAcquisition'); } + */ + if (!(process.env.CH_ATA_ENABLE)) { + args.push('--disableAutomaticTypingAcquisition'); + } } electron.fork(modulePath, args, options, (err: any, childProcess: cp.ChildProcess) => { if (err) {