fix(workbench-credentials): add missing await (#115338)

This commit is contained in:
Raz Luvaton 2021-06-08 01:55:04 +03:00 committed by GitHub
parent a2a5a5ee07
commit b0afadadf4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,9 +38,11 @@ export class BrowserCredentialsService extends Disposable implements ICredential
this._onDidChangePassword.fire({ service, account });
}
deletePassword(service: string, account: string): Promise<boolean> {
const didDelete = this.credentialsProvider.deletePassword(service, account);
this._onDidChangePassword.fire({ service, account });
async deletePassword(service: string, account: string): Promise<boolean> {
const didDelete = await this.credentialsProvider.deletePassword(service, account);
if (didDelete) {
this._onDidChangePassword.fire({ service, account });
}
return didDelete;
}