You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: convert sync I/O to async in session discovery to prevent VS Code UI freeze (#527)
* fix: convert sync I/O to async in getCopilotSessionFiles to prevent VS Code UI freeze
All filesystem operations in getCopilotSessionFiles() and
scanDirectoryForSessionFiles() were synchronous (fs.existsSync,
fs.readdirSync, fs.statSync), blocking Node.js's event loop during
startup. With many workspaces/sessions (300+ is common), this caused VS
Code to become completely unresponsive — extensions could not load, git
would not start, and the status bar was permanently stuck on 'Loading...'.
Changes:
- Add private pathExists() async helper using fs.promises.access()
- Convert getCopilotSessionFiles() to use fs.promises.readdir/stat/access
throughout (workspaceStorage, globalStorage, Copilot CLI, OpenCode,
Crush scan loops)
- Make scanDirectoryForSessionFiles() async (fs.promises.readdir/stat)
- Replace inline fs.existsSync in log messages with deferred path checks
- Copilot CLI subdirectory loop now uses fs.promises.stat directly
(combining the existsSync + statSync into a single async stat call)
These async I/O calls yield the event loop between operations, allowing
VS Code's UI and other extensions to run during the filesystem scan.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: move Icon before Tags in vsixmanifest to fix schema validation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: visualstudio-extension/src/CopilotTokenTracker/source.extension.vsixmanifest
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,8 @@
9
9
Publisher="Rob Bos" />
10
10
<DisplayName>AI Engineering Fluency</DisplayName>
11
11
<Description>Measure and grow your AI engineering fluency in Visual Studio. Tracks GitHub Copilot token usage, today's and last-30-days activity, per-model breakdowns, and detailed session analysis.</Description>
0 commit comments