Vscode: SCM: Differentiate between submodules and normal repos

Created on 19 Feb 2018  路  7Comments  路  Source: microsoft/vscode

Issue 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 ../A and ../B)

For continuous integration and deployment, I use submodules:

  • C (references ./.libs/A and ./.libs/B)

    • .libs



      • A


      • B (references /builds/C/.libs/A)



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

feature-request help wanted scm

Most helpful comment

I have the same issue, which is worsened when using workspaces.

image

All 7 comments

Plus one for me. When I work in the parent directory of all my git projects, it causes all of my submodules to display as many times as they are included within other projects. An option to not display submodules in the source control providers list would be helpful.

I have the same issue, which is worsened when using workspaces.

image

40548

@joaomoreno This is not a duplicate of #40548

You are the one who changed the title in August from Differentiate between submodules and normal repos to Differentiate between repositories with the same name, which is not the same.

Please reopen and revert the title change, this is still an issue

@joaomoreno I totally agree with @NotWearingPants. My issue is specifically related to submodules. #40548 would lessen the issue, but would not solve it.

You're absolutely right, sorry about that.

~Duplicate of #101859 : PLEASE UPVOTE IT THERE SO IT CAN BE WORKED ON!~

101859 is Duplicate

Was this page helpful?
0 / 5 - 0 ratings

Related issues

biij5698 picture biij5698  路  3Comments

chrisdias picture chrisdias  路  3Comments

ryan-wong picture ryan-wong  路  3Comments

shanalikhan picture shanalikhan  路  3Comments

v-pavanp picture v-pavanp  路  3Comments