Multiple Git repositories in a Theia workspace

Hello

I have a Theai workspace in which I have added several folders, each of them having its own Git repository, my workspace file looks like:

{
   "folders": [
      {
         "path": "myproject1"
      },
      {
         "path": "myproject2"
      },
      ...
      {
         "path": "myprojectN"
      }
   ],
   ...
}

Unfortunately, in the Git view Theia only manages Git changes in the first folder. None of the changes done in the other folders is displayed.

How can I make the Git view managing several Git repositories (one per folder) like the desktop version of VSCode does ?

The only workaround I found is to use the git command line in the console for each folder.

Thank you in advance for any help

@dazoulay-simplicite if you are referring to the following feature (https://github.com/eclipse-theia/theia/issues/8291#issuecomment-668074089) it is not yet implemented.

You can however switch the current repository (using the statusbar entry or change repository command), in a multiple-root workspace. This will update the UI to reflect changes for the given repository.

switch-repo

Thank you very much for your quick answer. This switch command does the trick.

Switching like this is less practical/intuitive than having all the repositories displayed at the same time like in VSCode, I understand this is not yet implemented, is it planed to be implemented ?

VS Code has only recently implmented the feature themselves (previously it was only possible through the command I mentioned). The feature is being tracked, and anyone is free to provide an implementation and submit a pull-request.