Add red background to blocks that need styling

This commit is contained in:
Antonio Scandurra 2023-11-14 17:15:33 +01:00
parent 0b8ec5372b
commit 7f5014b34a
2 changed files with 10 additions and 2 deletions

View file

@ -9974,6 +9974,8 @@ pub fn diagnostic_block_renderer(diagnostic: Diagnostic, is_valid: bool) -> Rend
let message = message.clone();
v_stack()
.id(cx.block_id)
.size_full()
.bg(gpui::red())
.children(highlighted_lines.iter().map(|(line, highlights)| {
div()
.child(HighlightedLabel::new(line.clone(), highlights.clone()))