Skip to content

Commit

Permalink
Fix: decode lsp url for workspace_diagnostics_picker
Browse files Browse the repository at this point in the history
  • Loading branch information
erasin committed Feb 16, 2023
1 parent 9368ac7 commit 45d9121
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helix-term/src/commands/lsp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ impl ui::menu::Item for PickerDiagnostic {
let path = match format {
DiagnosticsFormat::HideSourcePath => String::new(),
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())
}
};
Expand Down

0 comments on commit 45d9121

Please sign in to comment.