Update project_panel.rs
This commit is contained in:
parent
4e97968bcb
commit
02da3cf4fb
1 changed files with 9 additions and 0 deletions
|
@ -2725,6 +2725,15 @@ impl ProjectPanel {
|
||||||
dir_path
|
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
|
self.workspace
|
||||||
.update(cx, |workspace, cx| {
|
.update(cx, |workspace, cx| {
|
||||||
search::ProjectSearchView::new_search_in_directory(
|
search::ProjectSearchView::new_search_in_directory(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue