Revert "inline completion: Add syntax highlighting for edit prediction (#23361)" (#23829)

This reverts commit 3dee32c43d.

Release Notes:

- N/A
This commit is contained in:
Bennet Bo Fenner 2025-01-29 11:32:18 +01:00 committed by GitHub
parent 46f45464be
commit 9bf5e55233
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 472 additions and 780 deletions

View file

@ -728,13 +728,13 @@ impl CompletionsMenu {
}
CompletionEntry::InlineCompletionHint(InlineCompletionMenuHint::Loaded { text }) => {
match text {
InlineCompletionText::Edit(highlighted_edits) => div()
InlineCompletionText::Edit { text, highlights } => div()
.mx_1()
.rounded_md()
.bg(cx.theme().colors().editor_background)
.child(
gpui::StyledText::new(highlighted_edits.text.clone())
.with_highlights(&style.text, highlighted_edits.highlights.clone()),
gpui::StyledText::new(text.clone())
.with_highlights(&style.text, highlights.clone()),
),
InlineCompletionText::Move(text) => div().child(text.clone()),
}