'VS Code - Multi-root workspace not showing all git repositories in source control panel

I have a multi-root workspace set up where all of the folders in my workspace are git repositories.

However, for some reason only some of them show up in the Source Control panel, even though I've added them all to the workspace in the same way (File > Add Folder to Workspace).

How do I get all of the repositories to show up in the Source Control panel?


This is what my workspace looks like:

workspace folders

This is what my source control looks like:

source control repositories



Solution 1:[1]

For me, this issue ended up being a folder permissions issue. I ran VS Code as administrator and the missing directories showed up. I looked at the directory owners and noticed the working directories were own by my user, and the non working directories were owned by the admin group (which my user belonged to). Changing the directory ownership to my main user was the long term fix.

two out rabbit hole. Meh.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 sowava7333