microsoft / microsoft/TypeScript
TypeScript Language Features: `Analyzing '...' and its dependencies` takes crazy long time!
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Go
- Sterne
- 111k
- Forks
- 14.3k
- Ø Merge
- 2 T. 4 Std.
- Gemergte PRs (30 T.)
- 132
Beschreibung
Does this issue occur when all extensions are disabled?: Yes
```
Version: 1.102.3 (user setup)
Commit: 488a1f239235055e34e673291fb8d8c810886f81
Date: 2025-07-29T03:00:23.339Z
Electron: 35.6.0
ElectronBuildId: 11847422
Chromium: 134.0.6998.205
Node.js: 22.15.1
V8: 13.4.114.21-electron.0
OS: Windows_NT x64 10.0.26100
```
This takes a long time for am empty TS file:
Steps to Reproduce:
1. Install NodeJS.
2. Create an empty folder. Open it with vsCode.
3. Create the below files with the exact content shown.
4. Run `npm i` in terminal to install packages.
5. Open and view `index.ts` file.
6. Do `ctrl+shift+p` and select `TypeScript: Restart TS Server`.
7. In the Status Bar, you would see `Analyzing 'index.ts' and its dependencies` (Source: TypeScript and JavaScript Language Features).
The `Analyzing 'index.ts' and its dependencies` spins for a very long time. The package we installed, has a lot of files, but it wasn't like this before. Things worked fine with even a ton of packages and TS files.
Here are the source files to reproduce:
`index.ts`: EMPTY FILE!
`package.json`:
```json
{
"dependencies": {
"phosphor-icons-svelte": "2.0.9"
}
}
```
`.gitignore`:
```
/node_modules/
```
---
This issue may be related: https://github.com/microsoft/vscode/issues/244098
Locking issues should be a crime! I mentioned the issue and it's not visible in that issue page! I can't even comment on that issue page. Don't lock issues just because you don't like them. Locking issues breaks so many basic and necessary functionalities of GitHub.
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
Reproduziere die Verzögerung mit der leeren index.ts, der package.json, die phosphor-icons-svelte enthält, und den aufgeführten VS Code-Schritten; starte zunächst den TypeScript-Server neu und beobachte die Statusleiste. Vergleiche das Verhalten mit dem zugehörigen Issue 244098. Als abgeschlossen gilt die Identifizierung und Behebung der Regression, sodass die Analyse für dieses Minimalprojekt zeitnah abgeschlossen wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- node.js, typescript, vscode
- Bereich
- devtools, performance
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 38/100