-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Auto import suggestions in TS 2.6 : wrong strategy for import paths #19694
Copy link
Copy link
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: LS: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorDomain: LS: Quick FixesEditor-provided fixes, often called code actions.Editor-provided fixes, often called code actions.FixedA PR has been merged for this issueA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue
Milestone
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: LS: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorDomain: LS: Quick FixesEditor-provided fixes, often called code actions.Editor-provided fixes, often called code actions.FixedA PR has been merged for this issueA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue
TypeScript Version: 2.7.0-dev.20171102
VSCode Version: Insiders, same date
Code
In an Angular project, start typing any Angular code, like :
@Inpand select the auto-import suggestion.
Expected behavior:
Should import top level export :
Actual behavior:
Imports deep level export :
It was handled fine when just one auto-import was suggested (see #19417).
Also, there was the same issue with the Import quick fix (#15223), but which was resolved a long time ago.
@mhegazy @mjbvz