debt - introduce Promises.withAsyncBody and adopt in a few places

This commit is contained in:
Benjamin Pasero
2021-10-11 13:27:43 +02:00
parent a9fe46517e
commit be2f951fde
10 changed files with 100 additions and 43 deletions

View File

@@ -546,7 +546,7 @@ export class UserDataSyncWorkbenchService extends Disposable implements IUserDat
return this.authenticationProviders[0];
}
return new Promise<UserDataSyncAccount | IAuthenticationProvider | undefined>(async (c, e) => {
return new Promise<UserDataSyncAccount | IAuthenticationProvider | undefined>(c => {
let result: UserDataSyncAccount | IAuthenticationProvider | undefined;
const disposables: DisposableStore = new DisposableStore();
const quickPick = this.quickInputService.createQuickPick<AccountQuickPickItem>();