diff --git a/crates/copilot/src/copilot.rs b/crates/copilot/src/copilot.rs index 7352ab6fe1fe14c46e66f631d29c35b421744ee4..00b34e30944253bffd3891b59ca8919b8df5cce9 100644 --- a/crates/copilot/src/copilot.rs +++ b/crates/copilot/src/copilot.rs @@ -429,11 +429,17 @@ impl Copilot { env: None, }; + let root_path = if cfg!(target_os = "windows") { + Path::new("C:/") + } else { + Path::new("/") + }; + let server = LanguageServer::new( Arc::new(Mutex::new(None)), new_server_id, binary, - Path::new("/"), + root_path, None, cx.clone(), )?;