When a folder contains multiple git entries, the cursor is not correctly identified

Hey, this is a known bug with detecting multiple git repos in one workspace on our side, and we’re tracking it. No ETA for a fix yet.

A couple similar reports:

Workarounds that help some users:

  1. Create a multi-root workspace via File > Add Folder to Workspace, add frontend and backend as separate roots, then save it as a .code-workspace. In this setup, Source Control usually picks up both repos more reliably than when you open the parent folder.
  2. Check your settings (Settings, search for git.):
    • git.autoRepositoryDetection: set to true or subFolders
    • git.repositoryScanMaxDepth: increase to 2 or higher
  3. If the repos still don’t show up, open one file from each repo. Sometimes that triggers detection.

If none of that helps, reply here and I’ll add your report to the issue. If we get an update on the fix, I’ll post it in the thread.