microsoft / microsoft/vscode-cpptools
Opening many editors cripples my machine
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
Environment
- OS and Version: Windows_NT x64 10.0.19043
- VS Code Version: 1.70.2
- C/C++ Extension Version: 1.11.5
Bug Summary and Steps to Reproduce
Bug Summary:
When opening many editors the extension spins up so many Intellisense processes my PC becomes unresponsive and unusable until I kill them manually or close VSCode. These processes linger even after closing editors.
Steps to reproduce:
- Open many editors (10-30)
- Notice the number of Intellisense processes running in the background and the resulting CPU usage
- Close all editors
- Notice the Intellisense processes stick around for a long time (possibly until they finish?)
For additional context, this happens in an Unreal Engine codebase (where includes are notoriously heavy and Intellisense has its work cut out for it) while making sweeping refactoring changes. I end up opening 10-20 files at a time, making the same change to each of them, then closing them and starting another batch.
Expected behavior
- The number of Intellisense processes for unfocused editors is limited to a reasonable number based on the available CPU cores.
- Intellisense processes are closed immediately when an editor is closed.
Code sample and Logs
.
Screenshots
No response
Additional context
No response
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia riproducendo il problema nelle versioni segnalate di Windows, VS Code e dell’estensione C/C++, con 10–30 editor in una codebase Unreal Engine. Traccia il modo in cui vengono creati i processi IntelliSense per gli editor non focalizzati e cosa accade quando gli editor vengono chiusi. Il lavoro è considerato completato quando il lavoro degli editor non focalizzati è ragionevolmente limitato dai core CPU disponibili e i processi terminano rapidamente dopo la chiusura degli editor.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript, vscode
- Ambito
- devtools, performance
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100