Remove secrets if we pass undefined to storeSecret

This commit is contained in:
Saoud Rizwan
2024-08-03 14:38:23 -04:00
parent c09a8462d7
commit 7989410696

View File

@@ -558,8 +558,12 @@ export class ClaudeDevProvider implements vscode.WebviewViewProvider {
// secrets // secrets
private async storeSecret(key: SecretKey, value: any) { private async storeSecret(key: SecretKey, value?: string) {
await this.context.secrets.store(key, value) if (value) {
await this.context.secrets.store(key, value)
} else {
await this.context.secrets.delete(key)
}
} }
private async getSecret(key: SecretKey) { private async getSecret(key: SecretKey) {