-
Notifications
You must be signed in to change notification settings - Fork 37.3k
Closed as not planned
Labels
extension-hostExtension host issuesExtension host issuesextensionsIssues concerning extensionsIssues concerning extensionsfreeze-slow-crash-leakVS Code crashing, performance, freeze and memory leak issuesVS Code crashing, performance, freeze and memory leak issues
Description
Does this issue occur when all extensions are disabled?: Yes
Version: 1.85.0-insider (user setup)
OS: Windows_NT x64 10.0.22518
These things block main thread significantly when starting up, following observations correspond to this CPU profile, but can be reproduced almost consistently:
- Git extension uses
spawnto "get the repository root" which can block over 3 seconds:
Note spawn in NodeJS is known to be synchronous and blocking: microsoft/vscode-python#22146 (comment). We can use worker threads here to spawn in a different thread, we've been doing the same in Python extension when spawning other binaries: microsoft/vscode-python#22146
- WSL recommender extension "gets telemetry" using "readFileSync" in the process, probably not necessary.
- This is probably required but extension host seems to use
readFileSyncwhich blocks some time:
Metadata
Metadata
Labels
extension-hostExtension host issuesExtension host issuesextensionsIssues concerning extensionsIssues concerning extensionsfreeze-slow-crash-leakVS Code crashing, performance, freeze and memory leak issuesVS Code crashing, performance, freeze and memory leak issues



