agent: Add item to open Prompt Library in the panel's menu (#28877)

Release Notes:

- agent: Added a menu item to open the Prompt Library from the panel's
dropdown menu on the top right.
This commit is contained in:
Danilo Leal 2025-04-16 14:31:34 -03:00 committed by GitHub
parent 456e54b87c
commit db94d6d767
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 4 deletions

View file

@ -1113,16 +1113,16 @@ impl AssistantPanel {
"New Text Thread",
NewTextThread.boxed_clone(),
)
.action("Settings", OpenConfiguration.boxed_clone())
.action("Prompt Library", Box::new(OpenPromptLibrary))
.action("Settings", Box::new(OpenConfiguration))
.separator()
.action(
"Install MCPs",
zed_actions::Extensions {
Box::new(zed_actions::Extensions {
category_filter: Some(
zed_actions::ExtensionCategoryFilter::ContextServers,
),
}
.boxed_clone(),
}),
)
},
))