microsoft / microsoft/TypeScript
typeAcquisition without import explicitly
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Go
- Estrellas
- 111k
- Forks
- 14.3k
- Merge medio
- 2 d 4 h
- PR fusionados (30 d)
- 132
Descripción
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?
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript, typescript
- Área
- developer-experience, tooling
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100