Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

copilot: Update root path on Windows (#11613)

Marshall Bowers981a143e9b03
diff --git a/crates/copilot/src/copilot.rs b/crates/copilot/src/copilot.rs
index 7352ab6fe1f..00b34e30944 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(),
)?;