@@ -248,8 +248,14 @@ impl<T: Item + 'static> Component for FilePicker<T> {
248248
249249 let offset = Position::new(first_line, 0);
250250
251− let highlights =
251+ let mut highlights =
252252 EditorView::doc_syntax_highlights(doc, offset, area.height, &cx.editor.theme);
253+ for spans in EditorView::doc_diagnostics_highlights(doc, &cx.editor.theme) {
254+ if spans.is_empty() {
255+ continue;
256+ }
257+ highlights = Box::new(helix_core::syntax::merge(highlights, spans));
258+ }
253259 EditorView::render_text_highlights(
254260 doc,
255261 offset,