vscode icon indicating copy to clipboard operation
vscode copied to clipboard

getRepositories taking a lot of CPU when opening a folder with 20000 files in root

Open Tyriar opened this issue 2 weeks ago • 0 comments

Repro:

  1. Windows
  2. Open an empty temp window
  3. Run in pwsh: 1..20000 | ForEach-Object { [System.IO.File]::Create("d:\Playground\many_files\file$_.txt").Dispose() }
  4. Open terminal and type ./ (maybe not needed)
Image

Trace: vscode-profile-2025-12-10-08-57-34.cpuprofile

Tyriar avatar Dec 10 '25 16:12 Tyriar