Skip to content

Conversation

@auwi-nordic
Copy link

@auwi-nordic auwi-nordic commented Jan 7, 2026

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.

refreshfolders

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:

  • Add command to manually trigger a refresh/rescan of folders

@cla-bot
Copy link

cla-bot bot commented Jan 7, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @auwi-nordic on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@auwi-nordic
Copy link
Author

@cla-bot check

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 7, 2026
@cla-bot
Copy link

cla-bot bot commented Jan 7, 2026

The cla-bot has been summoned, and re-checked this pull request!

@auwi-nordic
Copy link
Author

Some things I'm uncertain about, which may need tweaking

  1. I don't know if adding a new remote request type, but it didn't seem I was able to re-use ScanRequest or PathPrefixScanRequest
  2. I'm not sure about the placement of the context menu item. At the bottom seems sensible, but maybe there should be a separator since it's a different kind of action form Rename/Trash/Delete

@auwi-nordic auwi-nordic force-pushed the refresh_actions branch 2 times, most recently from 96529bd to 339dbb5 Compare January 8, 2026 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Manual refresh on unsupported filesystems (nfs, fuse, exfat) without inofity/fsevents

1 participant