question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Removing a folder from multi-root workspace does not remove repo

See original GitHub issue

Version: 1.50.1 (user setup) Commit: d2e414d9e4239a252d1ab117bd7067f125afd80a Date: 2020-10-13T15:06:15.712Z Electron: 9.2.1 Chrome: 83.0.4103.122 Node.js: 12.14.1 V8: 8.3.110.13-electron.0 OS: Windows_NT x64 10.0.19041

Steps to Reproduce:

  1. 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

  2. Remove folder_B from workspace

    SCM pane still shows repo B (expected: repo B is automatically closed/removed)

  3. Select “close repo” on repo B

    repo B vanishes from SCM pane

  4. reopen workspace

    SCM pane again shows repo B (expected: repo B does no longer show up)

Workaround: Delete workspace settings under C:\Users\<username>\AppData\Roaming\Code\User\workspaceStorage.

Does this issue occur when all extensions are disabled?: Yes/No

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
laveenaBachanicommented, Jul 15, 2021

Can I work on this issue? I am participant of opensourceday2021.

1reaction
Linux-cpp-lispcommented, Apr 14, 2021

I am experiencing this bug; I’m not quite sure what sequence of actions got me here.

Even after right clicking the repo in source control and clicking “Close Repository”, the repository is reopened the next time I open the workspace.

Version: 1.55.2
Commit: 3c4e3df9e89829dce27b7b5c24508306b151f30d
Date: 2021-04-13T09:37:02.931Z
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Linux x64 4.15.0-140-generic
Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove a Repository From a VSCode Multi-Root Workspace
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...
Read more >
Multi-root Workspaces in Visual Studio Code
Removing folders. You can remove a folder from a Workspace with the Remove Folder from Workspace context menu command. Workspace file. When you...
Read more >
VS Code multi-root workspace with one top level git repo
The idea is to sparsely checkout the repo with: the .gitignore and any other file you need; only the func-x folder you want....
Read more >
Use repositories instead of workspace folders (#345) - GitLab
The problem with this approach is that the workspaceFolder doesn't have 1:1 relationship with repository. You can open the VS Code in any ......
Read more >
Setting up your workspace
Starting with Go 1.18, Go workspaces are the preferred solution. ... For example, suppose this repo is checked out into the $WORK/tools directory....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found