-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Closed
Copy link
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 issue
Milestone
Description
Consider a file structure as such:
| tsconfig.json
|
\---src
a.ts
foo.ts
index.ts
// src/index.ts
export * from "./foo";// src/foo.ts
export const foo = 0;in a.ts, completion for imported foo adds:
import { foo } from ".";
foo;It seems that . or ./index is the wrong choice here. most likely users want to get to the local implementation in the same folder.
on the other hand, an external library, you want the index instead.. e.g.:
import { Subject} from ""rxjs"";and not
import { Subject} from ""rxjs/Subject"";Related: #23410
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 issue