Propagate inlay background highlights to data storage

This commit is contained in:
Kirill Bulatov
2023-08-25 14:26:17 +03:00
parent 4b78678923
commit bcaff0a18a
6 changed files with 185 additions and 33 deletions
+1 -1
View File
@@ -1596,7 +1596,7 @@ mod tests {
.map(|range| {
buffer_snapshot.anchor_before(range.start)..buffer_snapshot.anchor_after(range.end)
})
// TODO add inlay highlight tests
// TODO kb add inlay highlight tests
.map(DocumentRange::Text)
.collect::<Vec<_>>();
-1
View File
@@ -223,7 +223,6 @@ impl TabSnapshot {
&'a self,
range: Range<TabPoint>,
language_aware: bool,
// TODO kb extract into one struct?
text_highlights: Option<&'a TextHighlights>,
inlay_highlight_style: Option<HighlightStyle>,
suggestion_highlight_style: Option<HighlightStyle>,