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
private async storeSecret(key: SecretKey, value: any) {
private async storeSecret(key: SecretKey, value?: string) {
if (value) {
await this.context.secrets.store(key, value)
} else {
await this.context.secrets.delete(key)
}
}
private async getSecret(key: SecretKey) {