Persist selections for editors (#25083)

Part of https://github.com/zed-industries/zed/issues/7371
Closes https://github.com/zed-industries/zed/issues/12853

Release Notes:

- Started to persist latest selections for editors, to restore those on
restart
This commit is contained in:
Kirill Bulatov 2025-02-18 16:27:00 +02:00 committed by GitHub
parent b34037876e
commit 80458ffb96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 159 additions and 5 deletions

View file

@ -71,7 +71,7 @@ impl CloseWindowWhenNoItems {
}
}
#[derive(Copy, Clone, Default, Serialize, Deserialize, JsonSchema)]
#[derive(Copy, Clone, PartialEq, Eq, Default, Serialize, Deserialize, JsonSchema)]
#[serde(rename_all = "snake_case")]
pub enum RestoreOnStartupBehavior {
/// Always start with an empty editor