Compare commits

...

2 Commits

Author SHA1 Message Date
RoloEdits f69886ed16
Merge 30394d406d into 395a71bf53 2025-07-23 21:37:47 +02:00
rolo 30394d406d feat(lsp): sort diagnostic picker by severity 2025-06-20 16:12:40 -07:00
1 changed files with 7 additions and 0 deletions

View File

@ -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"),