Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix: prevent completion labels and docs from being truncated (#61324)
Tatsuya_yda3ac036eb6b7
diff --git a/crates/editor/src/code_context_menus.rs b/crates/editor/src/code_context_menus.rsindex b192fa3d683..245a616cb8d 100644--- a/crates/editor/src/code_context_menus.rs+++ b/crates/editor/src/code_context_menus.rs@@ -1119,7 +1119,7 @@ impl CompletionsMenu {.child(h_flex().min_w_0()- .w_full()+ .flex_grow_1().when(left_aligned_suffix, |this| this.justify_start()).when(right_aligned_suffix, |this| {this.justify_between()@@ -1134,7 +1134,15 @@ impl CompletionsMenu {this.child(div().truncate().child(suffix))}),)- .end_slot::<Label>(documentation_label),+ .when_some(documentation_label, |this, doc| {+ this.child(+ div()+ .flex_shrink(1.0)+ .ml_auto()+ .min_w_0()+ .child(doc.truncate()),+ )+ }),).into_any_element()})