Fix signing out behavior if using another provider

This commit is contained in:
Saoud Rizwan
2024-08-25 20:18:56 -04:00
parent 5f8573bb92
commit 2d5c3ad63b

View File

@@ -403,6 +403,7 @@ export class ClaudeDevProvider implements vscode.WebviewViewProvider {
await this.storeSecret("koduApiKey", undefined)
await this.updateGlobalState("koduEmail", undefined)
await this.updateGlobalState("koduCredits", undefined)
await this.updateGlobalState("apiProvider", "kodu")
this.claudeDev?.updateApi({ apiProvider: "kodu", koduApiKey: undefined })
await this.postStateToWebview()
}