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.

Don't show empty documentation labels in completions menu (#3632)

Marshall Bowers9a7de98242b8
diff --git a/crates/editor2/src/editor.rs b/crates/editor2/src/editor.rs
index 76085aeca85..0d19b53d29f 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
};