Skip to content

Commit

Permalink
fix(lsp): ensure we only highlight diagnostics for lsp with the featu…
Browse files Browse the repository at this point in the history
…re enabled (helix-editor#8551)
  • Loading branch information
yo-main authored and mtoohey31 committed Jun 2, 2024
1 parent f1fe690 commit 1661c59
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 1661c59

Please sign in to comment.