@@ -4,7 +4,7 @@ use crate::{
4 Call, Error, OffsetEncoding, Result,
4 Call, Error, OffsetEncoding, Result,
7−use helix_core::{find_workspace, ChangeSet, Rope};
7+use helix_core::{find_workspace, path, ChangeSet, Rope};
8use helix_loader::{self, VERSION_AND_GIT_HASH};
8use helix_loader::{self, VERSION_AND_GIT_HASH};
10 notification::DidChangeWorkspaceFolders, DidChangeWorkspaceFoldersParams, OneOf,
10 notification::DidChangeWorkspaceFolders, DidChangeWorkspaceFoldersParams, OneOf,
@@ -66,6 +66,7 @@ impl Client {
66 may_support_workspace: bool,
66 may_support_workspace: bool,
67 ) -> bool {
67 ) -> bool {
68 let (workspace, workspace_is_cwd) = find_workspace();
68 let (workspace, workspace_is_cwd) = find_workspace();
69+ let workspace = path::get_normalized_path(&workspace);
69 let root = find_lsp_workspace(
70 let root = find_lsp_workspace(
71 .and_then(|x| x.parent().and_then(|x| x.to_str()))
72 .and_then(|x| x.parent().and_then(|x| x.to_str()))
@@ -201,6 +202,7 @@ impl Client {
201 let (server_rx, server_tx, initialize_notify) =
202 let (server_rx, server_tx, initialize_notify) =
202 Transport::start(reader, writer, stderr, id);
203 Transport::start(reader, writer, stderr, id);
203 let (workspace, workspace_is_cwd) = find_workspace();
204 let (workspace, workspace_is_cwd) = find_workspace();
205+ let workspace = path::get_normalized_path(&workspace);
204 let root = find_lsp_workspace(
206 let root = find_lsp_workspace(
206 .and_then(|x| x.parent().and_then(|x| x.to_str()))
208 .and_then(|x| x.parent().and_then(|x| x.to_str()))