Refactor SearchSettings (#17550)

Related to #17179.

Simplify handling of search settings since there is no requirement to
watch for settings.json changes and update search panels while they are
opened.

Attn: @SomeoneToIgnore 

Per our discussion. Ran test on search crate. Ran `cargo fmt`.

Release Notes:

- N/A
This commit is contained in:
thataboy 2024-09-07 16:58:28 -07:00 committed by GitHub
parent 63188b6754
commit 894866da94
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 32 deletions

View file

@ -4,7 +4,6 @@ use editor::SearchSettings;
use gpui::{actions, Action, AppContext, IntoElement};
use project::search::SearchQuery;
pub use project_search::ProjectSearchView;
use settings::Settings;
use ui::{prelude::*, Tooltip};
use ui::{ButtonStyle, IconButton};
use workspace::notifications::NotificationId;
@ -15,7 +14,6 @@ pub mod project_search;
pub(crate) mod search_bar;
pub fn init(cx: &mut AppContext) {
SearchSettings::register(cx);
menu::init();
buffer_search::init(cx);
project_search::init(cx);