Browse Source

Avoids unhandled rejected promises

main
Eric Amodio 2 years ago
parent
commit
d138dacd12
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/git/gitProviderService.ts

+ 1
- 1
src/git/gitProviderService.ts View File

@ -750,7 +750,7 @@ export class GitProviderService implements Disposable {
promises.push(setContext(ContextKeys.Disabled, disabled)); promises.push(setContext(ContextKeys.Disabled, disabled));
} }
await Promise.all(promises);
await Promise.allSettled(promises);
if (!this._initializing) { if (!this._initializing) {
void this.container.storage.storeWorkspace(WorkspaceStorageKeys.AssumeRepositoriesOnStartup, enabled); void this.container.storage.storeWorkspace(WorkspaceStorageKeys.AssumeRepositoriesOnStartup, enabled);

Loading…
Cancel
Save