Skip to content

Commit c532da7

Browse files
authored
* Fix microsoft#162044 * Fix microsoft#162044 - wait unti all are settled
1 parent eb99a78 commit c532da7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/vs/platform/userDataProfile/common/userDataProfile.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,12 @@ export class UserDataProfilesService extends Disposable implements IUserDataProf
354354
joiners.push(promise);
355355
}
356356
});
357-
await Promises.settled(joiners);
357+
358+
try {
359+
await Promise.allSettled(joiners);
360+
} catch (error) {
361+
this.logService.error(error);
362+
}
358363

359364
if (profile.id === this.profilesObject.emptyWindow?.id) {
360365
this.profilesObject.emptyWindow = undefined;

0 commit comments

Comments
 (0)