You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just want to be able to save the document (ctrl+s), but hitting this shortcut literally does the opposite -> undoes any changes since last save. Strangely, even if I do File-Save, it does the same thing. Is this intended behaviour?
Possibly related to: #24643
Steps to trigger the problem:
open a document
make some changes
hit ctrl+s or file-save
zed undoes all changes
Actual Behavior:
undoing unsaved changes
Expected Behavior:
saving changes
Do you have a formatter configured in your Zed user settings (~/.config/zed/settings.json) or project settings (.zed/settings.json)? Can you paste the relevant lines? (note formatter can be defined both globally (a bad idea) and under the languages.WhateverLand (a good idea).
A misconfigured formatter combined with format_on_save can trigger odd behaviors. Zed expects custom formatters to be configured to read from stdin and write to stdout and not directly touch the filesystem. See more here: https://zed.dev/docs/configuring-zed#formatter
Does it save correctly if you run workspace: save without format from the command palette (ctrl-shift-p)?
Summary
I just want to be able to save the document (ctrl+s), but hitting this shortcut literally does the opposite -> undoes any changes since last save. Strangely, even if I do File-Save, it does the same thing. Is this intended behaviour?
Possibly related to: #24643
Steps to trigger the problem:
Actual Behavior:
undoing unsaved changes
Expected Behavior:
saving changes
Zed Version and System Specs
Zed: v0.175.6 (Zed)
OS: Linux Wayland arch unknown
Memory: 15.2 GiB
Architecture: x86_64
GPU: Intel(R) Iris(R) Plus Graphics (ICL GT2) || Intel open-source Mesa driver || Mesa 24.3.4-arch1.1
The text was updated successfully, but these errors were encountered: