From f9cb919cba171833edfe5e948eeb139369f92959 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 21 Apr 2026 10:34:37 -0700 Subject: [PATCH] Tweak wording around multi-folder project actions (#54438) * Project panel "Add Folders to Project" and "Remove folder from Project" * Recent projects "Add Folders to this Project" Release Notes: - N/A --- crates/project_panel/src/project_panel.rs | 4 ++-- crates/recent_projects/src/recent_projects.rs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs index ed139546669c94b3aca7c5c4febc8a7e54435ef0..e9d3a16564b1bdd2f452cd2ac34f23b839f5cb9d 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.rs index 8b7c16e4b598584e8d04890f79f254400e258110..5cca4767a2f40bb05f7319ead0f60f536a9242f7 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, window: &mut Window,