Skip to content

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

@Tyriar

Description

@Tyriar

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions