File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/vs/platform/secrets/common Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,14 @@ export abstract class BaseSecretStorageService implements ISecretStorageService
128
128
}
129
129
130
130
this . _onDidChangeValueDisposable ?. dispose ( ) ;
131
- this . _onDidChangeValueDisposable = storageService . onDidChangeValue ( e => this . onDidChangeValue ( e . key ) ) ;
131
+ this . _onDidChangeValueDisposable = storageService . onDidChangeValue ( e => {
132
+ // We only care about changes to the application scope since SecretStorage
133
+ // only stores secrets in the application scope but this seems to fire
134
+ // 2 events. Once for APP scope and once for PROFILE scope. ref #188460
135
+ if ( e . scope === StorageScope . APPLICATION ) {
136
+ this . onDidChangeValue ( e . key ) ;
137
+ }
138
+ } ) ;
132
139
return storageService ;
133
140
}
134
141
You can’t perform that action at this time.
0 commit comments