Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change includePackageJsonAutoImports options #103732

Merged
merged 1 commit into from Aug 3, 2020

Conversation

andrewbranch
Copy link
Member

@andrewbranch andrewbranch commented Jul 31, 2020

Counterpart of microsoft/TypeScript#39855. Related: #103037

cc: @mattbierner

"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.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a quick question, will this also search dev dependencies?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I decided to remove that functionality unless/until there’s high demand for it. Since lots of devDependencies go unimported and creating auto import providers that contain lots of dependencies have an associated startup performance penalty, the setting was a perf trap door without enough room to explain all the considerations of enabling it.

@mjbvz mjbvz added this to the July 2020 milestone Aug 3, 2020
@mjbvz mjbvz merged commit 4a206a3 into microsoft:master Aug 3, 2020
@mjbvz
Copy link
Contributor

mjbvz commented Aug 3, 2020

Thanks!

@andrewbranch andrewbranch deleted the package-json-auto-import-auto branch August 3, 2020 21:43
@github-actions github-actions bot locked and limited conversation to collaborators Sep 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants