Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Do not show completion documentation if disabled (#7372)
Thorsten Ball87d3f5951529
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rsindex 9039cc4cf03..e5e5ae9c286 100644--- a/crates/editor/src/editor.rs+++ b/crates/editor/src/editor.rs@@ -852,7 +852,7 @@ impl CompletionsMenu {let selected_item = self.selected_item;let style = style.clone();- let multiline_docs = {+ let multiline_docs = if show_completion_documentation {let mat = &self.matches[selected_item];let multiline_docs = match &self.completions.read()[mat.candidate_id].documentation {Some(Documentation::MultiLinePlainText(text)) => {@@ -883,6 +883,8 @@ impl CompletionsMenu {// because that would move the cursor..on_mouse_down(MouseButton::Left, |_, cx| cx.stop_propagation())})+ } else {+ None};let list = uniform_list(