@codingame/monaco-vscode-user-data-sync-service-override 11.0.1 → 11.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-user-data-sync-service-override",
3
- "version": "11.0.1",
3
+ "version": "11.1.0",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -26,8 +26,8 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "vscode": "npm:@codingame/monaco-vscode-api@11.0.1",
30
- "@codingame/monaco-vscode-user-data-profile-service-override": "11.0.1",
31
- "@codingame/monaco-vscode-user-data-profile-user-data-sync-common": "11.0.1"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@11.1.0",
30
+ "@codingame/monaco-vscode-user-data-profile-service-override": "11.1.0",
31
+ "@codingame/monaco-vscode-user-data-profile-user-data-sync-common": "11.1.0"
32
32
  }
33
33
  }
@@ -154,12 +154,13 @@ let UserDataSyncWorkbenchService = class UserDataSyncWorkbenchService extends Di
154
154
  this.useWorkbenchSessionId = false;
155
155
  }
156
156
  }
157
- await this.update();
157
+ const initPromise = this.update('initialize');
158
158
  this._register(this.authenticationService.onDidChangeDeclaredProviders(() => {
159
159
  if (this.updateAuthenticationProviders()) {
160
- this.update('declared authentication providers changed');
160
+ initPromise.finally(() => this.update('declared authentication providers changed'));
161
161
  }
162
162
  }));
163
+ await initPromise;
163
164
  this._register(Event.filter(Event.any(this.authenticationService.onDidRegisterAuthenticationProvider, this.authenticationService.onDidUnregisterAuthenticationProvider), info => this.isSupportedAuthenticationProviderId(info.id))(() => this.update()));
164
165
  this._register(Event.filter(this.userDataSyncAccountService.onTokenFailed, isSuccessive => !isSuccessive)(() => this.update('token failure')));
165
166
  this._register(Event.filter(this.authenticationService.onDidChangeSessions, e => this.isSupportedAuthenticationProviderId(e.providerId))(({ event }) => this.onDidChangeSessions(event)));