Skip to content

Commit

Permalink
Fixes #14889: Flooding npm with @types package requests
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaeumer committed Nov 3, 2016
1 parent 9e7d700 commit b3c1027
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions extensions/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 5 additions & 0 deletions extensions/typescript/src/typescriptServiceClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<boolean>('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) {
Expand Down

0 comments on commit b3c1027

Please sign in to comment.