assistant: Fix assistant: open prompt library
not opening the prompt library (#28156)
This PR fixes the `assistant: open prompt library` action in the command palette not opening the prompt library when the Assistant Panel did not have focus. Fixes https://github.com/zed-industries/zed/issues/28058. Release Notes: - assistant: Fixed `assistant: open prompt library` not opening the prompt library when the Assistant Panel was not focused.
This commit is contained in:
parent
caf0d6c5fa
commit
adbebb28dc
3 changed files with 17 additions and 12 deletions
|
@ -190,13 +190,16 @@ pub mod agent {
|
|||
}
|
||||
|
||||
pub mod assistant {
|
||||
use gpui::{actions, impl_actions};
|
||||
use gpui::{action_with_deprecated_aliases, actions, impl_actions};
|
||||
use schemars::JsonSchema;
|
||||
use serde::Deserialize;
|
||||
|
||||
actions!(
|
||||
actions!(assistant, [ToggleFocus, ShowConfiguration]);
|
||||
|
||||
action_with_deprecated_aliases!(
|
||||
assistant,
|
||||
[ToggleFocus, OpenPromptLibrary, ShowConfiguration]
|
||||
OpenPromptLibrary,
|
||||
["assistant::DeployPromptLibrary"]
|
||||
);
|
||||
|
||||
#[derive(Clone, Default, Deserialize, PartialEq, JsonSchema)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue