Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

agent: Display keybinding to delete Prompt Editor item (#28168)

Danilo Leal097aefeac423
diff --git a/crates/agent/src/thread_history.rs b/crates/agent/src/thread_history.rs
index 267e2b1485d..cf8aee7329e 100644
--- a/crates/agent/src/thread_history.rs
+++ b/crates/agent/src/thread_history.rs
@@ -558,7 +558,14 @@ impl RenderOnce for PastContext {
IconButton::new("delete", IconName::TrashAlt)
.shape(IconButtonShape::Square)
.icon_size(IconSize::XSmall)
- .tooltip(Tooltip::text("Delete Prompt Editor"))
+ .tooltip(move |window, cx| {
+ Tooltip::for_action(
+ "Delete Prompt Editor",
+ &RemoveSelectedThread,
+ window,
+ cx,
+ )
+ })
.on_click({
let assistant_panel = self.assistant_panel.clone();
let path = self.context.path.clone();