Skip to content

Commit

Permalink
fix(lsp): ensure we only highlight diagnostic for active lsp
Browse files Browse the repository at this point in the history
  • Loading branch information
yo-main committed Oct 16, 2023
1 parent d9d7f67 commit fe4cb00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-term/src/ui/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ impl EditorView {
let mut warning_vec = Vec::new();
let mut error_vec = Vec::new();

for diagnostic in doc.diagnostics() {
for diagnostic in doc.shown_diagnostics() {
// Separate diagnostics into different Vecs by severity.
let (vec, scope) = match diagnostic.severity {
Some(Severity::Info) => (&mut info_vec, info),
Expand Down

0 comments on commit fe4cb00

Please sign in to comment.