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:
Danilo Leal 2025-03-24 21:00:33 -03:00 committed by GitHub
parent c32dece1b8
commit 03102b4d7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 27 additions and 13 deletions

View file

@ -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)
}),
),
)