Skip to content

Git submodules in multi-root workspace is not named correctly #427

@thetrompf

Description

@thetrompf

Steps to Reproduce:

  1. Configure multi-root workspace with multiple git submodules
  2. Use custom names for the workspace roots
  3. The names for the git submodules do not have the same names as the VSCode SCM provider uses.

image

The names should have been, if they should match VSCode:
app -> wicotec
ansible -> ansible
static-content-server -> core

I think the problem is, that I have multiple workspace roots that points to different places in the same git submodule.

The directory layout on the filesystem looks like this:

wicotec                              (VS: root, git: wicotec)
    - app                            (VS: app, git: wicotec)
    - core                           (VS: core: git: core)
        - ansible                    (VS: ansible, git: core)
        - services
            - graphql-server         (VS: graphql-server, git: core)
            - authentication-server  (VS: authentication-server, git: core)
            ....
            - static-content-server  (VS: static-content-server, git: core

image

I don't know if it's better to follow VSCode names for the submodules, or something else should happen, or if they should follow the workspace root folder names, if not maybe you could detect which workspace root contains the submodule root (if exists), and name it after that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedWant community input and/or pull request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions