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 redundant check after #51953 (#51956)

Bennet Bo Fennerdbfde8f648e1
diff --git a/crates/agent_ui/src/completion_provider.rs b/crates/agent_ui/src/completion_provider.rs
index 094c55b71aa..96660ee0e58 100644
--- a/crates/agent_ui/src/completion_provider.rs
+++ b/crates/agent_ui/src/completion_provider.rs
@@ -1719,16 +1719,6 @@ impl MentionCompletion {
let last_mention_start = last_mention_start?;
- // Must be a word boundary before '@'
- if last_mention_start > 0
- && line[..last_mention_start]
- .chars()
- .last()
- .is_some_and(|c| !c.is_whitespace())
- {
- return None;
- }
-
let rest_of_line = &line[last_mention_start + 1..];
let mut mode = None;