From b2ed08a4bd6f59c98230a1568e9fc902150cab90 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Sat, 17 Jun 2023 17:01:36 -0500 Subject: [PATCH] LSP: Normalize diagnostic file paths --- helix-term/src/application.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index 91bc0881fc8b..4c13ed215c40 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -740,7 +740,7 @@ impl Application { } Notification::PublishDiagnostics(params) => { let path = match params.uri.to_file_path() { - Ok(path) => path, + Ok(path) => helix_core::path::get_normalized_path(&path), Err(_) => { log::error!("Unsupported file URI: {}", params.uri); return;