Add 'key' to onDidChange of secrets API, #112249

This commit is contained in:
Rachel Macfarlane
2021-01-15 17:08:09 -08:00
parent c5f0bac2a8
commit 2e89c2d4ba
10 changed files with 43 additions and 23 deletions

View File

@@ -23,8 +23,9 @@ export class MainThreadSecretState extends Disposable implements MainThreadSecre
super();
this._proxy = extHostContext.getProxy(ExtHostContext.ExtHostSecretState);
this._register(this.credentialsService.onDidChangePassword(_ => {
this._proxy.$onDidChangePassword();
this._register(this.credentialsService.onDidChangePassword(e => {
const extensionId = e.service.substring(this.productService.urlProtocol.length);
this._proxy.$onDidChangePassword({ extensionId, key: e.account });
}));
}