microsoft / microsoft/TypeScript
typeAcquisition without import explicitly
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.3k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 132
Description
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?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
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.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100