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_ui: Fix missing TerminalSelection match arm in mention_set (#48445)

Smit Barmase23e8f13e9cbb
diff --git a/crates/agent_ui/src/mention_set.rs b/crates/agent_ui/src/mention_set.rs
index 81dde1d2484..6dcd3b3c955 100644
--- a/crates/agent_ui/src/mention_set.rs
+++ b/crates/agent_ui/src/mention_set.rs
@@ -147,7 +147,9 @@ impl MentionSet {
include_errors,
include_warnings,
} => self.confirm_mention_for_diagnostics(include_errors, include_warnings, cx),
- MentionUri::PastedImage | MentionUri::Selection { .. } => {
+ MentionUri::PastedImage
+ | MentionUri::Selection { .. }
+ | MentionUri::TerminalSelection { .. } => {
Task::ready(Err(anyhow!("Unsupported mention URI type for paste")))
}
}