Don't provide suggestions for certain global packages #44499
Labels
Domain: Completion Lists
The issue relates to showing completion lists in an editor
Needs Proposal
This issue needs a plan that clarifies the finer details of how it could be implemented.
Suggestion
An idea for TypeScript
If you have
@types/node
installed, you shouldn't get a completion item fornode
when typingimport "n
.It's unclear what the right thing to do here is. I don't think you always want to filter out non-module packages because a package might just be written in a weird way where you import it and all it does is introduce globals. At the very least, we could do some quick-and-dirty filtering.
The text was updated successfully, but these errors were encountered: