mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Remove secrets if we pass undefined to storeSecret
This commit is contained in:
parent
c09a8462d7
commit
7989410696
1 changed files with 6 additions and 2 deletions
|
|
@ -558,8 +558,12 @@ export class ClaudeDevProvider implements vscode.WebviewViewProvider {
|
|||
|
||||
// secrets
|
||||
|
||||
private async storeSecret(key: SecretKey, value: any) {
|
||||
await this.context.secrets.store(key, value)
|
||||
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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue