Skip to content

Commit

Permalink
fix: decode lsp url for workspace_diagnostics_picker (helix-editor#6016)
Browse files Browse the repository at this point in the history
  • Loading branch information
erasin authored and wes-adams committed Jul 3, 2023
1 parent a799791 commit 3c67a20
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 3c67a20

Please sign in to comment.