microsoft / microsoft/TypeScript
Autocompletion is not working for TypeScript paths alias in import statements when omitting "baseUrl"
Offen
@rbuckton arbeitet bereits daran.
Seit 23.5.2023.
Needs Investigation
Rescheduled
- Vorherrschende Sprache
- Go
- Sterne
- 111k
- Forks
- 14.3k
- Ø Merge
- 1 T. 19 Std.
- Gemergte PRs (30 T.)
- 117
Beschreibung
Does this issue occur when all extensions are disabled?: Yes/No
- VS Code Version: Version: 1.79.0-insider
- OS Version: Darwin arm64 22.4.0
Steps to Reproduce:
- Create a tsconfig.json with paths alias without specifying a "baseUrl":
{
"compilerOptions": {
"paths": {
"~/*": ["./src/*"],
},
},
}
- Try to trigger the autocompletion:
If baseUrl is set like "baseUrl": ".", here is the result of the autocompletion:
As baseUrl is optional since TypeScript 4.1, shouldn't VS Code set it to the same folder path where the tsconfig.json is located if omitted?
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.