Source Control hangs on “Scanning workspace for Git repositories...”

Sorry about the auto-close on the previous thread. This is a known issue — the Git extension’s repository scanning can hang on certain workspace configurations, particularly on Windows.

A few things to try that should help:

  1. Change the repository detection mode. Open Settings (Ctrl+,), search for git.autoRepositoryDetection, and set it to openEditors. This skips the full directory scan and only detects repos for files you actually open. This is the most impactful fix.

  2. Restart the built-in Git extension. In the Extensions panel, search for @builtin git, click the gear icon on “Git” and choose Disable, then Enable it again, and Reload the window. Another user in the previous thread confirmed this unblocked them.

  3. Open the project folder directly rather than a parent or higher-level directory.

Our team is aware of this and is working on a fix. Let me know if the openEditors setting resolves it for you.