2020-10-15
Removing a folder from a multi-root workspace does not remove the associated git repo from SCM view. I’ve reported this already as an issue in the VSCode project:
Steps to Reproduce
- Create a multi-root workspace:
- folder_A contains git-repo A
- folder_B contains git-repo B SCM pane shows repo A and repo B
Remove folder_B SCM pane still shows repo B (expected: repo B is automatically closed/>oved)
Select “close repo” on repo B repo B vanishes from SCM pane
- reopen workspace SCM pane again shows repo B (expected: repo B does no longer show up)
As a workaround you can search and delete the workspace settings under
C:\Users\<username>\AppData\Roaming\Code\User\workspaceStorage
.
Update 2020-11-04
There was some analysis on the topic on Github. Obviously, it is connected to having files from folder_B still open in an editor. Closing those should solve the problem without the above workaround.