-
Notifications
You must be signed in to change notification settings - Fork 27.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deleted root folders persist and cause global search to fail in remote workspaces #78350
Comments
I am not convinced we should remove root entries from the workspace file when a root gets removed because it could easily be a remote server or attached drive that gets disconnected. So -1 for doing that automatically. However a disconnected root should not cause operations on other folders to work, e.g. like search. |
Highlighting problematic root entries (fails to exist, fails to have read permission, etc), maybe using a red or grey font, would be useful (in addition to removing from search and other things that would break). |
@isidorn a root folder that is invalid is no longer decorated in the file explorer, can you check that? Regression? |
Hi @bpasero, not sure if you were asking me, but in my explorer a deleted root folder (B renamed to C) seems to display the same as a normal one (screenshot below). This is from a Windows workspace, but the same is true in a remote Linux workspace. Maybe I'm misunderstanding what decorated means? Could it be file icon theme-dependent? I tried other themes and didn't see a difference. |
No, I think we used to show an exclamation mark when a root folder cannot resolve. We seem to no longer have that. (cc @sandy081) |
A deleted folder should be shown with warning (!) in UI. Also features like search should ignore it. It is the same case when there is an invalid folder in the workspace configuration file. Since @isidorn has captured explorer issue separately, assigning @roblourens for search here. |
Got #76654 for that |
Summary
If one of the root folders in a workspace is deleted outside of VSC, it remains in the workspace explorer even after refresh. Moreover, in a remote Linux workspace this causes global search to fail with a cryptic error message so that users may have no idea what’s causing the error. This is how I came across this issue - it took a long time to determine that global searching was failing because I had renamed a root folder (or perhaps renamed the parent directory of a root folder, which has the same effect).
Steps to Reproduce
Expected: not clear, should probably at least remove the nonexistent FolderB
Actual: FolderB remains, but no files are shown
Expected: not clear
Actual: the clipboard contains the original path to FolderB which no longer exists
Expected: works
Actual:
spawn /home/me/.vscode-server/bin/2213894ea0415ee8c85c5eea0d0ff81ecc191529/node_modules/vscode-ripgrep/bin/rg ENOENT
Does this issue occur when all extensions are disabled?
The text was updated successfully, but these errors were encountered: