mirror of https://github.com/helix-editor/helix
feat: Make the diagnostic picker display the resposible LSP
Signed-off-by: RmStorm <roaldstorm@gmail.com>pull/13758/head
parent
62f270e5d2
commit
7c7cca1b86
|
@ -252,6 +252,9 @@ fn diag_picker(
|
||||||
.into()
|
.into()
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
ui::PickerColumn::new("source", |item: &PickerDiagnostic, _| {
|
||||||
|
item.diag.source.clone().unwrap_or("".to_string()).into()
|
||||||
|
}),
|
||||||
ui::PickerColumn::new("code", |item: &PickerDiagnostic, _| {
|
ui::PickerColumn::new("code", |item: &PickerDiagnostic, _| {
|
||||||
match item.diag.code.as_ref() {
|
match item.diag.code.as_ref() {
|
||||||
Some(NumberOrString::Number(n)) => n.to_string().into(),
|
Some(NumberOrString::Number(n)) => n.to_string().into(),
|
||||||
|
|
Loading…
Reference in New Issue