From d138dacd12ac1a1a25c487ff3de08e35724926af Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Wed, 3 Aug 2022 01:07:30 -0400 Subject: [PATCH] Avoids unhandled rejected promises --- src/git/gitProviderService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git/gitProviderService.ts b/src/git/gitProviderService.ts index 3a06f13..5f4e35c 100644 --- a/src/git/gitProviderService.ts +++ b/src/git/gitProviderService.ts @@ -750,7 +750,7 @@ export class GitProviderService implements Disposable { promises.push(setContext(ContextKeys.Disabled, disabled)); } - await Promise.all(promises); + await Promise.allSettled(promises); if (!this._initializing) { void this.container.storage.storeWorkspace(WorkspaceStorageKeys.AssumeRepositoriesOnStartup, enabled);