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.

acp: Add tooltips for auth methods with descriptions when available (#40098)

Ben Brandtfdf801d90f1a
diff --git a/crates/agent_ui/src/acp/thread_view.rs b/crates/agent_ui/src/acp/thread_view.rs
index 8b8f127764a..67486eb95aa 100644
--- a/crates/agent_ui/src/acp/thread_view.rs
+++ b/crates/agent_ui/src/acp/thread_view.rs
@@ -3283,6 +3283,12 @@ impl AcpThreadView {
this.style(ButtonStyle::Outlined)
}
})
+ .when_some(
+ method.description.clone(),
+ |this, description| {
+ this.tooltip(Tooltip::text(description))
+ },
+ )
.on_click({
cx.listener(move |this, _, window, cx| {
telemetry::event!(