zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
47.97k stars 2.83k forks source link

No way to access Git hunk information when deleting all file contents #18644

Open JosephTLyons opened 3 days ago

JosephTLyons commented 3 days ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Delete all the contents in a git-tracked file and notice that there is no git hunk indicators to click to pull up a hunk diff.

Environment

Zed: v0.156.0 (Zed Nightly 563a1dcbab67b58a6c9cf10fe4dea35d862376d1) OS: macOS 14.4.0 Memory: 64 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

https://github.com/user-attachments/assets/11aa3640-3954-442a-9d6d-c8eeb00a8626

If applicable, attach your Zed.log file to this issue.

Zed.log


JosephTLyons commented 3 days ago

cc: @SomeoneToIgnore @iamnbutler (for design)