-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorDomain: 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
Description
TypeScript Version: 2.7.0-dev.20171102
VSCode Version: Insiders, same date
Code
In an Angular project, start typing any Angular code, like :
@Inp
and select the auto-import suggestion.
Expected behavior:
Should import top level export :
import { Input } from '@angular/core';
Actual behavior:
Imports deep level export :
import { Input } from '@angular/core/src/metadata/directives';
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.
jeffarese, bradenhs, cvharris, chenyong, shen4-4 and 3 more
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorDomain: 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