@codingame/monaco-vscode-user-data-profile-service-override 8.0.4 → 9.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.
Files changed (19) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/base/browser/ui/radio/radio.js +2 -2
  3. package/vscode/src/vs/platform/userDataSync/common/keybindingsSync.js +2 -2
  4. package/vscode/src/vs/platform/userDataSync/common/settingsSync.js +1 -1
  5. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/media/userDataProfilesEditor.css.js +1 -1
  6. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfile.contribution.js +1 -6
  7. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfile.js +73 -372
  8. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfileActions.js +6 -110
  9. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilesEditor.js +151 -69
  10. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilesEditorModel.js +93 -56
  11. package/vscode/src/vs/workbench/services/userDataProfile/browser/extensionsResource.js +5 -5
  12. package/vscode/src/vs/workbench/services/userDataProfile/browser/globalStateResource.js +2 -17
  13. package/vscode/src/vs/workbench/services/userDataProfile/browser/keybindingsResource.js +1 -1
  14. package/vscode/src/vs/workbench/services/userDataProfile/browser/settingsResource.js +1 -1
  15. package/vscode/src/vs/workbench/services/userDataProfile/browser/snippetsResource.js +2 -2
  16. package/vscode/src/vs/workbench/services/userDataProfile/browser/tasksResource.js +1 -1
  17. package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService.js +67 -887
  18. package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileManagement.js +8 -8
  19. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilePreview.js +0 -24
@@ -7,6 +7,7 @@ import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/c
7
7
  import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
8
8
  import { ProfileResourceType, isUserDataProfile, toUserDataProfile } from 'vscode/vscode/vs/platform/userDataProfile/common/userDataProfile';
9
9
  import { IUserDataProfilesService } from 'vscode/vscode/vs/platform/userDataProfile/common/userDataProfile.service';
10
+ import { isProfileURL } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile';
10
11
  import { IUserDataProfileManagementService, IUserDataProfileService, IUserDataProfileImportExportService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service';
11
12
  import { Disposable, toDisposable, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
12
13
  import { URI } from 'vscode/vscode/vs/base/common/uri';
@@ -32,6 +33,9 @@ import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/c
32
33
  import { CONFIG_NEW_WINDOW_PROFILE } from 'vscode/vscode/vs/workbench/common/configuration';
33
34
  import { ResourceMap } from 'vscode/vscode/vs/base/common/map';
34
35
  import { getErrorMessage } from 'vscode/vscode/vs/base/common/errors';
36
+ import { isWeb } from 'vscode/vscode/vs/base/common/platform';
37
+ import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
38
+ import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener.service';
35
39
 
36
40
  var UserDataProfilesEditorModel_1;
37
41
  function isProfileResourceTypeElement(element) {
@@ -122,15 +126,15 @@ let AbstractUserDataProfileElement = class AbstractUserDataProfileElement extend
122
126
  }
123
127
  validate() {
124
128
  if (!this.name) {
125
- this.message = ( localize(11407, "Profile name is required and must be a non-empty value."));
129
+ this.message = ( localize(11488, "Profile name is required and must be a non-empty value."));
126
130
  return;
127
131
  }
128
132
  if (this.shouldValidateName() && this.name !== this.getInitialName() && ( (this.userDataProfilesService.profiles.some(p => p.name === this.name)))) {
129
- this.message = ( localize(11408, "Profile with name {0} already exists.", this.name));
133
+ this.message = ( localize(11489, "Profile with name {0} already exists.", this.name));
130
134
  return;
131
135
  }
132
136
  if (this.flags && this.flags.settings && this.flags.keybindings && this.flags.tasks && this.flags.snippets && this.flags.extensions) {
133
- this.message = ( localize(11409, "The profile should contain at least one configuration."));
137
+ this.message = ( localize(11490, "The profile should contain at least one configuration."));
134
138
  return;
135
139
  }
136
140
  this.message = undefined;
@@ -153,7 +157,7 @@ let AbstractUserDataProfileElement = class AbstractUserDataProfileElement extend
153
157
  checkbox: undefined,
154
158
  resourceType: r,
155
159
  action: children.length
156
- ? ( (new Action('_open', ( localize(11410, "Open to the Side")), ThemeIcon.asClassName(Codicon.goToFile), true, () => children[0]?.action?.run())))
160
+ ? ( (new Action('_open', ( localize(11491, "Open to the Side")), ThemeIcon.asClassName(Codicon.goToFile), true, () => children[0]?.action?.run())))
157
161
  : undefined
158
162
  };
159
163
  }))));
@@ -194,7 +198,7 @@ let AbstractUserDataProfileElement = class AbstractUserDataProfileElement extend
194
198
  label: child.label?.label ?? '',
195
199
  resource: URI.revive(child.resourceUri),
196
200
  icon: child.themeIcon,
197
- action: ( (new Action('_openChild', ( localize(11410, "Open to the Side")), ThemeIcon.asClassName(Codicon.goToFile), true, async () => {
201
+ action: ( (new Action('_openChild', ( localize(11491, "Open to the Side")), ThemeIcon.asClassName(Codicon.goToFile), true, async () => {
198
202
  if (child.parent.type === ProfileResourceType.Extensions) {
199
203
  await this.commandService.executeCommand('extension.open', child.handle, undefined, true, undefined, true);
200
204
  }
@@ -266,16 +270,20 @@ let UserDataProfileElement = class UserDataProfileElement extends AbstractUserDa
266
270
  }
267
271
  }));
268
272
  this._register(this.userDataProfileService.onDidChangeCurrentProfile(() => this.active = this.userDataProfileService.currentProfile.id === this.profile.id));
269
- this._register(this.userDataProfilesService.onDidChangeProfiles(() => {
270
- const profile = this.userDataProfilesService.profiles.find(p => p.id === this.profile.id);
273
+ this._register(this.userDataProfilesService.onDidChangeProfiles(({ updated }) => {
274
+ const profile = updated.find(p => p.id === this.profile.id);
271
275
  if (profile) {
272
276
  this._profile = profile;
273
- this.name = profile.name;
274
- this.icon = profile.icon;
275
- this.flags = profile.useDefaultFlags;
277
+ this.reset();
278
+ this._onDidChange.fire({ profile: true });
276
279
  }
277
280
  }));
278
281
  }
282
+ reset() {
283
+ this.name = this._profile.name;
284
+ this.icon = this._profile.icon;
285
+ this.flags = this._profile.useDefaultFlags;
286
+ }
279
287
  async toggleNewWindowProfile() {
280
288
  if (this._isNewWindowProfile) {
281
289
  await this.configurationService.updateValue(CONFIG_NEW_WINDOW_PROFILE, null);
@@ -291,6 +299,14 @@ let UserDataProfileElement = class UserDataProfileElement extends AbstractUserDa
291
299
  this._onDidChange.fire({ newWindowProfile: true });
292
300
  }
293
301
  }
302
+ async toggleCurrentWindowProfile() {
303
+ if (this.userDataProfileService.currentProfile.id === this.profile.id) {
304
+ await this.userDataProfileManagementService.switchProfile(this.userDataProfilesService.defaultProfile);
305
+ }
306
+ else {
307
+ await this.userDataProfileManagementService.switchProfile(this.profile);
308
+ }
309
+ }
294
310
  async doSave() {
295
311
  await this.saveProfile(this.profile);
296
312
  }
@@ -387,7 +403,7 @@ let NewProfileElement = class NewProfileElement extends AbstractUserDataProfileE
387
403
  }
388
404
  if (isUserDataProfile(this.copyFrom)) {
389
405
  if (this.defaultName === this.name) {
390
- this.name = this.defaultName = ( localize(11411, "{0} (Copy)", this.copyFrom.name));
406
+ this.name = this.defaultName = ( localize(11492, "{0} (Copy)", this.copyFrom.name));
391
407
  }
392
408
  if (this.defaultIcon === this.icon) {
393
409
  this.icon = this.defaultIcon = this.copyFrom.icon;
@@ -401,7 +417,7 @@ let NewProfileElement = class NewProfileElement extends AbstractUserDataProfileE
401
417
  return;
402
418
  }
403
419
  if (this.defaultName === this.name) {
404
- this.name = this.defaultName = ( localize(11412, "Untitled"));
420
+ this.name = this.defaultName = ( localize(11493, "Untitled"));
405
421
  }
406
422
  if (this.defaultIcon === this.icon) {
407
423
  this.icon = this.defaultIcon = undefined;
@@ -570,8 +586,7 @@ let UserDataProfilesEditorModel = class UserDataProfilesEditorModel extends Edit
570
586
  return a.name.localeCompare(b.name);
571
587
  });
572
588
  }
573
- get templates() { return this._templates ?? []; }
574
- constructor(userDataProfileService, userDataProfilesService, userDataProfileManagementService, userDataProfileImportExportService, dialogService, telemetryService, hostService, instantiationService) {
589
+ constructor(userDataProfileService, userDataProfilesService, userDataProfileManagementService, userDataProfileImportExportService, dialogService, telemetryService, hostService, productService, openerService, instantiationService) {
575
590
  super();
576
591
  this.userDataProfileService = userDataProfileService;
577
592
  this.userDataProfilesService = userDataProfilesService;
@@ -580,6 +595,8 @@ let UserDataProfilesEditorModel = class UserDataProfilesEditorModel extends Edit
580
595
  this.dialogService = dialogService;
581
596
  this.telemetryService = telemetryService;
582
597
  this.hostService = hostService;
598
+ this.productService = productService;
599
+ this.openerService = openerService;
583
600
  this.instantiationService = instantiationService;
584
601
  this._profiles = [];
585
602
  this._onDidChange = this._register(( (new Emitter())));
@@ -613,38 +630,32 @@ let UserDataProfilesEditorModel = class UserDataProfilesEditorModel extends Edit
613
630
  this._onDidChange.fire(undefined);
614
631
  }
615
632
  }
616
- async resolve() {
617
- await super.resolve();
618
- this._templates = await this.userDataProfileManagementService.getBuiltinProfileTemplates();
633
+ getTemplates() {
634
+ if (!this.templates) {
635
+ this.templates = this.userDataProfileManagementService.getBuiltinProfileTemplates();
636
+ }
637
+ return this.templates;
619
638
  }
620
639
  createProfileElement(profile) {
621
640
  const disposables = ( (new DisposableStore()));
622
- const activateAction = disposables.add(( (new Action('userDataProfile.activate', ( localize(11413, "Use for Current Window")), ThemeIcon.asClassName(Codicon.check), true, () => this.userDataProfileManagementService.switchProfile(profileElement.profile)))));
623
- const copyFromProfileAction = disposables.add(( (new Action('userDataProfile.copyFromProfile', ( localize(11414, "Duplicate...")), ThemeIcon.asClassName(Codicon.copy), true, () => this.createNewProfile(profileElement.profile)))));
624
- const exportAction = disposables.add(( (new Action('userDataProfile.export', ( localize(11415, "Export...")), ThemeIcon.asClassName(Codicon.export), true, () => this.exportProfile(profileElement.profile)))));
625
- const deleteAction = disposables.add(( (new Action('userDataProfile.delete', ( localize(11416, "Delete")), ThemeIcon.asClassName(Codicon.trash), true, () => this.removeProfile(profileElement.profile)))));
626
- const newWindowAction = disposables.add(( (new Action('userDataProfile.newWindow', ( localize(11417, "Open New Window with this Profile")), ThemeIcon.asClassName(Codicon.emptyWindow), true, () => this.openWindow(profileElement.profile)))));
627
- const useAsNewWindowProfileAction = disposables.add(( (new Action('userDataProfile.useAsNewWindowProfile', ( localize(11418, "Use for New Windows")), undefined, true, () => profileElement.toggleNewWindowProfile()))));
641
+ const activateAction = disposables.add(( (new Action('userDataProfile.activate', ( localize(11494, "Use this Profile for Current Window")), ThemeIcon.asClassName(Codicon.check), true, () => this.userDataProfileManagementService.switchProfile(profileElement.profile)))));
642
+ const copyFromProfileAction = disposables.add(( (new Action('userDataProfile.copyFromProfile', ( localize(11495, "Duplicate...")), ThemeIcon.asClassName(Codicon.copy), true, () => this.createNewProfile(profileElement.profile)))));
643
+ const exportAction = disposables.add(( (new Action('userDataProfile.export', ( localize(11496, "Export...")), ThemeIcon.asClassName(Codicon.export), true, () => this.userDataProfileImportExportService.exportProfile(profile)))));
644
+ const deleteAction = disposables.add(( (new Action('userDataProfile.delete', ( localize(11497, "Delete")), ThemeIcon.asClassName(Codicon.trash), true, () => this.removeProfile(profileElement.profile)))));
645
+ const newWindowAction = disposables.add(( (new Action('userDataProfile.newWindow', ( localize(11498, "Open New Window with this Profile")), ThemeIcon.asClassName(Codicon.emptyWindow), true, () => this.openWindow(profileElement.profile)))));
628
646
  const primaryActions = [];
647
+ primaryActions.push(activateAction);
629
648
  primaryActions.push(newWindowAction);
630
- if (!profile.isDefault) {
631
- primaryActions.push(deleteAction);
632
- }
633
649
  const secondaryActions = [];
634
- secondaryActions.push(activateAction);
635
- secondaryActions.push(useAsNewWindowProfileAction);
636
- secondaryActions.push(( (new Separator())));
637
650
  secondaryActions.push(copyFromProfileAction);
638
651
  secondaryActions.push(exportAction);
652
+ if (!profile.isDefault) {
653
+ secondaryActions.push(( (new Separator())));
654
+ secondaryActions.push(deleteAction);
655
+ }
639
656
  const profileElement = disposables.add(this.instantiationService.createInstance(UserDataProfileElement, profile, [[], []], [primaryActions, secondaryActions]));
640
- activateAction.checked = this.userDataProfileService.currentProfile.id === profileElement.profile.id;
641
- disposables.add(this.userDataProfileService.onDidChangeCurrentProfile(() => activateAction.checked = this.userDataProfileService.currentProfile.id === profileElement.profile.id));
642
- useAsNewWindowProfileAction.checked = profileElement.isNewWindowProfile;
643
- disposables.add(profileElement.onDidChange(e => {
644
- if (e.newWindowProfile) {
645
- useAsNewWindowProfileAction.checked = profileElement.isNewWindowProfile;
646
- }
647
- }));
657
+ activateAction.enabled = this.userDataProfileService.currentProfile.id !== profileElement.profile.id;
658
+ disposables.add(this.userDataProfileService.onDidChangeCurrentProfile(() => activateAction.enabled = this.userDataProfileService.currentProfile.id !== profileElement.profile.id));
648
659
  return [profileElement, disposables];
649
660
  }
650
661
  async createNewProfile(copyFrom) {
@@ -652,11 +663,11 @@ let UserDataProfilesEditorModel = class UserDataProfilesEditorModel extends Edit
652
663
  const result = await this.dialogService.confirm({
653
664
  type: 'info',
654
665
  message: ( localize(
655
- 11419,
666
+ 11499,
656
667
  "A new profile is already being created. Do you want to discard it and create a new one?"
657
668
  )),
658
- primaryButton: ( localize(11420, "Discard & Create")),
659
- cancelButton: ( localize(11421, "Cancel"))
669
+ primaryButton: ( localize(11500, "Discard & Create")),
670
+ cancelButton: ( localize(11501, "Cancel"))
660
671
  });
661
672
  if (!result.confirmed) {
662
673
  return;
@@ -676,16 +687,29 @@ let UserDataProfilesEditorModel = class UserDataProfilesEditorModel extends Edit
676
687
  const disposables = ( (new DisposableStore()));
677
688
  const cancellationTokenSource = ( (new CancellationTokenSource()));
678
689
  disposables.add(toDisposable(() => cancellationTokenSource.dispose(true)));
679
- const createAction = disposables.add(( (new Action('userDataProfile.create', ( localize(11422, "Create")), undefined, true, () => this.saveNewProfile(false, cancellationTokenSource.token)))));
680
- const cancelAction = disposables.add(( (new Action('userDataProfile.cancel', ( localize(11421, "Cancel")), ThemeIcon.asClassName(Codicon.trash), true, () => this.discardNewProfile()))));
681
- const previewProfileAction = disposables.add(( (new Action('userDataProfile.preview', ( localize(11423, "Preview")), ThemeIcon.asClassName(Codicon.openPreview), true, () => this.previewNewProfile(cancellationTokenSource.token)))));
682
- this.newProfileElement = disposables.add(this.instantiationService.createInstance(NewProfileElement, copyFrom ? '' : ( localize(11412, "Untitled")), copyFrom, [[createAction], [cancelAction, previewProfileAction]], [[cancelAction], []]));
690
+ const primaryActions = [];
691
+ const secondaryActions = [];
692
+ const createAction = disposables.add(( (new Action('userDataProfile.create', ( localize(11502, "Create")), undefined, true, () => this.saveNewProfile(false, cancellationTokenSource.token)))));
693
+ primaryActions.push(createAction);
694
+ if (isWeb && copyFrom instanceof URI && isProfileURL(copyFrom)) {
695
+ primaryActions.push(( (new Action('userDataProfile.createInDesktop', ( localize(11503, "Create in {0}", this.productService.nameLong)), undefined, true, () => this.openerService.open(copyFrom, { openExternal: true })))));
696
+ }
697
+ const cancelAction = disposables.add(( (new Action('userDataProfile.cancel', ( localize(11501, "Cancel")), ThemeIcon.asClassName(Codicon.trash), true, () => this.discardNewProfile()))));
698
+ secondaryActions.push(cancelAction);
699
+ const previewProfileAction = disposables.add(( (new Action('userDataProfile.preview', ( localize(11504, "Preview")), ThemeIcon.asClassName(Codicon.openPreview), true, () => this.previewNewProfile(cancellationTokenSource.token)))));
700
+ if (!isWeb) {
701
+ secondaryActions.push(previewProfileAction);
702
+ }
703
+ const exportAction = disposables.add(( (new Action('userDataProfile.export', ( localize(11496, "Export...")), ThemeIcon.asClassName(Codicon.export), isUserDataProfile(copyFrom), () => this.exportNewProfile(cancellationTokenSource.token)))));
704
+ this.newProfileElement = disposables.add(this.instantiationService.createInstance(NewProfileElement, copyFrom ? '' : ( localize(11493, "Untitled")), copyFrom, [primaryActions, secondaryActions], [[cancelAction], [exportAction]]));
683
705
  const updateCreateActionLabel = () => {
684
- if (this.newProfileElement?.copyFrom && ( (this.userDataProfilesService.profiles.some(p => p.name === this.newProfileElement?.name)))) {
685
- createAction.label = ( localize(11424, "Replace"));
686
- }
687
- else {
688
- createAction.label = ( localize(11422, "Create"));
706
+ if (createAction.enabled) {
707
+ if (this.newProfileElement?.copyFrom && ( (this.userDataProfilesService.profiles.some(p => p.name === this.newProfileElement?.name)))) {
708
+ createAction.label = ( localize(11505, "Replace"));
709
+ }
710
+ else {
711
+ createAction.label = ( localize(11502, "Create"));
712
+ }
689
713
  }
690
714
  };
691
715
  updateCreateActionLabel();
@@ -698,6 +722,7 @@ let UserDataProfilesEditorModel = class UserDataProfilesEditorModel extends Edit
698
722
  }
699
723
  if (e.name || e.copyFrom) {
700
724
  updateCreateActionLabel();
725
+ exportAction.enabled = isUserDataProfile(this.newProfileElement?.copyFrom);
701
726
  }
702
727
  }));
703
728
  disposables.add(this.userDataProfilesService.onDidChangeProfiles((e) => {
@@ -732,6 +757,19 @@ let UserDataProfilesEditorModel = class UserDataProfilesEditorModel extends Edit
732
757
  await this.openWindow(profile);
733
758
  }
734
759
  }
760
+ async exportNewProfile(token) {
761
+ if (!this.newProfileElement) {
762
+ return;
763
+ }
764
+ if (!isUserDataProfile(this.newProfileElement.copyFrom)) {
765
+ return;
766
+ }
767
+ const profile = toUserDataProfile(generateUuid(), this.newProfileElement.name, this.newProfileElement.copyFrom.location, this.newProfileElement.copyFrom.cacheHome, {
768
+ icon: this.newProfileElement.icon,
769
+ useDefaultFlags: this.newProfileElement.flags,
770
+ }, this.userDataProfilesService.defaultProfile);
771
+ await this.userDataProfileImportExportService.exportProfile(profile, this.newProfileElement.copyFlags);
772
+ }
735
773
  async saveNewProfile(transient, token) {
736
774
  if (!this.newProfileElement) {
737
775
  return undefined;
@@ -823,9 +861,9 @@ let UserDataProfilesEditorModel = class UserDataProfilesEditorModel extends Edit
823
861
  async removeProfile(profile) {
824
862
  const result = await this.dialogService.confirm({
825
863
  type: 'info',
826
- message: ( localize(11425, "Are you sure you want to delete the profile '{0}'?", profile.name)),
827
- primaryButton: ( localize(11416, "Delete")),
828
- cancelButton: ( localize(11421, "Cancel"))
864
+ message: ( localize(11506, "Are you sure you want to delete the profile '{0}'?", profile.name)),
865
+ primaryButton: ( localize(11497, "Delete")),
866
+ cancelButton: ( localize(11501, "Cancel"))
829
867
  });
830
868
  if (result.confirmed) {
831
869
  await this.userDataProfileManagementService.removeProfile(profile);
@@ -834,9 +872,6 @@ let UserDataProfilesEditorModel = class UserDataProfilesEditorModel extends Edit
834
872
  async openWindow(profile) {
835
873
  await this.hostService.openWindow({ forceProfile: profile.name });
836
874
  }
837
- async exportProfile(profile) {
838
- return this.userDataProfileImportExportService.exportProfile(profile);
839
- }
840
875
  };
841
876
  UserDataProfilesEditorModel = UserDataProfilesEditorModel_1 = ( (__decorate([
842
877
  ( (__param(0, IUserDataProfileService))),
@@ -846,7 +881,9 @@ UserDataProfilesEditorModel = UserDataProfilesEditorModel_1 = ( (__decorate([
846
881
  ( (__param(4, IDialogService))),
847
882
  ( (__param(5, ITelemetryService))),
848
883
  ( (__param(6, IHostService))),
849
- ( (__param(7, IInstantiationService)))
884
+ ( (__param(7, IProductService))),
885
+ ( (__param(8, IOpenerService))),
886
+ ( (__param(9, IInstantiationService)))
850
887
  ], UserDataProfilesEditorModel)));
851
888
 
852
889
  export { AbstractUserDataProfileElement, NewProfileElement, UserDataProfileElement, UserDataProfilesEditorModel, isProfileResourceChildElement, isProfileResourceTypeElement };
@@ -170,7 +170,7 @@ let ExtensionsResource = class ExtensionsResource {
170
170
  return;
171
171
  }
172
172
  progress?.(( localize(
173
- 8800,
173
+ 8851,
174
174
  "Installing extension {0}...",
175
175
  installExtensionInfo.extension.displayName ?? installExtensionInfo.extension.identifier.id
176
176
  )));
@@ -262,7 +262,7 @@ class ExtensionsResourceTreeItem {
262
262
  constructor() {
263
263
  this.type = ProfileResourceType.Extensions;
264
264
  this.handle = ProfileResourceType.Extensions;
265
- this.label = { label: ( localize(8801, "Extensions")) };
265
+ this.label = { label: ( localize(8852, "Extensions")) };
266
266
  this.collapsibleState = TreeItemCollapsibleState.Expanded;
267
267
  this.contextValue = ProfileResourceType.Extensions;
268
268
  this.excludedExtensions = ( (new Set()));
@@ -275,7 +275,7 @@ class ExtensionsResourceTreeItem {
275
275
  handle: e.identifier.id.toLowerCase(),
276
276
  parent: this,
277
277
  label: { label: e.displayName || e.identifier.id },
278
- description: e.disabled ? ( localize(8802, "Disabled")) : undefined,
278
+ description: e.disabled ? ( localize(8853, "Disabled")) : undefined,
279
279
  collapsibleState: TreeItemCollapsibleState.None,
280
280
  checkbox: that.checkbox ? {
281
281
  get isChecked() { return !( (that.excludedExtensions.has(e.identifier.id.toLowerCase()))); },
@@ -287,9 +287,9 @@ class ExtensionsResourceTreeItem {
287
287
  that.excludedExtensions.add(e.identifier.id.toLowerCase());
288
288
  }
289
289
  },
290
- tooltip: ( localize(8803, "Select {0} Extension", e.displayName || e.identifier.id)),
290
+ tooltip: ( localize(8854, "Select {0} Extension", e.displayName || e.identifier.id)),
291
291
  accessibilityInformation: {
292
- label: ( localize(8803, "Select {0} Extension", e.displayName || e.identifier.id)),
292
+ label: ( localize(8854, "Select {0} Extension", e.displayName || e.identifier.id)),
293
293
  }
294
294
  } : undefined,
295
295
  themeIcon: Codicon.extensions,
@@ -85,7 +85,7 @@ class GlobalStateResourceTreeItem {
85
85
  this.uriIdentityService = uriIdentityService;
86
86
  this.type = ProfileResourceType.GlobalState;
87
87
  this.handle = ProfileResourceType.GlobalState;
88
- this.label = { label: ( localize(8795, "UI State")) };
88
+ this.label = { label: ( localize(8846, "UI State")) };
89
89
  this.collapsibleState = TreeItemCollapsibleState.Collapsed;
90
90
  }
91
91
  async getChildren() {
@@ -126,20 +126,5 @@ GlobalStateResourceExportTreeItem = ( (__decorate([
126
126
  ( (__param(2, IUriIdentityService))),
127
127
  ( (__param(3, IInstantiationService)))
128
128
  ], GlobalStateResourceExportTreeItem)));
129
- let GlobalStateResourceImportTreeItem = class GlobalStateResourceImportTreeItem extends GlobalStateResourceTreeItem {
130
- constructor(content, resource, uriIdentityService) {
131
- super(resource, uriIdentityService);
132
- this.content = content;
133
- }
134
- async getContent() {
135
- return this.content;
136
- }
137
- isFromDefaultProfile() {
138
- return false;
139
- }
140
- };
141
- GlobalStateResourceImportTreeItem = ( (__decorate([
142
- ( (__param(2, IUriIdentityService)))
143
- ], GlobalStateResourceImportTreeItem)));
144
129
 
145
- export { GlobalStateResource, GlobalStateResourceExportTreeItem, GlobalStateResourceImportTreeItem, GlobalStateResourceInitializer, GlobalStateResourceTreeItem };
130
+ export { GlobalStateResource, GlobalStateResourceExportTreeItem, GlobalStateResourceInitializer, GlobalStateResourceTreeItem };
@@ -81,7 +81,7 @@ let KeybindingsResourceTreeItem = class KeybindingsResourceTreeItem {
81
81
  this.instantiationService = instantiationService;
82
82
  this.type = ProfileResourceType.Keybindings;
83
83
  this.handle = ProfileResourceType.Keybindings;
84
- this.label = { label: ( localize(8796, "Keyboard Shortcuts")) };
84
+ this.label = { label: ( localize(8847, "Keyboard Shortcuts")) };
85
85
  this.collapsibleState = TreeItemCollapsibleState.Expanded;
86
86
  }
87
87
  isFromDefaultProfile() {
@@ -102,7 +102,7 @@ let SettingsResourceTreeItem = class SettingsResourceTreeItem {
102
102
  this.instantiationService = instantiationService;
103
103
  this.type = ProfileResourceType.Settings;
104
104
  this.handle = ProfileResourceType.Settings;
105
- this.label = { label: ( localize(8794, "Settings")) };
105
+ this.label = { label: ( localize(8845, "Settings")) };
106
106
  this.collapsibleState = TreeItemCollapsibleState.Expanded;
107
107
  }
108
108
  async getChildren() {
@@ -93,7 +93,7 @@ let SnippetsResourceTreeItem = class SnippetsResourceTreeItem {
93
93
  this.uriIdentityService = uriIdentityService;
94
94
  this.type = ProfileResourceType.Snippets;
95
95
  this.handle = ( (this.profile.snippetsHome.toString()));
96
- this.label = { label: ( localize(8798, "Snippets")) };
96
+ this.label = { label: ( localize(8849, "Snippets")) };
97
97
  this.collapsibleState = TreeItemCollapsibleState.Collapsed;
98
98
  this.excludedSnippets = ( (new ResourceSet()));
99
99
  }
@@ -121,7 +121,7 @@ let SnippetsResourceTreeItem = class SnippetsResourceTreeItem {
121
121
  },
122
122
  accessibilityInformation: {
123
123
  label: ( localize(
124
- 8799,
124
+ 8850,
125
125
  "Select Snippet {0}",
126
126
  this.uriIdentityService.extUri.basename(resource)
127
127
  )),
@@ -80,7 +80,7 @@ let TasksResourceTreeItem = class TasksResourceTreeItem {
80
80
  this.instantiationService = instantiationService;
81
81
  this.type = ProfileResourceType.Tasks;
82
82
  this.handle = ProfileResourceType.Tasks;
83
- this.label = { label: ( localize(8797, "Tasks")) };
83
+ this.label = { label: ( localize(8848, "Tasks")) };
84
84
  this.collapsibleState = TreeItemCollapsibleState.Expanded;
85
85
  }
86
86
  async getChildren() {