Skip to content

Commit

Permalink
Display diagnostic text before code in picker
Browse files Browse the repository at this point in the history
  • Loading branch information
sudormrfbin authored and archseer committed Jul 6, 2022
1 parent c4e0229 commit 2c37e25
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions helix-term/src/commands/lsp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,12 @@ impl ui::menu::Item for PickerDiagnostic {
.into_owned();

Spans::from(vec![
Span::styled(truncated_path, style),
Span::raw(" - "),
Span::styled(code, style.add_modifier(Modifier::BOLD)),
Span::raw(truncated_path),
Span::raw(": "),
Span::styled(&self.diag.message, style),
Span::raw(" ("),
Span::styled(code, style.add_modifier(Modifier::BOLD)),
Span::raw(")"),
])
}
}
Expand Down

0 comments on commit 2c37e25

Please sign in to comment.