-
Notifications
You must be signed in to change notification settings - Fork 780
Open
Labels
Domain: EditorRelated to the LSP server, editor experienceRelated to the LSP server, editor experience
Description
Extension Version
0.20251222.1
VS Code Version
1.107.1
Operating system Version
Windows_NT arm64 10.0.26200
Steps to reproduce
- Clone https://github.com/longzheng/typescript-go-import-path-repro
- Open
index.ts - Try to quick fix missing import for
sum()
Issue
The suggestion does not respect the tsconfig paths and "typescript.preferences.importModuleSpecifier": "non-relative"
"compilerOptions": {
"paths": {
"@/*": ["./src/*"]
}
}{
"typescript.preferences.importModuleSpecifier": "non-relative",
"typescript.experimental.useTsgo": true
}I'm expecting
import { sum } from "@/export";instead of
import { sum } from "./export";Interestingly if I move index.ts to another subdirectory, like ./src/test then the auto import will suggest the correct path

Metadata
Metadata
Assignees
Labels
Domain: EditorRelated to the LSP server, editor experienceRelated to the LSP server, editor experience