Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
assistant panel: Make "Configure" button in menu open Configuration view (#15799)
Thorsten Ball0d97b236e759
diff --git a/crates/assistant/src/model_selector.rs b/crates/assistant/src/model_selector.rsindex b3d0344e71f..c01e6e92987 100644--- a/crates/assistant/src/model_selector.rs+++ b/crates/assistant/src/model_selector.rs@@ -1,8 +1,8 @@use std::sync::Arc;-use crate::assistant_settings::AssistantSettings;+use crate::{assistant_settings::AssistantSettings, ShowConfiguration};use fs::Fs;-use gpui::SharedString;+use gpui::{Action, SharedString};use language_model::{LanguageModelAvailability, LanguageModelRegistry};use proto::Plan;use settings::update_settings_file;@@ -98,15 +98,8 @@ impl<T: PopoverTrigger> RenderOnce for ModelSelector<T> {}},{- let provider = provider.clone();- move |cx| {- LanguageModelRegistry::global(cx).update(- cx,- |completion_provider, cx| {- completion_provider- .set_active_provider(Some(provider.clone()), cx);- },- );+ |cx| {+ cx.dispatch_action(ShowConfiguration.boxed_clone());}},);