@@ -2,7 +2,7 @@ use arc_swap::{access::Map, ArcSwap};
2use futures_util::Stream;
2use futures_util::Stream;
3use helix_core::{
3use helix_core::{
4 config::{default_syntax_loader, user_syntax_loader},
4 config::{default_syntax_loader, user_syntax_loader},
5− diagnostic::NumberOrString,
5+ diagnostic::{DiagnosticTag, NumberOrString},
6 pos_at_coords, syntax, Selection,
6 pos_at_coords, syntax, Selection,
8use helix_lsp::{lsp, util::lsp_pos_to_pos, LspProgressMap};
8use helix_lsp::{lsp, util::lsp_pos_to_pos, LspProgressMap};
@@ -605,13 +605,28 @@ impl Application {
605 None => None,
605 None => None,
608+ let tags = if let Some(ref tags) = diagnostic.tags {
609+ let new_tags = tags.iter().filter_map(|tag| {
611+ lsp::DiagnosticTag::DEPRECATED => Some(DiagnosticTag::Deprecated),
612+ lsp::DiagnosticTag::UNNECESSARY => Some(DiagnosticTag::Unnecessary),
608 Some(Diagnostic {
622 Some(Diagnostic {
609 range: Range { start, end },
623 range: Range { start, end },
610 line: diagnostic.range.start.line as usize,
624 line: diagnostic.range.start.line as usize,
611 message: diagnostic.message.clone(),
625 message: diagnostic.message.clone(),
612 severity,
626 severity,
629+ source: diagnostic.source.clone()
617 .collect();
632 .collect();