microsoft / microsoft/TypeScript

typeAcquisition without import explicitly

Aperta
#42,725 4 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Needs Investigation
Lingua principale
Go
Stelle
111k
Fork
14.3k
Merge medio
2g 4h
PR unite (30g)
132

Descrizione

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:

  1. import those library into one of JS file in workspace, and it works; (But this is also working without "typeAcquisition");
  2. 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?

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript, typescript
Ambito
developer-experience, tooling
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.