mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-12 13:33:27 +00:00
Fix GitHub Copilot chat authentication on Windows (#15587)
Some checks are pending
CI / Check formatting and spelling (push) Waiting to run
CI / (macOS) Run Clippy and tests (push) Waiting to run
CI / (Linux) Run Clippy and tests (push) Waiting to run
CI / (Windows) Run Clippy and tests (push) Waiting to run
CI / Create a macOS bundle (push) Blocked by required conditions
CI / Create a Linux bundle (push) Blocked by required conditions
CI / Create arm64 Linux bundle (push) Blocked by required conditions
Deploy Docs / Deploy Docs (push) Waiting to run
Docs / Check formatting (push) Waiting to run
Some checks are pending
CI / Check formatting and spelling (push) Waiting to run
CI / (macOS) Run Clippy and tests (push) Waiting to run
CI / (Linux) Run Clippy and tests (push) Waiting to run
CI / (Windows) Run Clippy and tests (push) Waiting to run
CI / Create a macOS bundle (push) Blocked by required conditions
CI / Create a Linux bundle (push) Blocked by required conditions
CI / Create arm64 Linux bundle (push) Blocked by required conditions
Deploy Docs / Deploy Docs (push) Waiting to run
Docs / Check formatting (push) Waiting to run
This PR fixes Copilot chat authentication on Windows. GitHub Copilot chat in assistant panel uses auth token file generated by [copilot language server](https://github.com/zed-industries/copilot). The path to authentication token file is platform dependent. On Windows, it happens to be `~\AppData\Local\github-copilot\hosts.json`. Release Notes: - Fixed Copilot chat sign in issue on Windows ([#4673](https://github.com/zed-industries/zed/issues/4673))
This commit is contained in:
parent
1246010e44
commit
04065d9a6a
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ pub fn copilot_chat_config_path() -> &'static PathBuf {
|
|||
|
||||
COPILOT_CHAT_CONFIG_DIR.get_or_init(|| {
|
||||
if cfg!(target_os = "windows") {
|
||||
home_dir().join("AppData")
|
||||
home_dir().join("AppData").join("Local")
|
||||
} else {
|
||||
home_dir().join(".config")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue