@codingame/monaco-vscode-user-data-sync-service-override 11.0.1 → 11.0.2
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.
|
|
3
|
+
"version": "11.0.2",
|
|
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.
|
|
30
|
-
"@codingame/monaco-vscode-user-data-profile-service-override": "11.0.
|
|
31
|
-
"@codingame/monaco-vscode-user-data-profile-user-data-sync-common": "11.0.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@11.0.2",
|
|
30
|
+
"@codingame/monaco-vscode-user-data-profile-service-override": "11.0.2",
|
|
31
|
+
"@codingame/monaco-vscode-user-data-profile-user-data-sync-common": "11.0.2"
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -9,7 +9,7 @@ import { USER_DATA_SYNC_LOG_ID } from 'vscode/vscode/vs/platform/userDataSync/co
|
|
|
9
9
|
let UserDataSyncLogService = class UserDataSyncLogService extends AbstractLogger {
|
|
10
10
|
constructor(loggerService, environmentService) {
|
|
11
11
|
super();
|
|
12
|
-
this.logger = this._register(loggerService.createLogger(joinPath(environmentService.logsHome, `${USER_DATA_SYNC_LOG_ID}.log`), { id: USER_DATA_SYNC_LOG_ID, name: ( localize(
|
|
12
|
+
this.logger = this._register(loggerService.createLogger(joinPath(environmentService.logsHome, `${USER_DATA_SYNC_LOG_ID}.log`), { id: USER_DATA_SYNC_LOG_ID, name: ( localize(3502, "Settings Sync")) }));
|
|
13
13
|
}
|
|
14
14
|
trace(message, ...args) {
|
|
15
15
|
this.logger.trace(message, ...args);
|
|
@@ -428,7 +428,7 @@ let UserDataSyncResourceProviderService = class UserDataSyncResourceProviderServ
|
|
|
428
428
|
this.logService.error(error);
|
|
429
429
|
}
|
|
430
430
|
throw ( new UserDataSyncError(localize(
|
|
431
|
-
|
|
431
|
+
3501,
|
|
432
432
|
"Cannot parse sync data as it is not compatible with the current version."
|
|
433
433
|
), "IncompatibleRemoteContent" , syncResource));
|
|
434
434
|
}
|
package/vscode/src/vs/workbench/services/userDataSync/browser/userDataSyncWorkbenchService.js
CHANGED
|
@@ -154,12 +154,13 @@ let UserDataSyncWorkbenchService = class UserDataSyncWorkbenchService extends Di
|
|
|
154
154
|
this.useWorkbenchSessionId = false;
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
|
|
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)));
|