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

Piotr Osiewicz created

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).

Change summary

crates/search/src/project_search.rs | 2 --
1 file changed, 2 deletions(-)

Detailed changes

crates/search/src/project_search.rs 🔗

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