@@ -4,7 +4,7 @@ use crate::{
44 Call, Error, OffsetEncoding, Result,
55};
66
7−use helix_core::{find_workspace, ChangeSet, Rope};
7+use helix_core::{find_workspace, path, ChangeSet, Rope};
88use helix_loader::{self, VERSION_AND_GIT_HASH};
99use lsp::{
1010 notification::DidChangeWorkspaceFolders, DidChangeWorkspaceFoldersParams, OneOf,
@@ -66,6 +66,7 @@ impl Client {
6666 may_support_workspace: bool,
6767 ) -> bool {
6868 let (workspace, workspace_is_cwd) = find_workspace();
69+ let workspace = path::get_normalized_path(&workspace);
6970 let root = find_lsp_workspace(
7071 doc_path
7172 .and_then(|x| x.parent().and_then(|x| x.to_str()))
@@ -201,6 +202,7 @@ impl Client {
201202 let (server_rx, server_tx, initialize_notify) =
202203 Transport::start(reader, writer, stderr, id);
203204 let (workspace, workspace_is_cwd) = find_workspace();
205+ let workspace = path::get_normalized_path(&workspace);
204206 let root = find_lsp_workspace(
205207 doc_path
206208 .and_then(|x| x.parent().and_then(|x| x.to_str()))