assistant: Allow opening the Prompt Library via the command palette (#27368)
Also took the opportunity to rename the action to something that would be clearer in the command palette, from `DeployPromptLibrary` to `OpenPromptLibrary`. Release Notes: - N/A --------- Co-authored-by: Marshall Bowers <git@maxdeviant.com>
This commit is contained in:
parent
c32dece1b8
commit
03102b4d7e
6 changed files with 27 additions and 13 deletions
|
@ -9,7 +9,7 @@ use ui::{
|
|||
prelude::*, Disclosure, Divider, DividerColor, ElevationIndex, Indicator, Switch, Tooltip,
|
||||
};
|
||||
use util::ResultExt as _;
|
||||
use zed_actions::assistant::DeployPromptLibrary;
|
||||
use zed_actions::assistant::OpenPromptLibrary;
|
||||
use zed_actions::ExtensionCategoryFilter;
|
||||
|
||||
pub struct AssistantConfiguration {
|
||||
|
@ -374,7 +374,7 @@ impl Render for AssistantConfiguration {
|
|||
.icon_size(IconSize::Small)
|
||||
.icon_position(IconPosition::Start)
|
||||
.on_click(|_event, window, cx| {
|
||||
window.dispatch_action(DeployPromptLibrary.boxed_clone(), cx)
|
||||
window.dispatch_action(OpenPromptLibrary.boxed_clone(), cx)
|
||||
}),
|
||||
),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue