This commit is contained in:
AdinAck 2025-08-25 23:14:53 +03:00 committed by GitHub
commit 4b2a4d57d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2712,6 +2712,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(