From 04065d9a6af31195753cefa566d297f754e623c1 Mon Sep 17 00:00:00 2001 From: Ramkumar Date: Thu, 1 Aug 2024 16:36:13 +0530 Subject: [PATCH] Fix GitHub Copilot chat authentication on Windows (#15587) 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)) --- crates/paths/src/paths.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/paths/src/paths.rs b/crates/paths/src/paths.rs index a28429f6a7508a00cdee451041698dff5101576b..1cbdd500c5bd6beee5824c8220edafd5a7b55c1b 100644 --- a/crates/paths/src/paths.rs +++ b/crates/paths/src/paths.rs @@ -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") }