Open alexanderjeurissen opened 1 month ago
This seems to be related to the following issue:
I confirmed that invoking Workspace: reload
actually fixes the issue, which confirms that Zed is too "lazy" in reloading files from disk when they change.
Check for existing issues
Describe the bug / provide steps to reproduce it
Issue Description:
When using Zed as the default Git editor for commits, the
.git/COMMIT_EDITMSG
file can get stuck, preventing the editor from loading the current commit message and diff. Instead, it reopens the old message and diff from a previous commit, making it impossible to proceed with the new commit.Steps to Reproduce:
zed --wait
as the Git editor::x
to save and close the buffer.Observed Behavior:
.git/COMMIT_EDITMSG
..git/COMMIT_EDITMSG
viarm .git/COMMIT_EDITMSG*
does not resolve the issue, and the problem persists.Expected Behavior:
When performing a Git commit, Zed should open the fresh commit message and diff in
.git/COMMIT_EDITMSG
relevant to the latest changes.Impact:
This issue creates confusion and hinders smooth Git commit workflows when using Zed, especially when dealing with successive commits in quick succession.
Environment
Zed: v0.155.2 (Zed) OS: macOS 14.7.0 Memory: 32 GiB Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
https://github.com/user-attachments/assets/ca96f18a-4807-4af9-8e5d-a5cdcb672eac
If applicable, attach your Zed.log file to this issue.
Not sure if relevant: