Don't autosave unmodified buffers (#32626)
Closes https://github.com/zed-industries/zed/issues/12091 Proper redo of https://github.com/zed-industries/zed/pull/32603 Release Notes: - Fixed formatting effects not triggered when saving unmodified singleton buffers --------- Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com> Co-authored-by: Cole Miller <m@cole-miller.net>
This commit is contained in:
co-authored by
Max Brunsfeld
Cole Miller
parent
cd018da1ad
commit
cef0c415f6
@@ -50,7 +50,6 @@ pub struct EditorSettings {
|
||||
pub diagnostics_max_severity: Option<DiagnosticSeverity>,
|
||||
pub inline_code_actions: bool,
|
||||
pub drag_and_drop_selection: bool,
|
||||
pub save_non_dirty_buffers: bool,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, Serialize, Deserialize, PartialEq, Eq, JsonSchema)]
|
||||
@@ -503,12 +502,6 @@ pub struct EditorSettingsContent {
|
||||
///
|
||||
/// Default: true
|
||||
pub drag_and_drop_selection: Option<bool>,
|
||||
|
||||
/// Whether to save singleton buffers that are not dirty.
|
||||
/// This will "touch" the file and related tools enabled, e.g. formatters.
|
||||
///
|
||||
/// Default: true
|
||||
pub save_non_dirty_buffers: Option<bool>,
|
||||
}
|
||||
|
||||
// Toolbar related settings
|
||||
|
||||
Reference in New Issue
Block a user