From 596826f74113d0db2d2f6794ca1c7d2275da5b96 Mon Sep 17 00:00:00 2001 From: Mayank Verma Date: Fri, 19 Dec 2025 14:13:35 +0530 Subject: [PATCH] editor: Strip trailing newlines from completion documentation (#45342) Closes #45337 Release Notes: - Fixed broken completion menu layout caused by trailing newlines in ty documentation
Before After
before after
--- crates/editor/src/code_context_menus.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/editor/src/code_context_menus.rs b/crates/editor/src/code_context_menus.rs index 2336a38fa7767fa6184608066f69d3b0520234ff..96739defc506414f573e2454dc31f9c32d8e4adf 100644 --- a/crates/editor/src/code_context_menus.rs +++ b/crates/editor/src/code_context_menus.rs @@ -893,7 +893,7 @@ impl CompletionsMenu { None } else { Some( - Label::new(text.clone()) + Label::new(text.trim().to_string()) .ml_4() .size(LabelSize::Small) .color(Color::Muted),