@codingame/monaco-vscode-user-data-sync-service-override 8.0.2 → 8.0.3

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": "8.0.2",
3
+ "version": "8.0.3",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -26,7 +26,7 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "vscode": "npm:@codingame/monaco-vscode-api@8.0.2",
30
- "@codingame/monaco-vscode-user-data-profile-service-override": "8.0.2"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@8.0.3",
30
+ "@codingame/monaco-vscode-user-data-profile-service-override": "8.0.3"
31
31
  }
32
32
  }
@@ -31,12 +31,12 @@ let UserDataSyncReportIssueContribution = class UserDataSyncReportIssueContribut
31
31
  switch (error.code) {
32
32
  case UserDataSyncErrorCode.LocalTooManyRequests: {
33
33
  const message = isWeb ? ( localize(
34
- 3495,
34
+ 3470,
35
35
  "Settings sync is suspended temporarily because the current device is making too many requests. Please reload {0} to resume.",
36
36
  this.productService.nameLong
37
37
  ))
38
38
  : ( localize(
39
- 3496,
39
+ 3471,
40
40
  "Settings sync is suspended temporarily because the current device is making too many requests. Please restart {0} to resume.",
41
41
  this.productService.nameLong
42
42
  ));
@@ -45,26 +45,26 @@ let UserDataSyncReportIssueContribution = class UserDataSyncReportIssueContribut
45
45
  message,
46
46
  actions: {
47
47
  primary: [
48
- ( (new Action('Show Sync Logs', ( localize(3497, "Show Log")), undefined, true, () => this.commandService.executeCommand(SHOW_SYNC_LOG_COMMAND_ID)))),
49
- ( (new Action('Restart', isWeb ? ( localize(3498, "Reload")) : ( localize(3499, "Restart")), undefined, true, () => this.hostService.restart())))
48
+ ( (new Action('Show Sync Logs', ( localize(3472, "Show Log")), undefined, true, () => this.commandService.executeCommand(SHOW_SYNC_LOG_COMMAND_ID)))),
49
+ ( (new Action('Restart', isWeb ? ( localize(3473, "Reload")) : ( localize(3474, "Restart")), undefined, true, () => this.hostService.restart())))
50
50
  ]
51
51
  }
52
52
  });
53
53
  return;
54
54
  }
55
55
  case UserDataSyncErrorCode.TooManyRequests: {
56
- const operationId = error.operationId ? ( localize(3500, "Operation Id: {0}", error.operationId)) : undefined;
56
+ const operationId = error.operationId ? ( localize(3475, "Operation Id: {0}", error.operationId)) : undefined;
57
57
  const message = ( localize(
58
- 3501,
58
+ 3476,
59
59
  "Settings sync is disabled because the current device is making too many requests. Please wait for 10 minutes and turn on sync."
60
60
  ));
61
61
  this.notificationService.notify({
62
62
  severity: Severity$1.Error,
63
63
  message: operationId ? `${message} ${operationId}` : message,
64
- source: error.operationId ? ( localize(3502, "Settings Sync. Operation Id: {0}", error.operationId)) : undefined,
64
+ source: error.operationId ? ( localize(3477, "Settings Sync. Operation Id: {0}", error.operationId)) : undefined,
65
65
  actions: {
66
66
  primary: [
67
- ( (new Action('Show Sync Logs', ( localize(3497, "Show Log")), undefined, true, () => this.commandService.executeCommand(SHOW_SYNC_LOG_COMMAND_ID)))),
67
+ ( (new Action('Show Sync Logs', ( localize(3472, "Show Log")), undefined, true, () => this.commandService.executeCommand(SHOW_SYNC_LOG_COMMAND_ID)))),
68
68
  ]
69
69
  }
70
70
  });
@@ -49,24 +49,24 @@ import { IUserDataProfileService } from 'vscode/vscode/vs/workbench/services/use
49
49
  import { isWeb } from 'vscode/vscode/vs/base/common/platform';
50
50
  import Severity$1 from 'vscode/vscode/vs/base/common/severity';
51
51
 
52
- const turnOffSyncCommand = { id: 'workbench.userDataSync.actions.turnOff', title: ( localize2(8456, 'Turn Off')) };
53
- const configureSyncCommand = { id: CONFIGURE_SYNC_COMMAND_ID, title: ( localize2(8457, 'Configure...')) };
52
+ const turnOffSyncCommand = { id: 'workbench.userDataSync.actions.turnOff', title: ( localize2(8445, 'Turn Off')) };
53
+ const configureSyncCommand = { id: CONFIGURE_SYNC_COMMAND_ID, title: ( localize2(8446, 'Configure...')) };
54
54
  const showConflictsCommandId = 'workbench.userDataSync.actions.showConflicts';
55
55
  const syncNowCommand = {
56
56
  id: 'workbench.userDataSync.actions.syncNow',
57
- title: ( localize2(8458, 'Sync Now')),
57
+ title: ( localize2(8447, 'Sync Now')),
58
58
  description(userDataSyncService) {
59
59
  if (userDataSyncService.status === SyncStatus.Syncing) {
60
- return ( localize(8459, "syncing"));
60
+ return ( localize(8448, "syncing"));
61
61
  }
62
62
  if (userDataSyncService.lastSyncTime) {
63
- return ( localize(8460, "synced {0}", fromNow(userDataSyncService.lastSyncTime, true)));
63
+ return ( localize(8449, "synced {0}", fromNow(userDataSyncService.lastSyncTime, true)));
64
64
  }
65
65
  return undefined;
66
66
  }
67
67
  };
68
- const showSyncSettingsCommand = { id: 'workbench.userDataSync.actions.settings', title: ( localize2(8461, 'Show Settings')), };
69
- const showSyncedDataCommand = { id: 'workbench.userDataSync.actions.showSyncedData', title: ( localize2(8462, 'Show Synced Data')), };
68
+ const showSyncSettingsCommand = { id: 'workbench.userDataSync.actions.settings', title: ( localize2(8450, 'Show Settings')), };
69
+ const showSyncedDataCommand = { id: 'workbench.userDataSync.actions.showSyncedData', title: ( localize2(8451, 'Show Synced Data')), };
70
70
  const CONTEXT_TURNING_ON_STATE = ( (new RawContextKey('userDataSyncTurningOn', false)));
71
71
  let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution extends Disposable {
72
72
  constructor(userDataSyncEnablementService, userDataSyncService, userDataSyncWorkbenchService, contextKeyService, activityService, notificationService, editorService, userDataProfilesService, userDataProfileService, dialogService, quickInputService, instantiationService, outputService, userDataAutoSyncService, textModelResolverService, preferencesService, telemetryService, productService, openerService, authenticationService, userDataSyncStoreManagementService, hostService, commandService, workbenchIssueService) {
@@ -145,26 +145,26 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
145
145
  if (!( (this.conflictsDisposables.has(key)))) {
146
146
  const conflictsArea = getSyncAreaLabel(conflict.syncResource);
147
147
  const handle = this.notificationService.prompt(Severity$1.Warning, ( localize(
148
- 8463,
148
+ 8452,
149
149
  "Unable to sync due to conflicts in {0}. Please resolve them to continue.",
150
150
  conflictsArea.toLowerCase()
151
151
  )), [
152
152
  {
153
- label: ( localize(8464, "Replace Remote")),
153
+ label: ( localize(8453, "Replace Remote")),
154
154
  run: () => {
155
155
  this.telemetryService.publicLog2('sync/handleConflicts', { source: conflict.syncResource, action: 'acceptLocal' });
156
156
  this.acceptLocal(conflict, conflict.conflicts[0]);
157
157
  }
158
158
  },
159
159
  {
160
- label: ( localize(8465, "Replace Local")),
160
+ label: ( localize(8454, "Replace Local")),
161
161
  run: () => {
162
162
  this.telemetryService.publicLog2('sync/handleConflicts', { source: conflict.syncResource, action: 'acceptRemote' });
163
163
  this.acceptRemote(conflict, conflict.conflicts[0]);
164
164
  }
165
165
  },
166
166
  {
167
- label: ( localize(8466, "Show Conflicts")),
167
+ label: ( localize(8455, "Show Conflicts")),
168
168
  run: () => {
169
169
  this.telemetryService.publicLog2('sync/showConflicts', { source: conflict.syncResource });
170
170
  this.userDataSyncWorkbenchService.showConflicts(conflict.conflicts[0]);
@@ -191,7 +191,7 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
191
191
  }
192
192
  catch (e) {
193
193
  this.notificationService.error(( localize(
194
- 8467,
194
+ 8456,
195
195
  "Error while accepting changes. Please check [logs]({0}) for more details.",
196
196
  `command:${SHOW_SYNC_LOG_COMMAND_ID}`
197
197
  )));
@@ -203,7 +203,7 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
203
203
  }
204
204
  catch (e) {
205
205
  this.notificationService.error(( localize(
206
- 8467,
206
+ 8456,
207
207
  "Error while accepting changes. Please check [logs]({0}) for more details.",
208
208
  `command:${SHOW_SYNC_LOG_COMMAND_ID}`
209
209
  )));
@@ -215,11 +215,11 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
215
215
  this.notificationService.notify({
216
216
  severity: Severity$1.Info,
217
217
  message: ( localize(
218
- 8468,
218
+ 8457,
219
219
  "Settings sync was turned off because current session is expired, please sign in again to turn on sync."
220
220
  )),
221
221
  actions: {
222
- primary: [( (new Action('turn on sync', ( localize(8469, "Turn on Settings Sync...")), undefined, true, () => this.turnOn())))]
222
+ primary: [( (new Action('turn on sync', ( localize(8458, "Turn on Settings Sync...")), undefined, true, () => this.turnOn())))]
223
223
  }
224
224
  });
225
225
  break;
@@ -227,11 +227,11 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
227
227
  this.notificationService.notify({
228
228
  severity: Severity$1.Info,
229
229
  message: ( localize(
230
- 8470,
230
+ 8459,
231
231
  "Settings sync was turned off from another device, please turn on sync again."
232
232
  )),
233
233
  actions: {
234
- primary: [( (new Action('turn on sync', ( localize(8469, "Turn on Settings Sync...")), undefined, true, () => this.turnOn())))]
234
+ primary: [( (new Action('turn on sync', ( localize(8458, "Turn on Settings Sync...")), undefined, true, () => this.turnOn())))]
235
235
  }
236
236
  });
237
237
  break;
@@ -240,7 +240,7 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
240
240
  this.disableSync(error.resource);
241
241
  const sourceArea = getSyncAreaLabel(error.resource);
242
242
  this.handleTooLargeError(error.resource, ( localize(
243
- 8471,
243
+ 8460,
244
244
  "Disabled syncing {0} because size of the {1} file to sync is larger than {2}. Please open the file and reduce the size and enable sync",
245
245
  sourceArea.toLowerCase(),
246
246
  sourceArea.toLowerCase(),
@@ -251,7 +251,7 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
251
251
  case UserDataSyncErrorCode.LocalTooManyProfiles:
252
252
  this.disableSync(SyncResource.Profiles);
253
253
  this.notificationService.error(( localize(
254
- 8472,
254
+ 8461,
255
255
  "Disabled syncing profiles because there are too many profiles to sync. Settings Sync supports syncing maximum 20 profiles. Please reduce the number of profiles and enable sync"
256
256
  )));
257
257
  break;
@@ -259,12 +259,12 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
259
259
  case UserDataSyncErrorCode.Gone:
260
260
  case UserDataSyncErrorCode.UpgradeRequired: {
261
261
  const message = ( localize(
262
- 8473,
262
+ 8462,
263
263
  "Settings sync is disabled because the current version ({0}, {1}) is not compatible with the sync service. Please update before turning on sync.",
264
264
  this.productService.version,
265
265
  this.productService.commit
266
266
  ));
267
- const operationId = error.operationId ? ( localize(8474, "Operation Id: {0}", error.operationId)) : undefined;
267
+ const operationId = error.operationId ? ( localize(8463, "Operation Id: {0}", error.operationId)) : undefined;
268
268
  this.notificationService.notify({
269
269
  severity: Severity$1.Error,
270
270
  message: operationId ? `${message} ${operationId}` : message,
@@ -273,17 +273,17 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
273
273
  }
274
274
  case UserDataSyncErrorCode.MethodNotFound: {
275
275
  const message = ( localize(
276
- 8475,
276
+ 8464,
277
277
  "Settings sync is disabled because the client is making invalid requests. Please report an issue with the logs."
278
278
  ));
279
- const operationId = error.operationId ? ( localize(8474, "Operation Id: {0}", error.operationId)) : undefined;
279
+ const operationId = error.operationId ? ( localize(8463, "Operation Id: {0}", error.operationId)) : undefined;
280
280
  this.notificationService.notify({
281
281
  severity: Severity$1.Error,
282
282
  message: operationId ? `${message} ${operationId}` : message,
283
283
  actions: {
284
284
  primary: [
285
- ( (new Action('Show Sync Logs', ( localize(8476, "Show Log")), undefined, true, () => this.commandService.executeCommand(SHOW_SYNC_LOG_COMMAND_ID)))),
286
- ( (new Action('Report Issue', ( localize(8477, "Report Issue")), undefined, true, () => this.workbenchIssueService.openReporter())))
285
+ ( (new Action('Show Sync Logs', ( localize(8465, "Show Log")), undefined, true, () => this.commandService.executeCommand(SHOW_SYNC_LOG_COMMAND_ID)))),
286
+ ( (new Action('Report Issue', ( localize(8466, "Report Issue")), undefined, true, () => this.workbenchIssueService.openReporter())))
287
287
  ]
288
288
  }
289
289
  });
@@ -293,13 +293,13 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
293
293
  this.notificationService.notify({
294
294
  severity: Severity$1.Error,
295
295
  message: ( localize(
296
- 8478,
296
+ 8467,
297
297
  "Settings sync is disabled because your data in the cloud is older than that of the client. Please clear your data in the cloud before turning on sync."
298
298
  )),
299
299
  actions: {
300
300
  primary: [
301
- ( (new Action('reset', ( localize(8479, "Clear Data in Cloud...")), undefined, true, () => this.userDataSyncWorkbenchService.resetSyncedData()))),
302
- ( (new Action('show synced data', ( localize(8480, "Show Synced Data")), undefined, true, () => this.userDataSyncWorkbenchService.showSyncActivity())))
301
+ ( (new Action('reset', ( localize(8468, "Clear Data in Cloud...")), undefined, true, () => this.userDataSyncWorkbenchService.resetSyncedData()))),
302
+ ( (new Action('show synced data', ( localize(8469, "Show Synced Data")), undefined, true, () => this.userDataSyncWorkbenchService.showSyncActivity())))
303
303
  ]
304
304
  }
305
305
  });
@@ -308,8 +308,8 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
308
308
  this.notificationService.notify({
309
309
  severity: Severity$1.Info,
310
310
  message: this.userDataSyncStoreManagementService.userDataSyncStore?.type === 'insiders' ?
311
- ( localize(8481, "Settings Sync has been switched to insiders service")) :
312
- ( localize(8482, "Settings Sync has been switched to stable service")),
311
+ ( localize(8470, "Settings Sync has been switched to insiders service")) :
312
+ ( localize(8471, "Settings Sync has been switched to stable service")),
313
313
  });
314
314
  return;
315
315
  case UserDataSyncErrorCode.DefaultServiceChanged:
@@ -317,7 +317,7 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
317
317
  this.notificationService.notify({
318
318
  severity: Severity$1.Info,
319
319
  message: ( localize(
320
- 8483,
320
+ 8472,
321
321
  "Settings sync now uses a separate service, more information is available in the [Settings Sync Documentation](https://aka.ms/vscode-settings-sync-help#_syncing-stable-versus-insiders)."
322
322
  )),
323
323
  });
@@ -326,12 +326,12 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
326
326
  this.notificationService.notify({
327
327
  severity: Severity$1.Info,
328
328
  message: ( localize(
329
- 8484,
329
+ 8473,
330
330
  "Settings sync was turned off because {0} now uses a separate service. Please turn on sync again.",
331
331
  this.productService.nameLong
332
332
  )),
333
333
  actions: {
334
- primary: [( (new Action('turn on sync', ( localize(8469, "Turn on Settings Sync...")), undefined, true, () => this.turnOn())))]
334
+ primary: [( (new Action('turn on sync', ( localize(8458, "Turn on Settings Sync...")), undefined, true, () => this.turnOn())))]
335
335
  }
336
336
  });
337
337
  }
@@ -339,12 +339,12 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
339
339
  }
340
340
  }
341
341
  handleTooLargeError(resource, message, error) {
342
- const operationId = error.operationId ? ( localize(8474, "Operation Id: {0}", error.operationId)) : undefined;
342
+ const operationId = error.operationId ? ( localize(8463, "Operation Id: {0}", error.operationId)) : undefined;
343
343
  this.notificationService.notify({
344
344
  severity: Severity$1.Error,
345
345
  message: operationId ? `${message} ${operationId}` : message,
346
346
  actions: {
347
- primary: [( (new Action('open sync file', ( localize(8485, "Open {0} File", getSyncAreaLabel(resource))), undefined, true, () => resource === SyncResource.Settings ? this.preferencesService.openUserSettings({ jsonEditor: true }) : this.preferencesService.openGlobalKeybindingSettings(true))))]
347
+ primary: [( (new Action('open sync file', ( localize(8474, "Open {0} File", getSyncAreaLabel(resource))), undefined, true, () => resource === SyncResource.Settings ? this.preferencesService.openUserSettings({ jsonEditor: true }) : this.preferencesService.openGlobalKeybindingSettings(true))))]
348
348
  }
349
349
  });
350
350
  }
@@ -396,12 +396,12 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
396
396
  const handle = this.notificationService.notify({
397
397
  severity: Severity$1.Error,
398
398
  message: ( localize(
399
- 8486,
399
+ 8475,
400
400
  "Unable to sync {0} because the content in the file is not valid. Please open the file and correct it.",
401
401
  errorArea.toLowerCase()
402
402
  )),
403
403
  actions: {
404
- primary: [( (new Action('open sync file', ( localize(8485, "Open {0} File", errorArea)), undefined, true, () => source === SyncResource.Settings ? this.preferencesService.openUserSettings({ jsonEditor: true }) : this.preferencesService.openGlobalKeybindingSettings(true))))]
404
+ primary: [( (new Action('open sync file', ( localize(8474, "Open {0} File", errorArea)), undefined, true, () => source === SyncResource.Settings ? this.preferencesService.openUserSettings({ jsonEditor: true }) : this.preferencesService.openGlobalKeybindingSettings(true))))]
405
405
  }
406
406
  });
407
407
  this.invalidContentErrorDisposables.set(key, toDisposable(() => {
@@ -417,10 +417,10 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
417
417
  let badge = undefined;
418
418
  let priority = undefined;
419
419
  if (this.userDataSyncService.conflicts.length && this.userDataSyncEnablementService.isEnabled()) {
420
- badge = ( (new NumberBadge(this.getConflictsCount(), () => ( localize(8487, "{0}: Conflicts Detected", SYNC_TITLE.value)))));
420
+ badge = ( (new NumberBadge(this.getConflictsCount(), () => ( localize(8476, "{0}: Conflicts Detected", SYNC_TITLE.value)))));
421
421
  }
422
422
  else if (this.turningOnSync) {
423
- badge = ( (new ProgressBadge(() => ( localize(8488, "Turning on Settings Sync...")))));
423
+ badge = ( (new ProgressBadge(() => ( localize(8477, "Turning on Settings Sync...")))));
424
424
  priority = 1;
425
425
  }
426
426
  if (badge) {
@@ -431,7 +431,7 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
431
431
  this.accountBadgeDisposable.clear();
432
432
  let badge = undefined;
433
433
  if (this.userDataSyncService.status !== SyncStatus.Uninitialized && this.userDataSyncEnablementService.isEnabled() && this.userDataSyncWorkbenchService.accountStatus === AccountStatus.Unavailable) {
434
- badge = ( (new NumberBadge(1, () => ( localize(8489, "Sign in to Sync Settings")))));
434
+ badge = ( (new NumberBadge(1, () => ( localize(8478, "Sign in to Sync Settings")))));
435
435
  }
436
436
  if (badge) {
437
437
  this.accountBadgeDisposable.value = this.activityService.showAccountsActivity({ badge, priority: undefined });
@@ -440,7 +440,7 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
440
440
  async turnOn() {
441
441
  try {
442
442
  if (!this.userDataSyncWorkbenchService.authenticationProviders.length) {
443
- throw ( (new Error(localize(8490, "No authentication providers are available."))));
443
+ throw ( (new Error(localize(8479, "No authentication providers are available."))));
444
444
  }
445
445
  const turnOn = await this.askToConfigure();
446
446
  if (!turnOn) {
@@ -460,7 +460,7 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
460
460
  case UserDataSyncErrorCode.TooLarge:
461
461
  if (e.resource === SyncResource.Keybindings || e.resource === SyncResource.Settings || e.resource === SyncResource.Tasks) {
462
462
  this.handleTooLargeError(e.resource, ( localize(
463
- 8491,
463
+ 8480,
464
464
  "Settings sync cannot be turned on because size of the {0} file to sync is larger than {1}. Please open the file and reduce the size and turn on sync",
465
465
  getSyncAreaLabel(e.resource).toLowerCase(),
466
466
  '100kb'
@@ -472,12 +472,12 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
472
472
  case UserDataSyncErrorCode.Gone:
473
473
  case UserDataSyncErrorCode.UpgradeRequired: {
474
474
  const message = ( localize(
475
- 8492,
475
+ 8481,
476
476
  "Settings sync cannot be turned on because the current version ({0}, {1}) is not compatible with the sync service. Please update before turning on sync.",
477
477
  this.productService.version,
478
478
  this.productService.commit
479
479
  ));
480
- const operationId = e.operationId ? ( localize(8474, "Operation Id: {0}", e.operationId)) : undefined;
480
+ const operationId = e.operationId ? ( localize(8463, "Operation Id: {0}", e.operationId)) : undefined;
481
481
  this.notificationService.notify({
482
482
  severity: Severity$1.Error,
483
483
  message: operationId ? `${message} ${operationId}` : message,
@@ -488,30 +488,30 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
488
488
  this.notificationService.notify({
489
489
  severity: Severity$1.Error,
490
490
  message: ( localize(
491
- 8493,
491
+ 8482,
492
492
  "Settings sync cannot be turned on because your data in the cloud is older than that of the client. Please clear your data in the cloud before turning on sync."
493
493
  )),
494
494
  actions: {
495
495
  primary: [
496
- ( (new Action('reset', ( localize(8479, "Clear Data in Cloud...")), undefined, true, () => this.userDataSyncWorkbenchService.resetSyncedData()))),
497
- ( (new Action('show synced data', ( localize(8480, "Show Synced Data")), undefined, true, () => this.userDataSyncWorkbenchService.showSyncActivity())))
496
+ ( (new Action('reset', ( localize(8468, "Clear Data in Cloud...")), undefined, true, () => this.userDataSyncWorkbenchService.resetSyncedData()))),
497
+ ( (new Action('show synced data', ( localize(8469, "Show Synced Data")), undefined, true, () => this.userDataSyncWorkbenchService.showSyncActivity())))
498
498
  ]
499
499
  }
500
500
  });
501
501
  return;
502
502
  case UserDataSyncErrorCode.Unauthorized:
503
503
  case UserDataSyncErrorCode.Forbidden:
504
- this.notificationService.error(( localize(8494, "Error while turning on Settings Sync: Authentication failed.")));
504
+ this.notificationService.error(( localize(8483, "Error while turning on Settings Sync: Authentication failed.")));
505
505
  return;
506
506
  }
507
507
  this.notificationService.error(( localize(
508
- 8495,
508
+ 8484,
509
509
  "Error while turning on Settings Sync. Please check [logs]({0}) for more details.",
510
510
  `command:${SHOW_SYNC_LOG_COMMAND_ID}`
511
511
  )));
512
512
  }
513
513
  else {
514
- this.notificationService.error(( localize(8496, "Error while turning on Settings Sync. {0}", getErrorMessage(e))));
514
+ this.notificationService.error(( localize(8485, "Error while turning on Settings Sync. {0}", getErrorMessage(e))));
515
515
  }
516
516
  }
517
517
  }
@@ -524,8 +524,8 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
524
524
  quickPick.title = SYNC_TITLE.value;
525
525
  quickPick.ok = false;
526
526
  quickPick.customButton = true;
527
- quickPick.customLabel = ( localize(8497, "Sign in"));
528
- quickPick.description = ( localize(8498, "Please sign in to backup and sync your data across devices."));
527
+ quickPick.customLabel = ( localize(8486, "Sign in"));
528
+ quickPick.description = ( localize(8487, "Please sign in to backup and sync your data across devices."));
529
529
  quickPick.canSelectMany = true;
530
530
  quickPick.ignoreFocusOut = true;
531
531
  quickPick.hideInput = true;
@@ -599,8 +599,8 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
599
599
  const disposables = ( (new DisposableStore()));
600
600
  const quickPick = this.quickInputService.createQuickPick();
601
601
  disposables.add(quickPick);
602
- quickPick.title = ( localize(8499, "{0}: Configure...", SYNC_TITLE.value));
603
- quickPick.placeholder = ( localize(8500, "Choose what to sync"));
602
+ quickPick.title = ( localize(8488, "{0}: Configure...", SYNC_TITLE.value));
603
+ quickPick.placeholder = ( localize(8489, "Choose what to sync"));
604
604
  quickPick.canSelectMany = true;
605
605
  quickPick.ignoreFocusOut = true;
606
606
  quickPick.ok = true;
@@ -623,15 +623,15 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
623
623
  }
624
624
  async turnOff() {
625
625
  const result = await this.dialogService.confirm({
626
- message: ( localize(8501, "Do you want to turn off sync?")),
626
+ message: ( localize(8490, "Do you want to turn off sync?")),
627
627
  detail: ( localize(
628
- 8502,
628
+ 8491,
629
629
  "Your settings, keybindings, extensions, snippets and UI State will no longer be synced."
630
630
  )),
631
- primaryButton: ( localize(8503, "&&Turn off")),
631
+ primaryButton: ( localize(8492, "&&Turn off")),
632
632
  checkbox: this.userDataSyncWorkbenchService.accountStatus === AccountStatus.Available ? {
633
633
  label: ( localize(
634
- 8504,
634
+ 8493,
635
635
  "Turn off sync on all your devices and clear the data from the cloud."
636
636
  ))
637
637
  } : undefined
@@ -659,9 +659,9 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
659
659
  (new Promise((c, e) => {
660
660
  const disposables = ( (new DisposableStore()));
661
661
  const quickPick = disposables.add(this.quickInputService.createQuickPick());
662
- quickPick.title = ( localize(8505, "{0}: Select Service", SYNC_TITLE.value));
662
+ quickPick.title = ( localize(8494, "{0}: Select Service", SYNC_TITLE.value));
663
663
  quickPick.description = ( localize(
664
- 8506,
664
+ 8495,
665
665
  "Ensure you are using the same settings sync service when syncing with multiple environments"
666
666
  ));
667
667
  quickPick.hideInput = true;
@@ -669,19 +669,19 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
669
669
  const getDescription = (url) => {
670
670
  const isDefault = isEqual(url, userDataSyncStore.defaultUrl);
671
671
  if (isDefault) {
672
- return ( localize(8507, "Default"));
672
+ return ( localize(8496, "Default"));
673
673
  }
674
674
  return undefined;
675
675
  };
676
676
  quickPick.items = [
677
677
  {
678
678
  id: 'insiders',
679
- label: ( localize(8508, "Insiders")),
679
+ label: ( localize(8497, "Insiders")),
680
680
  description: getDescription(userDataSyncStore.insidersUrl)
681
681
  },
682
682
  {
683
683
  id: 'stable',
684
- label: ( localize(8509, "Stable")),
684
+ label: ( localize(8498, "Stable")),
685
685
  description: getDescription(userDataSyncStore.stableUrl)
686
686
  }
687
687
  ];
@@ -735,7 +735,7 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
735
735
  constructor() {
736
736
  super({
737
737
  id: 'workbench.userDataSync.actions.turnOn',
738
- title: ( localize2(8510, 'Backup and Sync Settings...')),
738
+ title: ( localize2(8499, 'Backup and Sync Settings...')),
739
739
  category: SYNC_TITLE,
740
740
  f1: true,
741
741
  precondition: when,
@@ -772,7 +772,7 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
772
772
  constructor() {
773
773
  super({
774
774
  id: 'workbench.userData.actions.turningOn',
775
- title: ( localize(8511, "Turning on Settings Sync...")),
775
+ title: ( localize(8500, "Turning on Settings Sync...")),
776
776
  precondition: ( (ContextKeyExpr.false())),
777
777
  menu: [{
778
778
  group: '3_configuration',
@@ -795,7 +795,7 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
795
795
  constructor() {
796
796
  super({
797
797
  id: 'workbench.userData.actions.cancelTurnOn',
798
- title: ( localize(8512, "Cancel")),
798
+ title: ( localize(8501, "Cancel")),
799
799
  icon: Codicon.stopCircle,
800
800
  menu: {
801
801
  id: MenuId.ViewContainerTitle,
@@ -825,7 +825,7 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
825
825
  constructor() {
826
826
  super({
827
827
  id: 'workbench.userData.actions.signin',
828
- title: ( localize(8513, "Sign in to Sync Settings")),
828
+ title: ( localize(8502, "Sign in to Sync Settings")),
829
829
  menu: {
830
830
  group: '3_configuration',
831
831
  id: MenuId.GlobalActivity,
@@ -847,13 +847,13 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
847
847
  group: '1_settings',
848
848
  command: {
849
849
  id,
850
- title: ( localize(8514, "Sign in to Sync Settings (1)")),
850
+ title: ( localize(8503, "Sign in to Sync Settings (1)")),
851
851
  },
852
852
  when
853
853
  }))));
854
854
  }
855
855
  getShowConflictsTitle() {
856
- return ( localize2(8515, "Show Conflicts ({0})", this.getConflictsCount()));
856
+ return ( localize2(8504, "Show Conflicts ({0})", this.getConflictsCount()));
857
857
  }
858
858
  registerShowConflictsAction() {
859
859
  this.conflictsActionDisposable.value = undefined;
@@ -895,7 +895,7 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
895
895
  constructor() {
896
896
  super({
897
897
  id: 'workbench.userDataSync.actions.manage',
898
- title: ( localize(8516, "Settings Sync is On")),
898
+ title: ( localize(8505, "Settings Sync is On")),
899
899
  toggled: ContextKeyTrueExpr.INSTANCE,
900
900
  menu: [
901
901
  {
@@ -1028,7 +1028,7 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
1028
1028
  catch (e) {
1029
1029
  if (!isCancellationError(e)) {
1030
1030
  that.notificationService.error(( localize(
1031
- 8517,
1031
+ 8506,
1032
1032
  "Error while turning off Settings Sync. Please check [logs]({0}) for more details.",
1033
1033
  `command:${SHOW_SYNC_LOG_COMMAND_ID}`
1034
1034
  )));
@@ -1050,7 +1050,7 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
1050
1050
  title: configureSyncCommand.title,
1051
1051
  category: SYNC_TITLE,
1052
1052
  icon: Codicon.settingsGear,
1053
- tooltip: ( localize(8518, "Configure...")),
1053
+ tooltip: ( localize(8507, "Configure...")),
1054
1054
  menu: [{
1055
1055
  id: MenuId.CommandPalette,
1056
1056
  when
@@ -1074,8 +1074,8 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
1074
1074
  constructor() {
1075
1075
  super({
1076
1076
  id: SHOW_SYNC_LOG_COMMAND_ID,
1077
- title: ( localize(8519, "{0}: Show Log", SYNC_TITLE.value)),
1078
- tooltip: ( localize(8520, "Show Log")),
1077
+ title: ( localize(8508, "{0}: Show Log", SYNC_TITLE.value)),
1078
+ tooltip: ( localize(8509, "Show Log")),
1079
1079
  icon: Codicon.output,
1080
1080
  menu: [{
1081
1081
  id: MenuId.CommandPalette,
@@ -1140,7 +1140,7 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
1140
1140
  constructor() {
1141
1141
  super({
1142
1142
  id: 'workbench.userDataSync.actions.acceptMerges',
1143
- title: ( localize(8521, "Complete Merge")),
1143
+ title: ( localize(8510, "Complete Merge")),
1144
1144
  menu: [{
1145
1145
  id: MenuId.EditorContent,
1146
1146
  when: ( (ContextKeyExpr.and(ctxIsMergeResultEditor, (ContextKeyExpr.regex(
@@ -1175,7 +1175,7 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
1175
1175
  const notificationService = accessor.get(INotificationService);
1176
1176
  const folder = await userDataSyncWorkbenchService.downloadSyncActivity();
1177
1177
  if (folder) {
1178
- notificationService.info(( localize(8522, "Successfully downloaded Settings Sync activity.")));
1178
+ notificationService.info(( localize(8511, "Successfully downloaded Settings Sync activity.")));
1179
1179
  }
1180
1180
  }
1181
1181
  }));
@@ -1202,7 +1202,7 @@ let UserDataSyncWorkbenchContribution = class UserDataSyncWorkbenchContribution
1202
1202
  constructor() {
1203
1203
  super({
1204
1204
  id: 'workbench.actions.syncData.reset',
1205
- title: ( localize(8523, "Clear Data in Cloud...")),
1205
+ title: ( localize(8512, "Clear Data in Cloud...")),
1206
1206
  menu: [{
1207
1207
  id: MenuId.ViewContainerTitle,
1208
1208
  when: ( (ContextKeyExpr.equals('viewContainer', SYNC_VIEW_CONTAINER_ID))),
@@ -230,7 +230,7 @@ let UserDataSyncWorkbenchService = class UserDataSyncWorkbenchService extends Di
230
230
  async turnOn() {
231
231
  if (!this.authenticationProviders.length) {
232
232
  throw ( (new Error(localize(
233
- 3470,
233
+ 3478,
234
234
  "Settings sync cannot be turned on because there are no authentication providers available."
235
235
  ))));
236
236
  }
@@ -245,16 +245,16 @@ let UserDataSyncWorkbenchService = class UserDataSyncWorkbenchService extends Di
245
245
  throw ( (new CancellationError()));
246
246
  }
247
247
  if (this.accountStatus !== AccountStatus.Available) {
248
- throw ( (new Error(localize(3471, "No account available"))));
248
+ throw ( (new Error(localize(3479, "No account available"))));
249
249
  }
250
250
  const turnOnSyncCancellationToken = this.turnOnSyncCancellationToken = ( (new CancellationTokenSource()));
251
251
  const disposable = isWeb ? Disposable.None : this.lifecycleService.onBeforeShutdown(e => e.veto((async () => {
252
252
  const { confirmed } = await this.dialogService.confirm({
253
253
  type: 'warning',
254
- message: ( localize(3472, "Settings Sync is being turned on. Would you like to cancel it?")),
255
- title: ( localize(3473, "Settings Sync")),
256
- primaryButton: ( localize(3474, "&&Yes")),
257
- cancelButton: ( localize(3475, "No"))
254
+ message: ( localize(3480, "Settings Sync is being turned on. Would you like to cancel it?")),
255
+ title: ( localize(3481, "Settings Sync")),
256
+ primaryButton: ( localize(3482, "&&Yes")),
257
+ cancelButton: ( localize(3483, "No"))
258
258
  });
259
259
  if (confirmed) {
260
260
  turnOnSyncCancellationToken.cancel();
@@ -276,7 +276,7 @@ let UserDataSyncWorkbenchService = class UserDataSyncWorkbenchService extends Di
276
276
  if (this.environmentService.options?.settingsSyncOptions?.enablementHandler && this.currentAuthenticationProviderId) {
277
277
  this.environmentService.options.settingsSyncOptions.enablementHandler(true, this.currentAuthenticationProviderId);
278
278
  }
279
- this.notificationService.info(( localize(3476, "{0} is turned on", SYNC_TITLE.value)));
279
+ this.notificationService.info(( localize(3484, "{0} is turned on", SYNC_TITLE.value)));
280
280
  }
281
281
  async turnoff(everywhere) {
282
282
  if (this.userDataSyncEnablementService.isEnabled()) {
@@ -316,13 +316,13 @@ let UserDataSyncWorkbenchService = class UserDataSyncWorkbenchService extends Di
316
316
  command: SHOW_SYNC_LOG_COMMAND_ID,
317
317
  delay: 500,
318
318
  }, async (progress) => {
319
- progress.report({ message: ( localize(3477, "Turning on...")) });
319
+ progress.report({ message: ( localize(3485, "Turning on...")) });
320
320
  disposables.add(this.userDataSyncService.onDidChangeStatus(status => {
321
321
  if (status === SyncStatus.HasConflicts) {
322
- progress.report({ message: ( localize(3478, "Resolving conflicts...")) });
322
+ progress.report({ message: ( localize(3486, "Resolving conflicts...")) });
323
323
  }
324
324
  else {
325
- progress.report({ message: ( localize(3479, "Turning on...")) });
325
+ progress.report({ message: ( localize(3487, "Turning on...")) });
326
326
  }
327
327
  }));
328
328
  await manualSyncTask.merge();
@@ -343,11 +343,11 @@ let UserDataSyncWorkbenchService = class UserDataSyncWorkbenchService extends Di
343
343
  async handleConflictsWhileTurningOn(token) {
344
344
  await this.dialogService.prompt({
345
345
  type: Severity$1.Warning,
346
- message: ( localize(3480, "Conflicts Detected")),
347
- detail: ( localize(3481, "Please resolve conflicts to turn on...")),
346
+ message: ( localize(3488, "Conflicts Detected")),
347
+ detail: ( localize(3489, "Please resolve conflicts to turn on...")),
348
348
  buttons: [
349
349
  {
350
- label: ( localize(3482, "&&Show Conflicts")),
350
+ label: ( localize(3490, "&&Show Conflicts")),
351
351
  run: async () => {
352
352
  const waitUntilConflictsAreResolvedPromise = raceCancellationError(Event.toPromise(Event.filter(this.userDataSyncService.onDidChangeConflicts, conficts => conficts.length === 0)), token);
353
353
  await this.showConflicts(this.userDataSyncService.conflicts[0]?.conflicts[0]);
@@ -355,11 +355,11 @@ let UserDataSyncWorkbenchService = class UserDataSyncWorkbenchService extends Di
355
355
  }
356
356
  },
357
357
  {
358
- label: ( localize(3483, "Replace &&Local")),
358
+ label: ( localize(3491, "Replace &&Local")),
359
359
  run: async () => this.replace(true)
360
360
  },
361
361
  {
362
- label: ( localize(3484, "Replace &&Remote")),
362
+ label: ( localize(3492, "Replace &&Remote")),
363
363
  run: () => this.replace(false)
364
364
  },
365
365
  ],
@@ -394,11 +394,11 @@ let UserDataSyncWorkbenchService = class UserDataSyncWorkbenchService extends Di
394
394
  const { confirmed } = await this.dialogService.confirm({
395
395
  type: 'info',
396
396
  message: ( localize(
397
- 3485,
397
+ 3493,
398
398
  "This will clear your data in the cloud and stop sync on all your devices."
399
399
  )),
400
- title: ( localize(3486, "Clear")),
401
- primaryButton: ( localize(3487, "&&Reset")),
400
+ title: ( localize(3494, "Clear")),
401
+ primaryButton: ( localize(3495, "&&Reset")),
402
402
  });
403
403
  if (confirmed) {
404
404
  await this.userDataSyncService.resetRemote();
@@ -431,11 +431,11 @@ let UserDataSyncWorkbenchService = class UserDataSyncWorkbenchService extends Di
431
431
  }
432
432
  async downloadSyncActivity() {
433
433
  const result = await this.fileDialogService.showOpenDialog({
434
- title: ( localize(3488, "Select folder to download Settings Sync activity")),
434
+ title: ( localize(3496, "Select folder to download Settings Sync activity")),
435
435
  canSelectFiles: false,
436
436
  canSelectFolders: true,
437
437
  canSelectMany: false,
438
- openLabel: ( localize(3489, "Save")),
438
+ openLabel: ( localize(3497, "Save")),
439
439
  });
440
440
  if (!result?.[0]) {
441
441
  return;
@@ -527,7 +527,7 @@ let UserDataSyncWorkbenchService = class UserDataSyncWorkbenchService extends Di
527
527
  quickPick.title = SYNC_TITLE.value;
528
528
  quickPick.ok = false;
529
529
  quickPick.ignoreFocusOut = true;
530
- quickPick.placeholder = ( localize(3490, "Select an account to sign in"));
530
+ quickPick.placeholder = ( localize(3498, "Select an account to sign in"));
531
531
  quickPick.show();
532
532
  if (authenticationProviders.length > 1) {
533
533
  quickPick.busy = true;
@@ -565,26 +565,26 @@ let UserDataSyncWorkbenchService = class UserDataSyncWorkbenchService extends Di
565
565
  createQuickpickItems(authenticationProviders, allAccounts) {
566
566
  const quickPickItems = [];
567
567
  if (allAccounts.size) {
568
- quickPickItems.push({ type: 'separator', label: ( localize(3491, "Signed in")) });
568
+ quickPickItems.push({ type: 'separator', label: ( localize(3499, "Signed in")) });
569
569
  for (const authenticationProvider of authenticationProviders) {
570
570
  const accounts = (allAccounts.get(authenticationProvider.id) || []).sort(({ sessionId }) => sessionId === this.currentSessionId ? -1 : 1);
571
571
  const providerName = this.authenticationService.getProvider(authenticationProvider.id).label;
572
572
  for (const account of accounts) {
573
573
  quickPickItems.push({
574
574
  label: `${account.accountName} (${providerName})`,
575
- description: account.sessionId === this.current?.sessionId ? ( localize(3492, "Last Used with Sync")) : undefined,
575
+ description: account.sessionId === this.current?.sessionId ? ( localize(3500, "Last Used with Sync")) : undefined,
576
576
  account,
577
577
  authenticationProvider,
578
578
  });
579
579
  }
580
580
  }
581
- quickPickItems.push({ type: 'separator', label: ( localize(3493, "Others")) });
581
+ quickPickItems.push({ type: 'separator', label: ( localize(3501, "Others")) });
582
582
  }
583
583
  for (const authenticationProvider of authenticationProviders) {
584
584
  const provider = this.authenticationService.getProvider(authenticationProvider.id);
585
585
  if (!( (allAccounts.has(authenticationProvider.id))) || provider.supportsMultipleAccounts) {
586
586
  const providerName = provider.label;
587
- quickPickItems.push({ label: ( localize(3494, "Sign in with {0}", providerName)), authenticationProvider });
587
+ quickPickItems.push({ label: ( localize(3502, "Sign in with {0}", providerName)), authenticationProvider });
588
588
  }
589
589
  }
590
590
  return quickPickItems;