-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Improve "suggestions show path" for "node_modules" #42005
Copy link
Copy link
Closed
Labels
Domain: LS: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorFix AvailableA PR has been opened for this issueA PR has been opened for this issueIn DiscussionNot yet reached consensusNot yet reached consensusRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestoneSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Metadata
Metadata
Assignees
Labels
Domain: LS: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorFix AvailableA PR has been opened for this issueA PR has been opened for this issueIn DiscussionNot yet reached consensusNot yet reached consensusRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestoneSuggestionAn idea for TypeScriptAn idea for TypeScript
Search Terms
TypeScript suggestions show path
TypeScript can provide completions that also add an import statement. However, when there are multiple symbols with the same name, it is hard to pick the right completion. This release makes this simpler because paths of auto-import completions are shown with the label.
Suggestion
As description above. I think the path should be show as
importform, not show path like 'node_modules/xxx/index' but 'xxx'And sort it as the "show fixes" menu I post below.
Use Cases
Here is the current result
It is not very easy to choose which one to import
Table, because the path is too long and very same. (Actually I want the 3rd one, it is 'antd')Here is the "show fixes" menu

It is much more clear.
Here is the "show fixes" menu, when I already import something from 'antd'

Examples
no example.
Checklist
My suggestion meets these guidelines: