mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-21 04:41:16 -05:00
Remove secrets if we pass undefined to storeSecret
This commit is contained in:
@@ -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) {
|
||||||
|
if (value) {
|
||||||
await this.context.secrets.store(key, 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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user