Skip to content

Zed out of sync with changes made outside of editor #38109

@binarypie

Description

@binarypie

Summary

Adding, removing, or renaming files and folders outside of Zed will not automatically update the project panel.

Description

When working with complex projects where files will change outside of Zed the Zed editor falls out of sync with the system state. Specifically, open buffers and the project panel, and the git panel. Likely anything inside of Zed that relies on a cache of the current filesystem state.

Steps to reproduce:

  1. Start with a deep folder structure
  • Apps
    • app1
    • app2
    • app3
  • Packages
    • package 1
    • package 2
      • protos
        • service/v1/
      • src
    • package 3
  1. Have AI create some protos in package2/protos/service/v1
  2. Open some of these protos in Zed
  3. Download some actual protos that replace some of those files
  4. Download some actual protos that add new protos to that folder
  5. Open a terminal and cd into the directory to verify they are there
  6. Notice the open buffer did not update
  7. Notice the project file list did not update

Expected Behavior:

  • Open buffers should update when files are replaced on the system.
  • Project folder structure should be in sync when making changes outside of Zed
  • Git panel should always show the current state as if one typed git status in their terminal.

Actual Behavior:

  • Open buffers display the previous version of the file downloaded.
  • Git panel is completely ignorant of any changes even after doing git add .
  • Project panel still show the old state

Errors

LSP Failed to load workspaces. (click to expand)
2025-09-12T22:07:22-07:00 INFO  [project.lsp_format] Formatting via LSP
2025-09-12T22:07:22-07:00 ERROR [project::lsp_store] Formatting failed: failed to format via language server: Failed to spawn cd "/Code/packages/rust/services" && "rustfmt"
2025-09-12T22:07:22-07:00 ERROR [acp_thread] failed to format via language server

Caused by:
    Failed to spawn cd "/Code/packages/rust/services" && "rustfmt"
2025-09-12T22:07:37-07:00 INFO  [project.lsp_format] Formatting via LSP
2025-09-12T22:07:37-07:00 ERROR [project::lsp_store] Formatting failed: failed to format via language server: Failed to spawn cd "/Code/packages/rust/services/src/openfga" && "rustfmt"
2025-09-12T22:07:37-07:00 ERROR [acp_thread] failed to format via language server

Zed Version and System Specs

Zed: v0.202.8 (Zed)
OS: Linux Wayland bluefin 42
Memory: 125.6 GiB
Architecture: x86_64
GPU: AMD Radeon RX 7900 XTX (RADV NAVI31) || radv || Mesa 25.1.7

Metadata

Metadata

Assignees

Labels

area:workspaceFeedback for workspace management, layout, interactions, etc

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions