@codingame/monaco-vscode-edit-sessions-service-override 10.1.1 → 10.1.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-edit-sessions-service-override",
3
- "version": "10.1.1",
3
+ "version": "10.1.2",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -26,6 +26,6 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "vscode": "npm:@codingame/monaco-vscode-api@10.1.1"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@10.1.2"
30
30
  }
31
31
  }
@@ -73,24 +73,24 @@ import Severity$1 from 'vscode/vscode/vs/base/common/severity';
73
73
  var EditSessionsContribution_1;
74
74
  const continueWorkingOnCommand = {
75
75
  id: '_workbench.editSessions.actions.continueEditSession',
76
- title: ( localize2(2432, 'Continue Working On...')),
76
+ title: ( localize2(2404, 'Continue Working On...')),
77
77
  precondition: ( (WorkspaceFolderCountContext.notEqualsTo('0'))),
78
78
  f1: true
79
79
  };
80
80
  const openLocalFolderCommand = {
81
81
  id: '_workbench.editSessions.actions.continueEditSession.openLocalFolder',
82
- title: ( localize2(2433, 'Open In Local Folder')),
82
+ title: ( localize2(2405, 'Open In Local Folder')),
83
83
  category: EDIT_SESSION_SYNC_CATEGORY,
84
84
  precondition: ( (ContextKeyExpr.and( (IsWebContext.toNegated()), VirtualWorkspaceContext)))
85
85
  };
86
86
  const showOutputChannelCommand = {
87
87
  id: 'workbench.editSessions.actions.showOutputChannel',
88
- title: ( localize2(2434, "Show Log")),
88
+ title: ( localize2(2406, "Show Log")),
89
89
  category: EDIT_SESSION_SYNC_CATEGORY
90
90
  };
91
91
  const installAdditionalContinueOnOptionsCommand = {
92
92
  id: 'workbench.action.continueOn.extensions',
93
- title: ( localize(2435, 'Install additional development environment options')),
93
+ title: ( localize(2407, 'Install additional development environment options')),
94
94
  };
95
95
  registerAction2(class extends Action2 {
96
96
  constructor() {
@@ -100,7 +100,7 @@ registerAction2(class extends Action2 {
100
100
  return accessor.get(IExtensionsWorkbenchService).openSearch('@tag:continueOn');
101
101
  }
102
102
  });
103
- const resumeProgressOptionsTitle = `[${( localize(2436, 'Resuming working changes...'))}](command:${showOutputChannelCommand.id})`;
103
+ const resumeProgressOptionsTitle = `[${( localize(2408, 'Resuming working changes...'))}](command:${showOutputChannelCommand.id})`;
104
104
  const resumeProgressOptions = {
105
105
  location: 10 ,
106
106
  type: 'syncing',
@@ -181,7 +181,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
181
181
  this._register(this.fileService.registerProvider(EditSessionsFileSystemProvider.SCHEMA, ( (new EditSessionsFileSystemProvider(this.editSessionsStorageService)))));
182
182
  this.lifecycleService.onWillShutdown((e) => {
183
183
  if (e.reason !== 3 && this.editSessionsStorageService.isSignedIn && this.configurationService.getValue('workbench.experimental.cloudChanges.autoStore') === 'onShutdown' && !isWeb) {
184
- e.join(this.autoStoreEditSession(), { id: 'autoStoreWorkingChanges', label: ( localize(2437, 'Storing current working changes...')) });
184
+ e.join(this.autoStoreEditSession(), { id: 'autoStoreWorkingChanges', label: ( localize(2409, 'Storing current working changes...')) });
185
185
  }
186
186
  });
187
187
  this._register(this.editSessionsStorageService.onDidSignIn(() => this.updateAccountsMenuBadge()));
@@ -239,7 +239,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
239
239
  if (this.editSessionsStorageService.isSignedIn) {
240
240
  return this.accountsMenuBadgeDisposable.clear();
241
241
  }
242
- const badge = ( (new NumberBadge(1, () => ( localize(2438, 'Check for pending cloud changes')))));
242
+ const badge = ( (new NumberBadge(1, () => ( localize(2410, 'Check for pending cloud changes')))));
243
243
  this.accountsMenuBadgeDisposable.value = this.activityService.showAccountsActivity({ badge });
244
244
  }
245
245
  async autoStoreEditSession() {
@@ -247,7 +247,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
247
247
  await this.progressService.withProgress({
248
248
  location: 10 ,
249
249
  type: 'syncing',
250
- title: ( localize(2439, 'Storing working changes...'))
250
+ title: ( localize(2411, 'Storing working changes...'))
251
251
  }, async () => this.storeEditSession(false, cancellationTokenSource.token), () => {
252
252
  cancellationTokenSource.cancel();
253
253
  cancellationTokenSource.dispose();
@@ -291,7 +291,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
291
291
  constructor() {
292
292
  super({
293
293
  id: 'workbench.editSessions.actions.showEditSessions',
294
- title: ( localize2(2440, 'Show Cloud Changes')),
294
+ title: ( localize2(2412, 'Show Cloud Changes')),
295
295
  category: EDIT_SESSION_SYNC_CATEGORY,
296
296
  f1: true
297
297
  });
@@ -328,7 +328,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
328
328
  location: 15 ,
329
329
  cancellable: true,
330
330
  type: 'syncing',
331
- title: ( localize(2441, 'Storing your working changes...'))
331
+ title: ( localize(2413, 'Storing your working changes...'))
332
332
  }, async () => {
333
333
  const ref = await that.storeEditSession(false, cancellationTokenSource.token);
334
334
  if (ref !== undefined) {
@@ -377,7 +377,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
377
377
  constructor() {
378
378
  super({
379
379
  id: 'workbench.editSessions.actions.resumeLatest',
380
- title: ( localize2(2442, 'Resume Latest Changes from Cloud')),
380
+ title: ( localize2(2414, 'Resume Latest Changes from Cloud')),
381
381
  category: EDIT_SESSION_SYNC_CATEGORY,
382
382
  f1: true,
383
383
  });
@@ -390,7 +390,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
390
390
  constructor() {
391
391
  super({
392
392
  id: 'workbench.editSessions.actions.resumeFromSerializedPayload',
393
- title: ( localize2(2443, 'Resume Changes from Serialized Data')),
393
+ title: ( localize2(2415, 'Resume Changes from Serialized Data')),
394
394
  category: 'Developer',
395
395
  f1: true,
396
396
  });
@@ -410,7 +410,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
410
410
  constructor() {
411
411
  super({
412
412
  id: 'workbench.editSessions.actions.storeCurrent',
413
- title: ( localize2(2444, 'Store Working Changes in Cloud')),
413
+ title: ( localize2(2416, 'Store Working Changes in Cloud')),
414
414
  category: EDIT_SESSION_SYNC_CATEGORY,
415
415
  f1: true,
416
416
  });
@@ -419,7 +419,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
419
419
  const cancellationTokenSource = ( (new CancellationTokenSource()));
420
420
  await that.progressService.withProgress({
421
421
  location: 15 ,
422
- title: ( localize(2445, 'Storing working changes...'))
422
+ title: ( localize(2417, 'Storing working changes...'))
423
423
  }, async () => {
424
424
  that.telemetryService.publicLog2('editSessions.store');
425
425
  await that.storeEditSession(true, cancellationTokenSource.token);
@@ -441,14 +441,14 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
441
441
  }
442
442
  this.telemetryService.publicLog2('editSessions.resume');
443
443
  performance.mark('code/willResumeEditSessionFromIdentifier');
444
- progress?.report({ message: ( localize(2446, 'Checking for pending cloud changes...')) });
444
+ progress?.report({ message: ( localize(2418, 'Checking for pending cloud changes...')) });
445
445
  const data = serializedData ? { content: serializedData, ref: '' } : await this.editSessionsStorageService.read('editSessions', ref);
446
446
  if (!data) {
447
447
  if (ref === undefined && !silent) {
448
- this.notificationService.info(( localize(2447, 'There are no changes to resume from the cloud.')));
448
+ this.notificationService.info(( localize(2419, 'There are no changes to resume from the cloud.')));
449
449
  }
450
450
  else if (ref !== undefined) {
451
- this.notificationService.warn(( localize(2448, 'Could not resume changes from the cloud for ID {0}.', ref)));
451
+ this.notificationService.warn(( localize(2420, 'Could not resume changes from the cloud for ID {0}.', ref)));
452
452
  }
453
453
  this.logService.info(ref !== undefined ? `Aborting resuming changes from cloud as no edit session content is available to be applied from ref ${ref}.` : `Aborting resuming edit session as no edit session content is available to be applied`);
454
454
  return;
@@ -458,7 +458,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
458
458
  ref = data.ref;
459
459
  if (editSession.version > EditSessionSchemaVersion) {
460
460
  this.notificationService.error(( localize(
461
- 2449,
461
+ 2421,
462
462
  "Please upgrade to a newer version of {0} to resume your working changes from the cloud.",
463
463
  this.productService.nameLong
464
464
  )));
@@ -475,12 +475,12 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
475
475
  type: Severity$1.Warning,
476
476
  message: conflictingChanges.length > 1 ?
477
477
  ( localize(
478
- 2450,
478
+ 2422,
479
479
  'Resuming your working changes from the cloud will overwrite the following {0} files. Do you want to proceed?',
480
480
  conflictingChanges.length
481
481
  )) :
482
482
  ( localize(
483
- 2451,
483
+ 2423,
484
484
  'Resuming your working changes from the cloud will overwrite {0}. Do you want to proceed?',
485
485
  basename(conflictingChanges[0].uri)
486
486
  )),
@@ -506,7 +506,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
506
506
  }
507
507
  catch (ex) {
508
508
  this.logService.error('Failed to resume edit session, reason: ', ( (ex.toString())));
509
- this.notificationService.error(( localize(2452, "Failed to resume your working changes from the cloud.")));
509
+ this.notificationService.error(( localize(2424, "Failed to resume your working changes from the cloud.")));
510
510
  }
511
511
  performance.mark('code/didResumeEditSessionFromIdentifier');
512
512
  }
@@ -535,9 +535,9 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
535
535
  this.configurationService.getValue('workbench.experimental.cloudChanges.partialMatches.enabled') === true) {
536
536
  if (!applyPartialMatch) {
537
537
  this.notificationService.prompt(Severity$1.Info, ( localize(
538
- 2453,
538
+ 2425,
539
539
  'You have pending working changes in the cloud for this workspace. Would you like to resume them?'
540
- )), [{ label: ( localize(2454, 'Resume')), run: () => this.resumeEditSession(ref, false, undefined, true) }]);
540
+ )), [{ label: ( localize(2426, 'Resume')), run: () => this.resumeEditSession(ref, false, undefined, true) }]);
541
541
  }
542
542
  else {
543
543
  folderRoot = f;
@@ -620,7 +620,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
620
620
  const contents = encodeBase64((await this.fileService.readFile(uri)).value);
621
621
  editSessionSize += contents.length;
622
622
  if (editSessionSize > this.editSessionsStorageService.SIZE_LIMIT) {
623
- this.notificationService.error(( localize(2455, 'Your working changes exceed the size limit and cannot be stored.')));
623
+ this.notificationService.error(( localize(2427, 'Your working changes exceed the size limit and cannot be stored.')));
624
624
  return undefined;
625
625
  }
626
626
  workingChanges.push({ type: ChangeType.Addition, fileType: FileType.File, contents: contents, relativeFilePath: relativeFilePath });
@@ -640,7 +640,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
640
640
  this.logService.info('Skipped storing working changes in the cloud as there are no edits to store.');
641
641
  if (fromStoreCommand) {
642
642
  this.notificationService.info(( localize(
643
- 2456,
643
+ 2428,
644
644
  'Skipped storing working changes in the cloud as there are no edits to store.'
645
645
  )));
646
646
  }
@@ -659,11 +659,11 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
659
659
  switch (ex.code) {
660
660
  case "TooLarge" :
661
661
  this.telemetryService.publicLog2('editSessions.upload.failed', { reason: 'TooLarge' });
662
- this.notificationService.error(( localize(2455, 'Your working changes exceed the size limit and cannot be stored.')));
662
+ this.notificationService.error(( localize(2427, 'Your working changes exceed the size limit and cannot be stored.')));
663
663
  break;
664
664
  default:
665
665
  this.telemetryService.publicLog2('editSessions.upload.failed', { reason: 'unknown' });
666
- this.notificationService.error(( localize(2457, 'Your working changes cannot be stored.')));
666
+ this.notificationService.error(( localize(2429, 'Your working changes cannot be stored.')));
667
667
  break;
668
668
  }
669
669
  }
@@ -695,11 +695,11 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
695
695
  if (this.hasEditSession()) {
696
696
  const disposables = ( (new DisposableStore()));
697
697
  const quickpick = disposables.add(this.quickInputService.createQuickPick());
698
- quickpick.placeholder = ( localize(2458, "Select whether to bring your working changes with you"));
698
+ quickpick.placeholder = ( localize(2430, "Select whether to bring your working changes with you"));
699
699
  quickpick.ok = false;
700
700
  quickpick.ignoreFocusOut = true;
701
- const withCloudChanges = { label: ( localize(2459, "Yes, continue with my working changes")) };
702
- const withoutCloudChanges = { label: ( localize(2460, "No, continue without my working changes")) };
701
+ const withCloudChanges = { label: ( localize(2431, "Yes, continue with my working changes")) };
702
+ const withoutCloudChanges = { label: ( localize(2432, "No, continue without my working changes")) };
703
703
  quickpick.items = [withCloudChanges, withoutCloudChanges];
704
704
  const continueWithCloudChanges = await ( (new Promise((resolve, reject) => {
705
705
  disposables.add(quickpick.onDidAccept(() => {
@@ -792,7 +792,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
792
792
  }
793
793
  async run(accessor) {
794
794
  const selection = await that.fileDialogService.showOpenDialog({
795
- title: ( localize(2461, 'Select a local folder to continue working in')),
795
+ title: ( localize(2433, 'Select a local folder to continue working in')),
796
796
  canSelectFolders: true,
797
797
  canSelectMany: false,
798
798
  canSelectFiles: false,
@@ -806,7 +806,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
806
806
  }
807
807
  }));
808
808
  if (getVirtualWorkspaceLocation(this.contextService.getWorkspace()) !== undefined && isNative) {
809
- this.generateStandaloneOptionCommand(openLocalFolderCommand.id, ( localize(2462, 'Continue Working in Existing Local Folder')), undefined, openLocalFolderCommand.precondition, undefined);
809
+ this.generateStandaloneOptionCommand(openLocalFolderCommand.id, ( localize(2434, 'Continue Working in Existing Local Folder')), undefined, openLocalFolderCommand.precondition, undefined);
810
810
  }
811
811
  }
812
812
  async pickContinueEditSessionDestination() {
@@ -816,7 +816,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
816
816
  ? this.contextService.getWorkspace().folders[0].name
817
817
  : ( (this.contextService.getWorkspace().folders.map((folder) => folder.name))).join(', ');
818
818
  quickPick.placeholder = ( localize(
819
- 2463,
819
+ 2435,
820
820
  "Select a development environment to continue working on {0} in",
821
821
  `'${workspaceContext}'`
822
822
  ));
@@ -877,7 +877,7 @@ let EditSessionsContribution = class EditSessionsContribution extends Disposable
877
877
  createPickItems() {
878
878
  const items = [...this.continueEditSessionOptions].filter((option) => option.when === undefined || this.contextKeyService.contextMatchesRules(option.when));
879
879
  if (getVirtualWorkspaceLocation(this.contextService.getWorkspace()) !== undefined && isNative) {
880
- items.push(( (new ContinueEditSessionItem('$(folder) ' + ( localize(2464, 'Open in Local Folder')), openLocalFolderCommand.id, ( localize(2465, 'Built-in'))))));
880
+ items.push(( (new ContinueEditSessionItem('$(folder) ' + ( localize(2436, 'Open in Local Folder')), openLocalFolderCommand.id, ( localize(2437, 'Built-in'))))));
881
881
  }
882
882
  const sortedItems = items.sort((item1, item2) => item1.label.localeCompare(item2.label));
883
883
  return sortedItems.concat({ type: 'separator' }, ( (new ContinueEditSessionItem(
@@ -928,7 +928,7 @@ class ContinueEditSessionItem {
928
928
  if (documentation !== undefined) {
929
929
  this.buttons = [{
930
930
  iconClass: infoButtonClass,
931
- tooltip: ( localize(2466, 'Learn More')),
931
+ tooltip: ( localize(2438, 'Learn More')),
932
932
  }];
933
933
  }
934
934
  }
@@ -937,7 +937,7 @@ const continueEditSessionExtPoint = ExtensionsRegistry.registerExtensionPoint({
937
937
  extensionPoint: 'continueEditSession',
938
938
  jsonSchema: {
939
939
  description: ( localize(
940
- 2467,
940
+ 2439,
941
941
  'Contributes options for continuing the current edit session in a different environment'
942
942
  )),
943
943
  type: 'array',
@@ -946,35 +946,35 @@ const continueEditSessionExtPoint = ExtensionsRegistry.registerExtensionPoint({
946
946
  properties: {
947
947
  command: {
948
948
  description: ( localize(
949
- 2468,
949
+ 2440,
950
950
  'Identifier of the command to execute. The command must be declared in the \'commands\'-section and return a URI representing a different environment where the current edit session can be continued.'
951
951
  )),
952
952
  type: 'string'
953
953
  },
954
954
  group: {
955
- description: ( localize(2469, 'Group into which this item belongs.')),
955
+ description: ( localize(2441, 'Group into which this item belongs.')),
956
956
  type: 'string'
957
957
  },
958
958
  qualifiedName: {
959
959
  description: ( localize(
960
- 2470,
960
+ 2442,
961
961
  'A fully qualified name for this item which is used for display in menus.'
962
962
  )),
963
963
  type: 'string'
964
964
  },
965
965
  description: {
966
966
  description: ( localize(
967
- 2471,
967
+ 2443,
968
968
  "The url, or a command that returns the url, to the option's documentation page."
969
969
  )),
970
970
  type: 'string'
971
971
  },
972
972
  remoteGroup: {
973
- description: ( localize(2472, 'Group into which this item belongs in the remote indicator.')),
973
+ description: ( localize(2444, 'Group into which this item belongs in the remote indicator.')),
974
974
  type: 'string'
975
975
  },
976
976
  when: {
977
- description: ( localize(2473, 'Condition which must be true to show this item.')),
977
+ description: ( localize(2445, 'Condition which must be true to show this item.')),
978
978
  type: 'string'
979
979
  }
980
980
  },
@@ -991,16 +991,16 @@ workbenchRegistry.registerWorkbenchContribution(EditSessionsContribution, 3 );
991
991
  enum: ['onShutdown', 'off'],
992
992
  enumDescriptions: [
993
993
  ( localize(
994
- 2474,
994
+ 2446,
995
995
  "Automatically store current working changes in the cloud on window close."
996
996
  )),
997
- ( localize(2475, "Never attempt to automatically store working changes in the cloud."))
997
+ ( localize(2447, "Never attempt to automatically store working changes in the cloud."))
998
998
  ],
999
999
  'type': 'string',
1000
1000
  'tags': ['experimental', 'usesOnlineServices'],
1001
1001
  'default': 'off',
1002
1002
  'markdownDescription': ( localize(
1003
- 2476,
1003
+ 2448,
1004
1004
  "Controls whether to automatically store available working changes in the cloud for the current workspace. This setting has no effect in the web."
1005
1005
  )),
1006
1006
  },
@@ -1008,16 +1008,16 @@ workbenchRegistry.registerWorkbenchContribution(EditSessionsContribution, 3 );
1008
1008
  enum: ['onReload', 'off'],
1009
1009
  enumDescriptions: [
1010
1010
  ( localize(
1011
- 2477,
1011
+ 2449,
1012
1012
  "Automatically resume available working changes from the cloud on window reload."
1013
1013
  )),
1014
- ( localize(2478, "Never attempt to resume working changes from the cloud."))
1014
+ ( localize(2450, "Never attempt to resume working changes from the cloud."))
1015
1015
  ],
1016
1016
  'type': 'string',
1017
1017
  'tags': ['usesOnlineServices'],
1018
1018
  'default': 'onReload',
1019
1019
  'markdownDescription': ( localize(
1020
- 2479,
1020
+ 2451,
1021
1021
  "Controls whether to automatically resume available working changes stored in the cloud for the current workspace."
1022
1022
  )),
1023
1023
  },
@@ -1025,11 +1025,11 @@ workbenchRegistry.registerWorkbenchContribution(EditSessionsContribution, 3 );
1025
1025
  enum: ['prompt', 'off'],
1026
1026
  enumDescriptions: [
1027
1027
  ( localize(
1028
- 2480,
1028
+ 2452,
1029
1029
  'Prompt the user to sign in to store working changes in the cloud with Continue Working On.'
1030
1030
  )),
1031
1031
  ( localize(
1032
- 2481,
1032
+ 2453,
1033
1033
  'Do not store working changes in the cloud with Continue Working On unless the user has already turned on Cloud Changes.'
1034
1034
  ))
1035
1035
  ],
@@ -1037,7 +1037,7 @@ workbenchRegistry.registerWorkbenchContribution(EditSessionsContribution, 3 );
1037
1037
  tags: ['usesOnlineServices'],
1038
1038
  default: 'prompt',
1039
1039
  markdownDescription: ( localize(
1040
- 2482,
1040
+ 2454,
1041
1041
  'Controls whether to prompt the user to store working changes in the cloud when using Continue Working On.'
1042
1042
  ))
1043
1043
  },
@@ -1046,7 +1046,7 @@ workbenchRegistry.registerWorkbenchContribution(EditSessionsContribution, 3 );
1046
1046
  'tags': ['experimental', 'usesOnlineServices'],
1047
1047
  'default': false,
1048
1048
  'markdownDescription': ( localize(
1049
- 2483,
1049
+ 2455,
1050
1050
  "Controls whether to surface cloud changes which partially match the current session."
1051
1051
  ))
1052
1052
  }