@codingame/monaco-vscode-user-data-profile-service-override 37.5.0 → 37.6.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.
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfile.js +24 -24
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfileActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilesEditor.js +79 -79
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilesEditorModel.js +26 -26
- package/vscode/src/vs/workbench/services/userDataProfile/browser/extensionsResource.js +5 -5
- package/vscode/src/vs/workbench/services/userDataProfile/browser/globalStateResource.js +1 -1
- package/vscode/src/vs/workbench/services/userDataProfile/browser/keybindingsResource.js +1 -1
- package/vscode/src/vs/workbench/services/userDataProfile/browser/mcpProfileResource.js +1 -1
- package/vscode/src/vs/workbench/services/userDataProfile/browser/settingsResource.js +1 -1
- package/vscode/src/vs/workbench/services/userDataProfile/browser/snippetsResource.js +2 -2
- package/vscode/src/vs/workbench/services/userDataProfile/browser/tasksResource.js +1 -1
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService.js +39 -39
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileManagement.js +8 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-user-data-profile-service-override",
|
|
3
|
-
"version": "37.
|
|
3
|
+
"version": "37.6.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.
|
|
18
|
+
"@codingame/monaco-vscode-api": "37.6.1"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -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(
|
|
113
|
+
EditorPaneDescriptor.create(UserDataProfilesEditor, UserDataProfilesEditor.ID, ( localize(20743, "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(
|
|
131
|
+
notificationService.warn(( localize(20744, "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(
|
|
169
|
+
return localize(20745, "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(
|
|
192
|
+
title: ( localize(20746, "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(
|
|
215
|
+
description: ( localize2(20747, "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(
|
|
236
|
+
title: ( localize2(20748, "New Window with Profile...")),
|
|
237
237
|
category: PROFILES_CATEGORY,
|
|
238
238
|
precondition: HAS_PROFILES_CONTEXT,
|
|
239
239
|
f1: true
|
|
@@ -249,8 +249,8 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
249
249
|
profile
|
|
250
250
|
})),
|
|
251
251
|
{
|
|
252
|
-
title: ( localize(
|
|
253
|
-
placeHolder: ( localize(
|
|
252
|
+
title: ( localize(20749, "New Window with Profile")),
|
|
253
|
+
placeHolder: ( localize(20750, "Select Profile")),
|
|
254
254
|
canPickMany: false
|
|
255
255
|
}
|
|
256
256
|
);
|
|
@@ -271,9 +271,9 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
271
271
|
constructor() {
|
|
272
272
|
super({
|
|
273
273
|
id,
|
|
274
|
-
title: ( localize2(
|
|
274
|
+
title: ( localize2(20751, "{0}", profile.name)),
|
|
275
275
|
metadata: {
|
|
276
|
-
description: ( localize2(
|
|
276
|
+
description: ( localize2(20752, "Open New Window with {0} Profile", profile.name))
|
|
277
277
|
},
|
|
278
278
|
menu: {
|
|
279
279
|
id: OpenProfileMenu,
|
|
@@ -294,7 +294,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
294
294
|
command: {
|
|
295
295
|
id,
|
|
296
296
|
category: PROFILES_CATEGORY,
|
|
297
|
-
title: ( localize2(
|
|
297
|
+
title: ( localize2(20753, "Open {0} Profile", profile.name)),
|
|
298
298
|
precondition
|
|
299
299
|
}
|
|
300
300
|
}));
|
|
@@ -306,7 +306,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
306
306
|
constructor() {
|
|
307
307
|
super({
|
|
308
308
|
id: `workbench.profiles.actions.switchProfile`,
|
|
309
|
-
title: ( localize2(
|
|
309
|
+
title: ( localize2(20754, "Switch Profile...")),
|
|
310
310
|
category: PROFILES_CATEGORY,
|
|
311
311
|
f1: true
|
|
312
312
|
});
|
|
@@ -325,7 +325,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
327
|
const result = await quickInputService.pick(items.sort((a, b) => a.profile.name.localeCompare(b.profile.name)), {
|
|
328
|
-
placeHolder: ( localize(
|
|
328
|
+
placeHolder: ( localize(20755, "Select Profile"))
|
|
329
329
|
});
|
|
330
330
|
if (result) {
|
|
331
331
|
await that.userDataProfileManagementService.switchProfile(result.profile);
|
|
@@ -340,8 +340,8 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
340
340
|
super({
|
|
341
341
|
id: `workbench.profiles.actions.manageProfiles`,
|
|
342
342
|
title: {
|
|
343
|
-
...( localize2(
|
|
344
|
-
mnemonicTitle: ( localize(
|
|
343
|
+
...( localize2(20756, "Profiles")),
|
|
344
|
+
mnemonicTitle: ( localize(20757, "&&Profiles"))
|
|
345
345
|
},
|
|
346
346
|
menu: [{
|
|
347
347
|
id: MenuId.GlobalActivity,
|
|
@@ -370,7 +370,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
370
370
|
command: {
|
|
371
371
|
id: "workbench.profiles.actions.manageProfiles",
|
|
372
372
|
category: Categories.Preferences,
|
|
373
|
-
title: ( localize2(
|
|
373
|
+
title: ( localize2(20758, "Open Profiles (UI)"))
|
|
374
374
|
}
|
|
375
375
|
}));
|
|
376
376
|
return disposables;
|
|
@@ -383,7 +383,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
383
383
|
constructor() {
|
|
384
384
|
super({
|
|
385
385
|
id,
|
|
386
|
-
title: ( localize2(
|
|
386
|
+
title: ( localize2(20759, "Export Profile...")),
|
|
387
387
|
category: PROFILES_CATEGORY,
|
|
388
388
|
f1: true
|
|
389
389
|
});
|
|
@@ -397,7 +397,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
397
397
|
command: {
|
|
398
398
|
id,
|
|
399
399
|
title: ( localize2(
|
|
400
|
-
|
|
400
|
+
20760,
|
|
401
401
|
"Export Profile ({0})...",
|
|
402
402
|
that.userDataProfileService.currentProfile.name
|
|
403
403
|
))
|
|
@@ -411,7 +411,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
411
411
|
constructor() {
|
|
412
412
|
super({
|
|
413
413
|
id: "workbench.profiles.actions.createFromCurrentProfile",
|
|
414
|
-
title: ( localize2(
|
|
414
|
+
title: ( localize2(20761, "Save Current Profile As...")),
|
|
415
415
|
category: PROFILES_CATEGORY,
|
|
416
416
|
f1: true
|
|
417
417
|
});
|
|
@@ -428,7 +428,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
428
428
|
constructor() {
|
|
429
429
|
super({
|
|
430
430
|
id: "workbench.profiles.actions.createProfile",
|
|
431
|
-
title: ( localize2(
|
|
431
|
+
title: ( localize2(20762, "New Profile...")),
|
|
432
432
|
category: PROFILES_CATEGORY,
|
|
433
433
|
f1: true,
|
|
434
434
|
menu: [{
|
|
@@ -449,7 +449,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
449
449
|
constructor() {
|
|
450
450
|
super({
|
|
451
451
|
id: "workbench.profiles.actions.deleteProfile",
|
|
452
|
-
title: ( localize2(
|
|
452
|
+
title: ( localize2(20763, "Delete Profile...")),
|
|
453
453
|
category: PROFILES_CATEGORY,
|
|
454
454
|
f1: true,
|
|
455
455
|
precondition: HAS_PROFILES_CONTEXT
|
|
@@ -465,11 +465,11 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
465
465
|
if (profiles.length) {
|
|
466
466
|
const picks = await quickInputService.pick(profiles.map(profile => ({
|
|
467
467
|
label: profile.name,
|
|
468
|
-
description: profile.id === userDataProfileService.currentProfile.id ? ( localize(
|
|
468
|
+
description: profile.id === userDataProfileService.currentProfile.id ? ( localize(20764, "Current")) : undefined,
|
|
469
469
|
profile
|
|
470
470
|
})), {
|
|
471
|
-
title: ( localize(
|
|
472
|
-
placeHolder: ( localize(
|
|
471
|
+
title: ( localize(20765, "Delete Profile...")),
|
|
472
|
+
placeHolder: ( localize(20766, "Select Profiles to Delete")),
|
|
473
473
|
canPickMany: true
|
|
474
474
|
});
|
|
475
475
|
if (picks) {
|
|
@@ -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(
|
|
14
|
+
this.TITLE = ( localize2(20767, "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(
|
|
35
|
+
title: ( localize2(20768, "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(
|
|
48
|
+
title: ( localize2(20769, "Reset Workspace Profiles Associations")),
|
|
49
49
|
category: Categories.Developer,
|
|
50
50
|
f1: true
|
|
51
51
|
});
|