mirror of https://github.com/helix-editor/helix
Merge 30394d406d
into 395a71bf53
commit
f69886ed16
|
@ -231,6 +231,13 @@ fn diag_picker(
|
|||
}
|
||||
}
|
||||
|
||||
flat_diag.sort_by(|a, b| {
|
||||
a.diag
|
||||
.severity
|
||||
.unwrap_or(lsp::DiagnosticSeverity::HINT)
|
||||
.cmp(&b.diag.severity.unwrap_or(lsp::DiagnosticSeverity::HINT))
|
||||
});
|
||||
|
||||
let styles = DiagnosticStyles {
|
||||
hint: cx.editor.theme.get("hint"),
|
||||
info: cx.editor.theme.get("info"),
|
||||
|
|
Loading…
Reference in New Issue