Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Tweak wording around multi-folder project actions (#54438)
Max Brunsfeldf9cb919cba17
diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rsindex ed139546669..e9d3a16564b 100644--- a/crates/project_panel/src/project_panel.rs+++ b/crates/project_panel/src/project_panel.rs@@ -1217,10 +1217,10 @@ impl ProjectPanel {.when(!is_collab && is_root, |menu| {menu.separator().action(- "Add Project to Workspace…",+ "Add Folders to Project…",Box::new(workspace::AddFolderToProject),)- .action("Remove from Workspace", Box::new(RemoveFromProject))+ .action("Remove from Project", Box::new(RemoveFromProject))}).when(is_dir && !is_root, |menu| {menu.separator().action(diff --git a/crates/recent_projects/src/recent_projects.rs b/crates/recent_projects/src/recent_projects.rsindex 8b7c16e4b59..5cca4767a2f 100644--- a/crates/recent_projects/src/recent_projects.rs+++ b/crates/recent_projects/src/recent_projects.rs@@ -780,7 +780,7 @@ impl RecentProjects {let paths_to_add = paths.paths().to_vec();picker.delegate- .add_project_to_workspace(paths_to_add, window, cx);+ .add_paths_to_project(paths_to_add, window, cx);}}}@@ -1509,7 +1509,7 @@ impl PickerDelegate for RecentProjectsDelegate {.icon_size(IconSize::Small).tooltip(move |_, cx| {Tooltip::with_meta(- "Add Project to this Workspace",+ "Add Folders to this Project",None,"As a multi-root folder project",cx,@@ -1520,7 +1520,7 @@ impl PickerDelegate for RecentProjectsDelegate {cx.listener(move |picker, _event, window, cx| {cx.stop_propagation();window.prevent_default();- picker.delegate.add_project_to_workspace(+ picker.delegate.add_paths_to_project(paths_to_add.clone(),window,cx,@@ -1982,7 +1982,7 @@ fn open_local_project(}impl RecentProjectsDelegate {- fn add_project_to_workspace(+ fn add_paths_to_project(&mut self,paths: Vec<PathBuf>,window: &mut Window,