zed icon indicating copy to clipboard operation
zed copied to clipboard

[TOML] Adding key to TOML file results in duplicated nearby key, inserted key is deleted

Open landaire opened this issue 4 months ago • 0 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

  1. Run the following commands:
git clone https://github.com/landaire/acceleration.git
git checkout dev
zed .
  1. Open the stfs/Cargo.toml file
  2. Attempt to insert a new dependency key (e.g. bytes = "1.6" on line 18)
  3. Save the file
  4. The key that was inserted will be removed, and a [patch.crates-io] section will be inserted
  5. 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

landaire avatar Apr 18 '24 05:04 landaire