Ignore selections persistence for multi buffer editors (#25140)
Follow-up of https://github.com/zed-industries/zed/pull/25083 Release Notes: - N/A
This commit is contained in:
parent
13da468e22
commit
e57b9e5f83
1 changed files with 4 additions and 1 deletions
|
@ -2203,6 +2203,7 @@ impl Editor {
|
|||
cx.emit(SearchEvent::ActiveMatchChanged)
|
||||
}
|
||||
if local
|
||||
&& self.is_singleton(cx)
|
||||
&& WorkspaceSettings::get(None, cx).restore_on_startup != RestoreOnStartupBehavior::None
|
||||
{
|
||||
if let Some(workspace_id) = self.workspace.as_ref().and_then(|workspace| workspace.1) {
|
||||
|
@ -15063,7 +15064,9 @@ impl Editor {
|
|||
window: &mut Window,
|
||||
cx: &mut Context<Editor>,
|
||||
) {
|
||||
if WorkspaceSettings::get(None, cx).restore_on_startup == RestoreOnStartupBehavior::None {
|
||||
if !self.is_singleton(cx)
|
||||
|| WorkspaceSettings::get(None, cx).restore_on_startup == RestoreOnStartupBehavior::None
|
||||
{
|
||||
return;
|
||||
}
|
||||
let Some(selections) = DB.get_editor_selections(item_id, workspace_id).log_err() else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue