Add hidden prompt_to_focus field to OpenPromptLibrary action (#29062)

Release Notes:

- N/A
This commit is contained in:
Michael Sloan 2025-04-18 14:39:40 -06:00 committed by GitHub
parent 327fee4d22
commit 73a767fc45
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 60 additions and 18 deletions

View file

@ -15,6 +15,7 @@ use std::{
};
use text::LineEnding;
use util::{ResultExt, get_system_shell};
use uuid::Uuid;
#[derive(Debug, Clone, Serialize)]
pub struct ProjectContext {
@ -51,6 +52,7 @@ impl ProjectContext {
#[derive(Debug, Clone, Serialize)]
pub struct DefaultUserRulesContext {
pub uuid: Uuid,
pub title: Option<String>,
pub contents: String,
}
@ -409,6 +411,7 @@ mod test {
}),
}];
let default_user_rules = vec![DefaultUserRulesContext {
uuid: Uuid::nil(),
title: Some("Rules title".into()),
contents: "Rules contents".into(),
}];