Add command to manually trigger a refresh/rescan of folders #46291
+167
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #29598
This may also help a bit with #20849 in the cases where users can do a folder refresh instead of a reload to solve their workspace issues.
This adds both a project panel context menu "Refresh Folders" which refreshes the hierarchy below the chosen folder, and a command "workspace: refresh folders" which refreshes everything in the current window.
Should work for remote ssh sessions as well. Tested locally and on remote workspaces on MacOS.
Checked that it functions as workaround for #35173
I have very little experience with Rust and the Zed codebase, so someone more experienced should review the changes thorughly. Feature was implemented with the help of Claude agent, but did some iterations and manual changes to tidy up things.
Feature name is inspired by the Sublime "Project: Refresh Folders" command, which does something similar.
Release Notes: