zed
zed copied to clipboard
[TOML] Adding key to TOML file results in duplicated nearby key, inserted key is deleted
Check for existing issues
- [X] Completed
Describe the bug / provide steps to reproduce it
- Run the following commands:
git clone https://github.com/landaire/acceleration.git
git checkout dev
zed .
- Open the
stfs/Cargo.toml
file - Attempt to insert a new dependency key (e.g.
bytes = "1.6"
on line 18) - Save the file
- The key that was inserted will be removed, and a
[patch.crates-io]
section will be inserted - Removing any of the
[patch.crates-io]
content and saving the file will result in it being re-inserted
In the following video I am only inserting the bytes
key, then deleting the [patch.crates-io]
section and saving repeatedly. I'm not undoing anything or pasting content.
https://github.com/zed-industries/zed/assets/1313522/b2ad1171-26c6-4985-946f-247723f43c32
Environment
Zed: v0.131.6 (Zed)
OS: macOS 14.2.1
Memory: 24 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your ~/Library/Logs/Zed/Zed.log
file to this issue.
No response