diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 5c2f00e2b301836ec413f01af817535af76d80d4..9f2988ada97f8d32d9f0541e86618a15343065f6 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -1886,6 +1886,9 @@ impl Editor { let task = cx.spawn_weak(|this, mut cx| { async move { let completions = completions.await?; + if completions.is_empty() { + return Ok(()); + } let mut menu = CompletionsMenu { id,