on master help sign in
fix: decode lsp url for workspace_diagnostics_picker (#6016)
commitb7fb52d0e4dff13bab07ff081ec86808e265466f authorErasin <erasinoo@gmail.com> dateThu 16 Feb 2023, 22:33 (4 years ago) parent9368ac7
1 file changed+2−1
helix-term/src/commands/lsp.rs+2−1
helix-term/src/commands/lsp.rs+2−1
@@ -145,7 +145,8 @@ impl ui::menu::Item for PickerDiagnostic {
145145 let path = match format {
146146 DiagnosticsFormat::HideSourcePath => String::new(),
147147 DiagnosticsFormat::ShowSourcePath => {
148− let path = path::get_truncated_path(self.url.path());
148+ let file_path = self.url.to_file_path().unwrap();
149+ let path = path::get_truncated_path(file_path);
149150 format!("{}: ", path.to_string_lossy())
150151 }
151152 };