mirror of https://github.com/helix-editor/helix
Display diagnostic text before code in picker
parent
c4e022971d
commit
2c37e25cb5
|
@ -132,11 +132,12 @@ impl ui::menu::Item for PickerDiagnostic {
|
||||||
.into_owned();
|
.into_owned();
|
||||||
|
|
||||||
Spans::from(vec![
|
Spans::from(vec![
|
||||||
Span::styled(truncated_path, style),
|
Span::raw(truncated_path),
|
||||||
Span::raw(" - "),
|
|
||||||
Span::styled(code, style.add_modifier(Modifier::BOLD)),
|
|
||||||
Span::raw(": "),
|
Span::raw(": "),
|
||||||
Span::styled(&self.diag.message, style),
|
Span::styled(&self.diag.message, style),
|
||||||
|
Span::raw(" ("),
|
||||||
|
Span::styled(code, style.add_modifier(Modifier::BOLD)),
|
||||||
|
Span::raw(")"),
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue