SCM: Differentiate between submodules and normal repos
See original GitHub issueIssue Type
Feature Request
I would like submodules to be nested underneath their parent repo in the Source Control Pane.
Description
I love the new submodule feature, but there are a couple of issues with the Source Control pane:
- I can’t tell which providers (repos) are submodules
- I can’t tell what top-level provider a given submodule provider is associated with
For most situations, this probably isn’t an issue. But for some of my projects, it is a serious issue. For example, I have projects:
- A - depends on nothing
- B - depends on A
- C - depends on A and B
- etc
For development, I use a multi-root workspace with a directory structure something like this:
- Projects
- A
- B (references ../A)
- C (references ../Aand../B)
 
For continuous integration and deployment, I use submodules:
- C (references ./.libs/Aand./.libs/B)- .libs
- A
- B (references /builds/C/.libs/A)
 
 
- .libs
While I could leave the submodules uninitialized on my dev machine, my workflow includes doing a build with submodules before I push, to ensure I haven’t forgotten to update a submodule, because why waste CPU cycles on a CI build that’s guaranteed to fail.
In this particular example, where B has A as a submodule, and C has A and B, I will have six repos (A, B, C, B/.libs/A, C/.libs/A, and C/.libs/B) show up in VSCode. While I can and do disable submodule discovery for these projects, that doesn’t stop VSCode from picking them up when I open a file in a submodule.
VS Code Info
VS Code version: Code 1.20.1 (f88bbf9137d24d36d968ea6b2911786bfe103002, 2018-02-13T15:34:36.336Z) OS version: Windows_NT x64 10.0.16299
Issue Analytics
- State:
- Created 6 years ago
- Reactions:31
- Comments:10 (3 by maintainers)

 Top Related Medium Post
Top Related Medium Post Top Related StackOverflow Question
Top Related StackOverflow Question
I have the same issue, which is worsened when using workspaces.
@joaomoreno This is not a duplicate of #40548
You are the one who changed the title in August from
Differentiate between submodules and normal repostoDifferentiate between repositories with the same name, which is not the same.Please reopen and revert the title change, this is still an issue