diff --git a/crates/editor2/src/editor.rs b/crates/editor2/src/editor.rs index 76085aeca8..0d19b53d29 100644 --- a/crates/editor2/src/editor.rs +++ b/crates/editor2/src/editor.rs @@ -1250,6 +1250,7 @@ impl CompletionsMenu { let documentation_label = if let Some(Documentation::SingleLine(text)) = documentation { Some(SharedString::from(text.clone())) + .filter(|text| !text.trim().is_empty()) } else { None };