diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index d3b365329f..7469665202 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -1711,7 +1711,9 @@ impl Editor { } pub fn has_completions(&self) -> bool { - self.completion_state.is_some() + self.completion_state + .as_ref() + .map_or(false, |c| !c.matches.is_empty()) } pub fn render_completions(&self, cx: &AppContext) -> Option {