mirror of https://github.com/helix-editor/helix
LSP: Normalize diagnostic file paths
parent
8141a4a1ab
commit
928bf80d9a
|
@ -724,7 +724,7 @@ impl Application {
|
||||||
}
|
}
|
||||||
Notification::PublishDiagnostics(mut params) => {
|
Notification::PublishDiagnostics(mut params) => {
|
||||||
let path = match params.uri.to_file_path() {
|
let path = match params.uri.to_file_path() {
|
||||||
Ok(path) => path,
|
Ok(path) => helix_stdx::path::normalize(&path),
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
log::error!("Unsupported file URI: {}", params.uri);
|
log::error!("Unsupported file URI: {}", params.uri);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue