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 (#8551)
  • Loading branch information
yo-main authored Oct 17, 2023
1 parent d9d7f67 commit cd59164
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 cd59164

Please sign in to comment.