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) {