microsoft / microsoft/TypeScript
typeAcquisition without import explicitly
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Go
- Sterne
- 111k
- Forks
- 14.4k
- Ø Merge
- 1 T. 19 Std.
- Gemergte PRs (30 T.)
- 117
Beschreibung
VSCode has a feature in jsconfig.json called "typeAcquisition", but when I try to add some NPM package name into "typeAcquisition.include", there is no code IntelliSense, even those NPM packages has its types(d.ts).
I've tried several ways:
- import those library into one of JS file in workspace, and it works; (But this is also working without
"typeAcquisition"); - try some other NPM package with its @types/xxx package installed, and it also works;
So I wonder if "typeAcquisition" can work with packages with types(d.ts), and without import those packages explicitly?
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.
Rechercherichtung
Start with the jsconfig.json typeAcquisition.include setting and reproduce the behavior using an NPM package that provides its own d.ts files. Compare IntelliSense with and without an explicit import; done would mean the issue's requested package types are available without importing the packages explicitly.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, typescript
- Bereich
- developer-experience, tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100