From b1cfc116d0204bd245006f535454f3737dbecc04 Mon Sep 17 00:00:00 2001 From: Thorsten Ball Date: Wed, 15 Jan 2025 15:15:50 +0100 Subject: [PATCH] edit prediction: Fix width of completion item (#23177) Release Notes: - N/A Co-authored-by: Agus Co-authored-by: Bennet Co-authored-by: Antonio --- crates/editor/src/code_context_menus.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/editor/src/code_context_menus.rs b/crates/editor/src/code_context_menus.rs index c84e021e0baef05a100d51e242a6bb1af76b2de5..f498d24615d81d3f1ec85781c2d4992dfbdc1bfe 100644 --- a/crates/editor/src/code_context_menus.rs +++ b/crates/editor/src/code_context_menus.rs @@ -462,7 +462,9 @@ impl CompletionsMenu { len } - CompletionEntry::InlineCompletionHint(hint) => hint.label().chars().count(), + CompletionEntry::InlineCompletionHint(hint) => { + "Zed AI / ".chars().count() + hint.label().chars().count() + } }) .map(|(ix, _)| ix); drop(completions);