mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-09 03:57:39 +00:00
assistant panel: Make "Configure" button in menu open Configuration view (#15799)
Some checks are pending
CI / Check formatting and spelling (push) Waiting to run
CI / (macOS) Run Clippy and tests (push) Waiting to run
CI / (Linux) Run Clippy and tests (push) Waiting to run
CI / (Windows) Run Clippy and tests (push) Waiting to run
CI / Create a macOS bundle (push) Blocked by required conditions
CI / Create a Linux bundle (push) Blocked by required conditions
CI / Create arm64 Linux bundle (push) Blocked by required conditions
Deploy Docs / Deploy Docs (push) Waiting to run
Docs / Check formatting (push) Waiting to run
Some checks are pending
CI / Check formatting and spelling (push) Waiting to run
CI / (macOS) Run Clippy and tests (push) Waiting to run
CI / (Linux) Run Clippy and tests (push) Waiting to run
CI / (Windows) Run Clippy and tests (push) Waiting to run
CI / Create a macOS bundle (push) Blocked by required conditions
CI / Create a Linux bundle (push) Blocked by required conditions
CI / Create arm64 Linux bundle (push) Blocked by required conditions
Deploy Docs / Deploy Docs (push) Waiting to run
Docs / Check formatting (push) Waiting to run
Release Notes: - N/A Co-authored-by: Bennet <bennet@zed.dev>
This commit is contained in:
parent
0fba36469b
commit
0d97b236e7
1 changed files with 4 additions and 11 deletions
|
@ -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());
|
||||
}
|
||||
},
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue