copilot_chat: Cleanup after removing OAuth via LSP (#62198)

Some cleanup after moving from away from using the LSP for OAuth

Release Notes:

- N/A
This commit is contained in:
Bennet Bo Fenner authored and GitHub committed 2026-08-05 11:17:54 +00:00
1 parent ffd8a6d0d4
commit 925c834e27
7 files changed
+1838 -1828

No files matched your search

+1 -8
View File
@@ -833,10 +833,7 @@ impl Copilot {
anyhow::Ok(())
})
}
CopilotServer::Disabled => cx.background_spawn(async {
clear_copilot_config_dir().await;
anyhow::Ok(())
}),
CopilotServer::Disabled => cx.background_spawn(async { anyhow::Ok(()) }),
_ => Task::ready(Err(anyhow!("copilot hasn't started yet"))),
}
}
@@ -1357,10 +1354,6 @@ async fn clear_copilot_dir() {
remove_matching(paths::copilot_dir(), |_| true).await
}
async fn clear_copilot_config_dir() {
remove_matching(copilot_chat::copilot_chat_config_dir(), |_| true).await
}
async fn get_copilot_lsp(fs: Arc<dyn Fs>, node_runtime: NodeRuntime) -> anyhow::Result<PathBuf> {
const PACKAGE_NAME: &str = "@github/copilot-language-server";
const SERVER_PATH: &str =