Add hidden prompt_to_focus
field to OpenPromptLibrary
action (#29062)
Release Notes: - N/A
This commit is contained in:
parent
327fee4d22
commit
73a767fc45
10 changed files with 60 additions and 18 deletions
|
@ -13,3 +13,4 @@ gpui.workspace = true
|
|||
schemars.workspace = true
|
||||
serde.workspace = true
|
||||
workspace-hack.workspace = true
|
||||
uuid.workspace = true
|
||||
|
|
|
@ -190,13 +190,21 @@ pub mod agent {
|
|||
}
|
||||
|
||||
pub mod assistant {
|
||||
use gpui::{action_with_deprecated_aliases, actions, impl_actions};
|
||||
use gpui::{actions, impl_action_with_deprecated_aliases, impl_actions};
|
||||
use schemars::JsonSchema;
|
||||
use serde::Deserialize;
|
||||
use uuid::Uuid;
|
||||
|
||||
actions!(assistant, [ToggleFocus, ShowConfiguration]);
|
||||
|
||||
action_with_deprecated_aliases!(
|
||||
#[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct OpenPromptLibrary {
|
||||
#[serde(skip)]
|
||||
pub prompt_to_focus: Option<Uuid>,
|
||||
}
|
||||
|
||||
impl_action_with_deprecated_aliases!(
|
||||
assistant,
|
||||
OpenPromptLibrary,
|
||||
["assistant::DeployPromptLibrary"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue