@codingame/monaco-vscode-user-data-profile-service-override 37.2.0 → 37.3.1

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/platform/userDataProfile/browser/userDataProfile.js +3 -3
  3. package/vscode/src/vs/platform/userDataProfile/common/userDataProfileStorageService.js +2 -2
  4. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfile.js +38 -33
  5. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfileActions.js +3 -3
  6. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilesEditor.js +90 -90
  7. package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilesEditorModel.js +41 -35
  8. package/vscode/src/vs/workbench/services/userData/browser/userDataInit.js +12 -6
  9. package/vscode/src/vs/workbench/services/userDataProfile/browser/extensionsResource.js +24 -18
  10. package/vscode/src/vs/workbench/services/userDataProfile/browser/globalStateResource.js +1 -1
  11. package/vscode/src/vs/workbench/services/userDataProfile/browser/keybindingsResource.js +1 -1
  12. package/vscode/src/vs/workbench/services/userDataProfile/browser/mcpProfileResource.js +1 -1
  13. package/vscode/src/vs/workbench/services/userDataProfile/browser/settingsResource.js +1 -1
  14. package/vscode/src/vs/workbench/services/userDataProfile/browser/snippetsResource.js +4 -4
  15. package/vscode/src/vs/workbench/services/userDataProfile/browser/tasksResource.js +1 -1
  16. package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService.js +40 -40
  17. package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileManagement.js +8 -8
  18. package/vscode/src/vs/workbench/services/userDataSync/browser/userDataSyncInit.js +2 -2
  19. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSyncUtil.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-user-data-profile-service-override",
3
- "version": "37.2.0",
3
+ "version": "37.3.1",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - user-data-profile service-override",
6
6
  "keywords": [],
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-api": "37.2.0"
18
+ "@codingame/monaco-vscode-api": "37.3.1"
19
19
  },
20
20
  "main": "index.js",
21
21
  "module": "index.js",
@@ -15,9 +15,9 @@ let BrowserUserDataProfilesService = class BrowserUserDataProfilesService extend
15
15
  this._register(this.changesBroadcastChannel.onDidReceiveData(changes => {
16
16
  try {
17
17
  this._profilesObject = undefined;
18
- const added = ( changes.added.map(p => reviveProfile(p, this.profilesHome.scheme)));
19
- const removed = ( changes.removed.map(p => reviveProfile(p, this.profilesHome.scheme)));
20
- const updated = ( changes.updated.map(p => reviveProfile(p, this.profilesHome.scheme)));
18
+ const added = changes.added.map(p => reviveProfile(p, this.profilesHome.scheme));
19
+ const removed = changes.removed.map(p => reviveProfile(p, this.profilesHome.scheme));
20
+ const updated = changes.updated.map(p => reviveProfile(p, this.profilesHome.scheme));
21
21
  this.updateTransientProfiles(
22
22
  added.filter(a => a.isTransient),
23
23
  removed.filter(a => a.isTransient),
@@ -73,12 +73,12 @@ let AbstractUserDataProfileStorageService = class AbstractUserDataProfileStorage
73
73
  return result;
74
74
  }
75
75
  writeItems(storageService, items, target, scope = StorageScope.PROFILE) {
76
- storageService.storeAll(( Array.from(items.entries()).map(([key, value]) => ({
76
+ storageService.storeAll(Array.from(items.entries()).map(([key, value]) => ({
77
77
  key,
78
78
  value,
79
79
  scope,
80
80
  target
81
- }))), true);
81
+ })), true);
82
82
  }
83
83
  };
84
84
  AbstractUserDataProfileStorageService = ( __decorate([( __param(1, IStorageService))], AbstractUserDataProfileStorageService));
@@ -110,7 +110,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
110
110
  }
111
111
  registerEditor() {
112
112
  ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(
113
- EditorPaneDescriptor.create(UserDataProfilesEditor, UserDataProfilesEditor.ID, ( localize(18479, "Profiles Editor"))),
113
+ EditorPaneDescriptor.create(UserDataProfilesEditor, UserDataProfilesEditor.ID, ( localize(20622, "Profiles Editor"))),
114
114
  [( new SyncDescriptor(UserDataProfilesEditorInput))]
115
115
  );
116
116
  ( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(UserDataProfilesEditorInput.ID, UserDataProfilesEditorInputSerializer);
@@ -128,7 +128,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
128
128
  if (uriIdentityService.extUri.extname(resource) === `.${PROFILE_EXTENSION}`) {
129
129
  const template = await userDataProfileImportExportService.resolveProfileTemplate(resource);
130
130
  if (!template) {
131
- notificationService.warn(( localize(18480, "The dropped profile is invalid.")));
131
+ notificationService.warn(( localize(20623, "The dropped profile is invalid.")));
132
132
  editorService.openEditor(textEditorService.createTextEditor({
133
133
  resource
134
134
  }));
@@ -166,7 +166,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
166
166
  }
167
167
  registerProfileSubMenu() {
168
168
  const getProfilesTitle = () => {
169
- return localize(18481, "Profile ({0})", this.userDataProfileService.currentProfile.name);
169
+ return localize(20624, "Profile ({0})", this.userDataProfileService.currentProfile.name);
170
170
  };
171
171
  MenuRegistry.appendMenuItem(MenuId.GlobalActivity, {
172
172
  get title() {
@@ -189,7 +189,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
189
189
  }
190
190
  registerOpenProfileSubMenu() {
191
191
  MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
192
- title: ( localize(18482, "New Window with Profile")),
192
+ title: ( localize(20625, "New Window with Profile")),
193
193
  submenu: OpenProfileMenu,
194
194
  group: "1_new",
195
195
  order: 4
@@ -212,7 +212,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
212
212
  id: `workbench.profiles.actions.profileEntry.${profile.id}`,
213
213
  title: profile.name,
214
214
  metadata: {
215
- description: ( localize2(18483, "Switch to {0} profile", profile.name))
215
+ description: ( localize2(20626, "Switch to {0} profile", profile.name))
216
216
  },
217
217
  toggled: ( ContextKeyExpr.equals(CURRENT_PROFILE_CONTEXT.key, profile.id)),
218
218
  menu: [{
@@ -233,7 +233,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
233
233
  constructor() {
234
234
  super({
235
235
  id: `workbench.profiles.actions.newWindowWithProfile`,
236
- title: ( localize2(18484, "New Window with Profile...")),
236
+ title: ( localize2(20627, "New Window with Profile...")),
237
237
  category: PROFILES_CATEGORY,
238
238
  precondition: HAS_PROFILES_CONTEXT,
239
239
  f1: true
@@ -243,14 +243,17 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
243
243
  const quickInputService = accessor.get(IQuickInputService);
244
244
  const userDataProfilesService = accessor.get(IUserDataProfilesService);
245
245
  const hostService = accessor.get(IHostService);
246
- const pick = await quickInputService.pick(( userDataProfilesService.profiles.filter(profile => !profile.isInternal).map(profile => ({
247
- label: profile.name,
248
- profile
249
- }))), {
250
- title: ( localize(18485, "New Window with Profile")),
251
- placeHolder: ( localize(18486, "Select Profile")),
252
- canPickMany: false
253
- });
246
+ const pick = await quickInputService.pick(
247
+ userDataProfilesService.profiles.filter(profile => !profile.isInternal).map(profile => ({
248
+ label: profile.name,
249
+ profile
250
+ })),
251
+ {
252
+ title: ( localize(20628, "New Window with Profile")),
253
+ placeHolder: ( localize(20629, "Select Profile")),
254
+ canPickMany: false
255
+ }
256
+ );
254
257
  if (pick) {
255
258
  return hostService.openWindow({
256
259
  remoteAuthority: null,
@@ -268,9 +271,9 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
268
271
  constructor() {
269
272
  super({
270
273
  id,
271
- title: ( localize2(18487, "{0}", profile.name)),
274
+ title: ( localize2(20630, "{0}", profile.name)),
272
275
  metadata: {
273
- description: ( localize2(18488, "Open New Window with {0} Profile", profile.name))
276
+ description: ( localize2(20631, "Open New Window with {0} Profile", profile.name))
274
277
  },
275
278
  menu: {
276
279
  id: OpenProfileMenu,
@@ -291,7 +294,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
291
294
  command: {
292
295
  id,
293
296
  category: PROFILES_CATEGORY,
294
- title: ( localize2(18489, "Open {0} Profile", profile.name)),
297
+ title: ( localize2(20632, "Open {0} Profile", profile.name)),
295
298
  precondition
296
299
  }
297
300
  }));
@@ -303,7 +306,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
303
306
  constructor() {
304
307
  super({
305
308
  id: `workbench.profiles.actions.switchProfile`,
306
- title: ( localize2(18490, "Switch Profile...")),
309
+ title: ( localize2(20633, "Switch Profile...")),
307
310
  category: PROFILES_CATEGORY,
308
311
  f1: true
309
312
  });
@@ -322,7 +325,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
322
325
  });
323
326
  }
324
327
  const result = await quickInputService.pick(items.sort((a, b) => a.profile.name.localeCompare(b.profile.name)), {
325
- placeHolder: ( localize(18491, "Select Profile"))
328
+ placeHolder: ( localize(20634, "Select Profile"))
326
329
  });
327
330
  if (result) {
328
331
  await that.userDataProfileManagementService.switchProfile(result.profile);
@@ -337,8 +340,8 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
337
340
  super({
338
341
  id: `workbench.profiles.actions.manageProfiles`,
339
342
  title: {
340
- ...( localize2(18492, "Profiles")),
341
- mnemonicTitle: ( localize(18493, "&&Profiles"))
343
+ ...( localize2(20635, "Profiles")),
344
+ mnemonicTitle: ( localize(20636, "&&Profiles"))
342
345
  },
343
346
  menu: [{
344
347
  id: MenuId.GlobalActivity,
@@ -367,7 +370,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
367
370
  command: {
368
371
  id: "workbench.profiles.actions.manageProfiles",
369
372
  category: Categories.Preferences,
370
- title: ( localize2(18494, "Open Profiles (UI)"))
373
+ title: ( localize2(20637, "Open Profiles (UI)"))
371
374
  }
372
375
  }));
373
376
  return disposables;
@@ -380,7 +383,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
380
383
  constructor() {
381
384
  super({
382
385
  id,
383
- title: ( localize2(18495, "Export Profile...")),
386
+ title: ( localize2(20638, "Export Profile...")),
384
387
  category: PROFILES_CATEGORY,
385
388
  f1: true
386
389
  });
@@ -394,7 +397,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
394
397
  command: {
395
398
  id,
396
399
  title: ( localize2(
397
- 18496,
400
+ 20639,
398
401
  "Export Profile ({0})...",
399
402
  that.userDataProfileService.currentProfile.name
400
403
  ))
@@ -408,7 +411,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
408
411
  constructor() {
409
412
  super({
410
413
  id: "workbench.profiles.actions.createFromCurrentProfile",
411
- title: ( localize2(18497, "Save Current Profile As...")),
414
+ title: ( localize2(20640, "Save Current Profile As...")),
412
415
  category: PROFILES_CATEGORY,
413
416
  f1: true
414
417
  });
@@ -425,7 +428,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
425
428
  constructor() {
426
429
  super({
427
430
  id: "workbench.profiles.actions.createProfile",
428
- title: ( localize2(18498, "New Profile...")),
431
+ title: ( localize2(20641, "New Profile...")),
429
432
  category: PROFILES_CATEGORY,
430
433
  f1: true,
431
434
  menu: [{
@@ -446,7 +449,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
446
449
  constructor() {
447
450
  super({
448
451
  id: "workbench.profiles.actions.deleteProfile",
449
- title: ( localize2(18499, "Delete Profile...")),
452
+ title: ( localize2(20642, "Delete Profile...")),
450
453
  category: PROFILES_CATEGORY,
451
454
  f1: true,
452
455
  precondition: HAS_PROFILES_CONTEXT
@@ -460,18 +463,20 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
460
463
  const notificationService = accessor.get(INotificationService);
461
464
  const profiles = userDataProfilesService.profiles.filter(p => !p.isDefault && !p.isInternal);
462
465
  if (profiles.length) {
463
- const picks = await quickInputService.pick(( profiles.map(profile => ({
466
+ const picks = await quickInputService.pick(profiles.map(profile => ({
464
467
  label: profile.name,
465
- description: profile.id === userDataProfileService.currentProfile.id ? ( localize(18500, "Current")) : undefined,
468
+ description: profile.id === userDataProfileService.currentProfile.id ? ( localize(20643, "Current")) : undefined,
466
469
  profile
467
- }))), {
468
- title: ( localize(18501, "Delete Profile...")),
469
- placeHolder: ( localize(18502, "Select Profiles to Delete")),
470
+ })), {
471
+ title: ( localize(20644, "Delete Profile...")),
472
+ placeHolder: ( localize(20645, "Select Profiles to Delete")),
470
473
  canPickMany: true
471
474
  });
472
475
  if (picks) {
473
476
  try {
474
- await Promise.all(( picks.map(pick => userDataProfileManagementService.removeProfile(pick.profile))));
477
+ await Promise.all(
478
+ picks.map(pick => userDataProfileManagementService.removeProfile(pick.profile))
479
+ );
475
480
  } catch (error) {
476
481
  notificationService.error(error);
477
482
  }
@@ -11,7 +11,7 @@ class CreateTransientProfileAction extends Action2 {
11
11
  this.ID = "workbench.profiles.actions.createTemporaryProfile";
12
12
  }
13
13
  static {
14
- this.TITLE = ( localize2(18503, "New Window with Temporary Profile"));
14
+ this.TITLE = ( localize2(20646, "New Window with Temporary Profile"));
15
15
  }
16
16
  constructor() {
17
17
  super({
@@ -32,7 +32,7 @@ registerAction2(class CleanupProfilesAction extends Action2 {
32
32
  constructor() {
33
33
  super({
34
34
  id: "workbench.profiles.actions.cleanupProfiles",
35
- title: ( localize2(18504, "Cleanup Profiles")),
35
+ title: ( localize2(20647, "Cleanup Profiles")),
36
36
  category: Categories.Developer,
37
37
  f1: true
38
38
  });
@@ -45,7 +45,7 @@ registerAction2(class ResetWorkspacesAction extends Action2 {
45
45
  constructor() {
46
46
  super({
47
47
  id: "workbench.profiles.actions.resetWorkspaces",
48
- title: ( localize2(18505, "Reset Workspace Profiles Associations")),
48
+ title: ( localize2(20648, "Reset Workspace Profiles Associations")),
49
49
  category: Categories.Developer,
50
50
  f1: true
51
51
  });