zeta: Always show ghost text, even if showing completion in menu (#22194)

See:
![screenshot-2024-12-18-17 26
22@2x](https://github.com/user-attachments/assets/82bdea76-6c96-4c4d-a08a-1601381a378f)


https://github.com/user-attachments/assets/165d9f0d-8339-4fd9-a796-a67121689af6



Release Notes:

- N/A

Co-authored-by: Danilo <danilo@zed.dev>
This commit is contained in:
Thorsten Ball
2024-12-19 09:00:58 +00:00
committed by GitHub
co-authored by Danilo
parent b93cee8d27
commit 2a17274ec2
2 changed files with 26 additions and 40 deletions
+2 -2
View File
@@ -575,7 +575,7 @@ impl CompletionsMenu {
}
CompletionEntry::InlineCompletionHint(hint) => match &hint.text {
InlineCompletionText::Edit { text, highlights } => div()
.my_1()
.mx_1()
.rounded(px(6.))
.bg(cx.theme().colors().editor_background)
.border_1()
@@ -594,7 +594,7 @@ impl CompletionsMenu {
multiline_docs
.id("multiline_docs")
.max_h(max_height)
.px_0p5()
.px_2()
.min_w(px(260.))
.max_w(MAX_COMPLETIONS_ASIDE_WIDTH)
.overflow_y_scroll()