mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
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:
parent
a9fce19048
commit
634a55257d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user