Enable auto imports and add missing import for module/package names #52527
Labels
Awaiting More Feedback
This means we'd like to hear from more people who would be helped by this feature
Domain: Auto-import
Suggestion
An idea for TypeScript
Suggestion
π Search Terms
β Suggestion
Auto imports / add missing imports should be able to add
import * as XYZ from 'XYZ'
when triggered on the symbol nameXYZ
in a file. This is useful if you prefer using namespace imports and can also help with discovering/exploring new packagesRight now we have auto imports and an
add missing import
quick fix for symbols in a module, but I don't see these options for the module itselfπ Motivating Example
npm I @types/vscode
vscode.
Right now I don't get an auto import for
vscode
. I'd expect an import that adds:import * as vscode from 'vscode';
at the top of the fileπ» Use Cases
vscode.
to see suggestions in thevscode
package)fs.
to get anfs
importThe text was updated successfully, but these errors were encountered: