From 4a206a33e55db2c51e6f088436f8cc4a36ab96b1 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Mon, 3 Aug 2020 14:16:28 -0700 Subject: [PATCH] Change includePackageJsonAutoImports options (#103732) --- .../typescript-language-features/package.json | 14 +++++++------- .../typescript-language-features/package.nls.json | 8 ++++---- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/extensions/typescript-language-features/package.json b/extensions/typescript-language-features/package.json index 8c5e9a4165e..ff450a9745b 100644 --- a/extensions/typescript-language-features/package.json +++ b/extensions/typescript-language-features/package.json @@ -689,16 +689,16 @@ "typescript.preferences.includePackageJsonAutoImports": { "type": "string", "enum": [ - "all", - "exclude-dev", - "none" + "auto", + "on", + "off" ], "enumDescriptions": [ - "%typescript.preferences.includePackageJsonAutoImports.all%", - "%typescript.preferences.includePackageJsonAutoImports.excludeDev%", - "%typescript.preferences.includePackageJsonAutoImports.none%" + "%typescript.preferences.includePackageJsonAutoImports.auto%", + "%typescript.preferences.includePackageJsonAutoImports.on%", + "%typescript.preferences.includePackageJsonAutoImports.off%" ], - "default": "exclude-dev", + "default": "auto", "markdownDescription": "%typescript.preferences.includePackageJsonAutoImports%", "scope": "window" }, diff --git a/extensions/typescript-language-features/package.nls.json b/extensions/typescript-language-features/package.nls.json index c59d90a3267..4322984e099 100644 --- a/extensions/typescript-language-features/package.nls.json +++ b/extensions/typescript-language-features/package.nls.json @@ -76,10 +76,10 @@ "typescript.preferences.importModuleSpecifierEnding.minimal": "Shorten `./component/index.js` to `./component`.", "typescript.preferences.importModuleSpecifierEnding.index": "Shorten `./component/index.js` to `./component/index`.", "typescript.preferences.importModuleSpecifierEnding.js": "Do not shorten path endings; include the `.js` extension.", - "typescript.preferences.includePackageJsonAutoImports": "Enable/disable processing `package.json` dependencies for available auto imports.", - "typescript.preferences.includePackageJsonAutoImports.all": "Include all listed dependencies.", - "typescript.preferences.includePackageJsonAutoImports.excludeDev": "Exclude devDependencies.", - "typescript.preferences.includePackageJsonAutoImports.none": "Disable package.json dependency processing.", + "typescript.preferences.includePackageJsonAutoImports": "Enable/disable searching `package.json` dependencies for available auto imports.", + "typescript.preferences.includePackageJsonAutoImports.auto": "Search dependencies based on estimated performance impact.", + "typescript.preferences.includePackageJsonAutoImports.on": "Always search dependencies.", + "typescript.preferences.includePackageJsonAutoImports.off": "Never search dependencies.", "typescript.updateImportsOnFileMove.enabled": "Enable/disable automatic updating of import paths when you rename or move a file in VS Code. Requires using TypeScript 2.9 or newer in the workspace.", "typescript.updateImportsOnFileMove.enabled.prompt": "Prompt on each rename.", "typescript.updateImportsOnFileMove.enabled.always": "Always update paths automatically.",