mirror of https://github.com/helix-editor/helix
fix: decode lsp url for workspace_diagnostics_picker (#6016)
parent
9368ac76b3
commit
b7fb52d0e4
|
@ -145,7 +145,8 @@ impl ui::menu::Item for PickerDiagnostic {
|
||||||
let path = match format {
|
let path = match format {
|
||||||
DiagnosticsFormat::HideSourcePath => String::new(),
|
DiagnosticsFormat::HideSourcePath => String::new(),
|
||||||
DiagnosticsFormat::ShowSourcePath => {
|
DiagnosticsFormat::ShowSourcePath => {
|
||||||
let path = path::get_truncated_path(self.url.path());
|
let file_path = self.url.to_file_path().unwrap();
|
||||||
|
let path = path::get_truncated_path(file_path);
|
||||||
format!("{}: ", path.to_string_lossy())
|
format!("{}: ", path.to_string_lossy())
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue