From 634a55257d2c16484c34673f3cff61cf91f456a2 Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Thu, 11 Jan 2024 13:55:39 +0100 Subject: [PATCH] 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). --- crates/search/src/project_search.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/crates/search/src/project_search.rs b/crates/search/src/project_search.rs index 6fd66b5bad..8244c1cf28 100644 --- a/crates/search/src/project_search.rs +++ b/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);