microsoft / microsoft/vscode-cpptools
Opening many editors cripples my machine
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 6.2k
- Forks
- 1.7k
- Ø Merge
- 14 Std. 46 Min.
- Gemergte PRs (30 T.)
- 61
Beschreibung
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
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
Beginne damit, das Problem in den gemeldeten Versionen von Windows, VS Code und der C/C++-Erweiterung mit 10–30 Editoren in einer Unreal Engine-Codebasis zu reproduzieren. Verfolge, wie IntelliSense-Prozesse für nicht fokussierte Editoren erstellt werden und was passiert, wenn Editoren geschlossen werden. Als abgeschlossen gilt die Arbeit, wenn nicht fokussierte Arbeit durch die verfügbaren CPU-Kerne angemessen begrenzt wird und Prozesse nach dem Schließen von Editoren zeitnah beendet werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript, vscode
- Bereich
- devtools, performance
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100