project search: Do not open a new existing item in the current pane for DeploySearch

Fixes https://github.com/zed-industries/community/issues/2395 using the first approach suggested in the original post (focus the existing search without bringing it over to a pane).
This commit is contained in:
Piotr Osiewicz 2024-01-11 13:55:39 +01:00
parent a9fce19048
commit 634a55257d

View File

@ -1016,8 +1016,6 @@ impl ProjectSearchView {
view view
}; };
workspace.add_item(Box::new(search.clone()), cx);
search.update(cx, |search, cx| { search.update(cx, |search, cx| {
if let Some(query) = query { if let Some(query) = query {
search.set_query(&query, cx); search.set_query(&query, cx);