From 02da3cf4fbc7cafc6b62feffee45c65a448d2f4e Mon Sep 17 00:00:00 2001 From: Adin Ackerman Date: Fri, 8 Aug 2025 22:12:27 -0700 Subject: [PATCH] Update project_panel.rs --- crates/project_panel/src/project_panel.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs index 967df41e23..387116377e 100644 --- a/crates/project_panel/src/project_panel.rs +++ b/crates/project_panel/src/project_panel.rs @@ -2725,6 +2725,15 @@ impl ProjectPanel { dir_path }; + // Ensure trailing slash. + let dir_path = { + let mut complete_path = dir_path.to_path_buf(); + if !complete_path.ends_with("/") { + complete_path.as_mut_os_string().push("/"); + } + Arc::from(complete_path) + }; + self.workspace .update(cx, |workspace, cx| { search::ProjectSearchView::new_search_in_directory(