Rework SuggestionMap to take highlight style when retrieving chunks

This commit is contained in:
Antonio Scandurra 2023-03-27 11:54:33 +02:00 committed by Mikayla Maki
parent 093e0a30e9
commit 6715e5247c
9 changed files with 95 additions and 73 deletions

View file

@ -2753,10 +2753,6 @@ impl Editor {
Some(Suggestion {
position,
text: completion.text.as_str().into(),
highlight_style: HighlightStyle {
color: Some(Color::from_u32(0x777777ff)),
..Default::default()
},
}),
cx,
)
@ -2779,10 +2775,6 @@ impl Editor {
Some(Suggestion {
position,
text: completion.text.as_str().into(),
highlight_style: HighlightStyle {
color: Some(Color::from_u32(0x777777ff)),
..Default::default()
},
}),
cx,
)
@ -2813,10 +2805,6 @@ impl Editor {
Some(Suggestion {
position: self.copilot_state.position,
text: completion.text.as_str().into(),
highlight_style: HighlightStyle {
color: Some(Color::from_u32(0x777777ff)),
..Default::default()
},
}),
cx,
)