-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Open
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 editorHelp WantedYou can do thisYou can do this
Milestone
Description
TypeScript Version: 4.0.2
Search Terms: import path autocomplete tsconfig path slash duplicate text
Code
tsconfig snippet:
{
"compilerOptions": {
"paths": {
"@myproj/lib-123": ["libs/lib123/index.ts"]
}
}
}Behavior in any typescript file:
// Start typing this and an auto-complete suggestion comes up for "@myproj/lib-123" (yay):
import { xyz } from "@myproj/lib-
// But when I select the autocomplete, it inserts this (oops):
import { xyz } from "@myproj/@myproj/lib-123"Expected behavior:
import { xyz } from "@myproj/lib-123"
Actual behavior:
import { xyz } from "@myproj/@myproj/lib-123"
If the tsconfig shortcut does not contain a "/" this works just fine
Playground Link: I imagine this is not necessary here, let me know.
Related Issues: None.
Vboivin
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 editorHelp WantedYou can do thisYou can do this