mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 13:29:44 +00:00
fix(workbench-credentials): add missing await (#115338)
This commit is contained in:
parent
a2a5a5ee07
commit
b0afadadf4
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue