on master help sign in
Display diagnostic text before code in picker
commit2c37e25cb552f1b64ad6815bb03c40d6d5aacb24 authorGokul Soumya <gokulps15@gmail.com> dateTue 5 Jul 2022, 09:16 (4 years ago) parentc4e0229
1 file changed+4−3
helix-term/src/commands/lsp.rs+4−3
helix-term/src/commands/lsp.rs+4−3
@@ -132,11 +132,12 @@ impl ui::menu::Item for PickerDiagnostic {
132132 .into_owned();
133133
134134 Spans::from(vec![
135− Span::styled(truncated_path, style),
136− Span::raw(" - "),
137− Span::styled(code, style.add_modifier(Modifier::BOLD)),
135+ Span::raw(truncated_path),
138136 Span::raw(": "),
139137 Span::styled(&self.diag.message, style),
138+ Span::raw(" ("),
139+ Span::styled(code, style.add_modifier(Modifier::BOLD)),
140+ Span::raw(")"),
140141 ])
141142 }
142143}