microsoft / microsoft/TypeScript
`invalidateResolutionsOfFailedLookupLocations` hogs the CPU for a large project
Abierto
@sheetalkamat ya está trabajando en esto.
Desde el 14/7/2025.
Needs Investigation
- Lenguaje dominante
- Go
- Estrellas
- 111k
- Forks
- 14.3k
- Merge medio
- 2 d 4 h
- PR fusionados (30 d)
- 132
Descripción
🔎 Search Terms
performance invalidateResolutionsOfFailedLookupLocations tsserver
🕗 Version & Regression Information
Typescript version 5.8.3
⏯ Playground Link
No response
💻 Code
// Your code here
🙁 Actual behavior
I'm using vscode on a large project and the tsserver gets stuck very frequently (every 5 minutes). TSServer process is at max CPU usage. Profiling it revealed that it's spending all of the CPU time inside invalidateResolutionsOfFailedLookupLocations function. I'm attaching a trace below.
vscode-profile-2025-07-12-16-00-06.cpuprofile
🙂 Expected behavior
TSServer not get stuck
Additional information about the issue
The repo in question is https://github.com/dxos/dxos
To get started:
pnpm install && pnpm build
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.
Evaluación
Este issue todavía no se ha evaluado.