Remove source from diagnostic picker display

It is usually the name of the LSP and doesn't add much
useful information.
This commit is contained in:
Gokul Soumya 2022-07-05 09:05:11 +05:30 committed by Blaž Hrastnik
parent e0cf19c612
commit c4e022971d

View File

@ -132,11 +132,6 @@ fn label(&self, styles: &Self::Data) -> Spans {
.into_owned();
Spans::from(vec![
Span::styled(
self.diag.source.clone().unwrap_or_default(),
style.add_modifier(Modifier::BOLD),
),
Span::raw(": "),
Span::styled(truncated_path, style),
Span::raw(" - "),
Span::styled(code, style.add_modifier(Modifier::BOLD)),