mirror of https://github.com/helix-editor/helix
Compare commits
4 Commits
c72d46db58
...
f7208d814b
Author | SHA1 | Date |
---|---|---|
|
f7208d814b | |
|
2e1db95445 | |
|
ae0611cf7c | |
|
7c7cca1b86 |
|
@ -252,6 +252,9 @@ fn diag_picker(
|
|||
.into()
|
||||
},
|
||||
),
|
||||
ui::PickerColumn::new("source", |item: &PickerDiagnostic, _| {
|
||||
item.diag.source.as_deref().unwrap_or("").into()
|
||||
}),
|
||||
ui::PickerColumn::new("code", |item: &PickerDiagnostic, _| {
|
||||
match item.diag.code.as_ref() {
|
||||
Some(NumberOrString::Number(n)) => n.to_string().into(),
|
||||
|
@ -263,12 +266,12 @@ fn diag_picker(
|
|||
item.diag.message.as_str().into()
|
||||
}),
|
||||
];
|
||||
let mut primary_column = 2; // message
|
||||
let mut primary_column = 3; // message
|
||||
|
||||
if format == DiagnosticsFormat::ShowSourcePath {
|
||||
columns.insert(
|
||||
// between message code and message
|
||||
2,
|
||||
3,
|
||||
ui::PickerColumn::new("path", |item: &PickerDiagnostic, _| {
|
||||
if let Some(path) = item.location.uri.as_path() {
|
||||
path::get_truncated_path(path)
|
||||
|
|
Loading…
Reference in New Issue