mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-21 03:18:47 +03:00
copilot: Update root path on Windows (#11613)
This PR updates the root path used by Copilot to be a validate path when running on Windows. Release Notes: - N/A Co-authored-by: Jason Lee <huacnlee@gmail.com>
This commit is contained in:
parent
5e06ce4df3
commit
981a143e9b
@ -429,11 +429,17 @@ impl Copilot {
|
|||||||
env: None,
|
env: None,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let root_path = if cfg!(target_os = "windows") {
|
||||||
|
Path::new("C:/")
|
||||||
|
} else {
|
||||||
|
Path::new("/")
|
||||||
|
};
|
||||||
|
|
||||||
let server = LanguageServer::new(
|
let server = LanguageServer::new(
|
||||||
Arc::new(Mutex::new(None)),
|
Arc::new(Mutex::new(None)),
|
||||||
new_server_id,
|
new_server_id,
|
||||||
binary,
|
binary,
|
||||||
Path::new("/"),
|
root_path,
|
||||||
None,
|
None,
|
||||||
cx.clone(),
|
cx.clone(),
|
||||||
)?;
|
)?;
|
||||||
|
Loading…
Reference in New Issue
Block a user