diff options
author | Erasin | 2023-02-16 14:33:54 +0000 |
---|---|---|
committer | GitHub | 2023-02-16 14:33:54 +0000 |
commit | b7fb52d0e4dff13bab07ff081ec86808e265466f (patch) | |
tree | 3c1d81dca857793b938fff21b2f190fa95e4ac1f /helix-term | |
parent | 9368ac76b36f430cd127658d9e66b169053c9626 (diff) |
fix: decode lsp url for workspace_diagnostics_picker (#6016)
Diffstat (limited to 'helix-term')
-rw-r--r-- | helix-term/src/commands/lsp.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/helix-term/src/commands/lsp.rs b/helix-term/src/commands/lsp.rs index d1fb32a8..3b94c9bd 100644 --- a/helix-term/src/commands/lsp.rs +++ b/helix-term/src/commands/lsp.rs @@ -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()) } }; |