diff --git a/crates/sidebar/src/sidebar.rs b/crates/sidebar/src/sidebar.rs index 2872853b532122f7e19d3986c719f02f3ea3b000..2869713fcabc076a4f8ce5f93006bf44bd7898d2 100644 --- a/crates/sidebar/src/sidebar.rs +++ b/crates/sidebar/src/sidebar.rs @@ -1734,9 +1734,7 @@ impl Sidebar { }, ); - let menu = if project_group_key.host().is_none() - && has_multiple_projects - { + let menu = if project_group_key.host().is_none() && has_multiple_projects { menu.entry( "Open Project in New Window", Some(Box::new(workspace::MoveProjectToNewWindow)), diff --git a/crates/workspace/src/multi_workspace.rs b/crates/workspace/src/multi_workspace.rs index 9615de53a50a8d1380c97c7840aec2f9fa6973b8..96acf38140fac59a0c21d210ee22695e3498aea9 100644 --- a/crates/workspace/src/multi_workspace.rs +++ b/crates/workspace/src/multi_workspace.rs @@ -877,11 +877,9 @@ impl MultiWorkspace { .collect(); let mut serialization_tasks = Vec::new(); for workspace in &workspaces { - serialization_tasks.push( - workspace.update(cx, |workspace, inner_cx| { - workspace.flush_serialization(window, inner_cx) - }), - ); + serialization_tasks.push(workspace.update(cx, |workspace, inner_cx| { + workspace.flush_serialization(window, inner_cx) + })); } let remove_task = self.remove_project_group(key, window, cx); @@ -895,15 +893,7 @@ impl MultiWorkspace { } cx.update(|cx| { - Workspace::new_local( - paths, - app_state, - None, - None, - None, - OpenMode::NewWindow, - cx, - ) + Workspace::new_local(paths, app_state, None, None, None, OpenMode::NewWindow, cx) }) .await?; @@ -1709,20 +1699,18 @@ impl Render for MultiWorkspace { sidebar.cycle_thread(true, window, cx); } })) - .on_action(cx.listener( - |this: &mut Self, _: &PreviousThread, window, cx| { + .on_action( + cx.listener(|this: &mut Self, _: &PreviousThread, window, cx| { if let Some(sidebar) = &this.sidebar { sidebar.cycle_thread(false, window, cx); } - }, - )) + }), + ) .when(self.project_group_keys.len() >= 2, |el| { el.on_action(cx.listener( |this: &mut Self, _: &MoveProjectToNewWindow, window, cx| { - let key = this.project_group_key_for_workspace( - this.workspace(), - cx, - ); + let key = + this.project_group_key_for_workspace(this.workspace(), cx); this.open_project_group_in_new_window(&key, window, cx) .detach_and_log_err(cx); },