@codingame/monaco-vscode-user-data-profile-service-override 29.1.0 → 30.0.0
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": "
|
|
3
|
+
"version": "30.0.0",
|
|
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": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "30.0.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -108,7 +108,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
108
108
|
}
|
|
109
109
|
registerEditor() {
|
|
110
110
|
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(
|
|
111
|
-
EditorPaneDescriptor.create(UserDataProfilesEditor, UserDataProfilesEditor.ID, ( localize(
|
|
111
|
+
EditorPaneDescriptor.create(UserDataProfilesEditor, UserDataProfilesEditor.ID, ( localize(14946, "Profiles Editor"))),
|
|
112
112
|
[( new SyncDescriptor(UserDataProfilesEditorInput))]
|
|
113
113
|
);
|
|
114
114
|
( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(UserDataProfilesEditorInput.ID, UserDataProfilesEditorInputSerializer);
|
|
@@ -126,7 +126,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
126
126
|
if (uriIdentityService.extUri.extname(resource) === `.${PROFILE_EXTENSION}`) {
|
|
127
127
|
const template = await userDataProfileImportExportService.resolveProfileTemplate(resource);
|
|
128
128
|
if (!template) {
|
|
129
|
-
notificationService.warn(( localize(
|
|
129
|
+
notificationService.warn(( localize(14947, "The dropped profile is invalid.")));
|
|
130
130
|
editorService.openEditor(textEditorService.createTextEditor({
|
|
131
131
|
resource
|
|
132
132
|
}));
|
|
@@ -164,7 +164,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
164
164
|
}
|
|
165
165
|
registerProfileSubMenu() {
|
|
166
166
|
const getProfilesTitle = () => {
|
|
167
|
-
return localize(
|
|
167
|
+
return localize(14948, "Profile ({0})", this.userDataProfileService.currentProfile.name);
|
|
168
168
|
};
|
|
169
169
|
MenuRegistry.appendMenuItem(MenuId.GlobalActivity, {
|
|
170
170
|
get title() {
|
|
@@ -187,7 +187,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
187
187
|
}
|
|
188
188
|
registerOpenProfileSubMenu() {
|
|
189
189
|
MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
190
|
-
title: ( localize(
|
|
190
|
+
title: ( localize(14949, "New Window with Profile")),
|
|
191
191
|
submenu: OpenProfileMenu,
|
|
192
192
|
group: "1_new",
|
|
193
193
|
order: 4
|
|
@@ -210,7 +210,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
210
210
|
id: `workbench.profiles.actions.profileEntry.${profile.id}`,
|
|
211
211
|
title: profile.name,
|
|
212
212
|
metadata: {
|
|
213
|
-
description: ( localize2(
|
|
213
|
+
description: ( localize2(14950, "Switch to {0} profile", profile.name))
|
|
214
214
|
},
|
|
215
215
|
toggled: ( ContextKeyExpr.equals(CURRENT_PROFILE_CONTEXT.key, profile.id)),
|
|
216
216
|
menu: [{
|
|
@@ -231,7 +231,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
231
231
|
constructor() {
|
|
232
232
|
super({
|
|
233
233
|
id: `workbench.profiles.actions.newWindowWithProfile`,
|
|
234
|
-
title: ( localize2(
|
|
234
|
+
title: ( localize2(14951, "New Window with Profile...")),
|
|
235
235
|
category: PROFILES_CATEGORY,
|
|
236
236
|
precondition: HAS_PROFILES_CONTEXT,
|
|
237
237
|
f1: true
|
|
@@ -245,8 +245,8 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
245
245
|
label: profile.name,
|
|
246
246
|
profile
|
|
247
247
|
}))), {
|
|
248
|
-
title: ( localize(
|
|
249
|
-
placeHolder: ( localize(
|
|
248
|
+
title: ( localize(14952, "New Window with Profile")),
|
|
249
|
+
placeHolder: ( localize(14953, "Select Profile")),
|
|
250
250
|
canPickMany: false
|
|
251
251
|
});
|
|
252
252
|
if (pick) {
|
|
@@ -266,9 +266,9 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
266
266
|
constructor() {
|
|
267
267
|
super({
|
|
268
268
|
id,
|
|
269
|
-
title: ( localize2(
|
|
269
|
+
title: ( localize2(14954, "{0}", profile.name)),
|
|
270
270
|
metadata: {
|
|
271
|
-
description: ( localize2(
|
|
271
|
+
description: ( localize2(14955, "Open New Window with {0} Profile", profile.name))
|
|
272
272
|
},
|
|
273
273
|
menu: {
|
|
274
274
|
id: OpenProfileMenu,
|
|
@@ -289,7 +289,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
289
289
|
command: {
|
|
290
290
|
id,
|
|
291
291
|
category: PROFILES_CATEGORY,
|
|
292
|
-
title: ( localize2(
|
|
292
|
+
title: ( localize2(14956, "Open {0} Profile", profile.name)),
|
|
293
293
|
precondition
|
|
294
294
|
}
|
|
295
295
|
}));
|
|
@@ -301,7 +301,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
301
301
|
constructor() {
|
|
302
302
|
super({
|
|
303
303
|
id: `workbench.profiles.actions.switchProfile`,
|
|
304
|
-
title: ( localize2(
|
|
304
|
+
title: ( localize2(14957, "Switch Profile...")),
|
|
305
305
|
category: PROFILES_CATEGORY,
|
|
306
306
|
f1: true
|
|
307
307
|
});
|
|
@@ -317,7 +317,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
319
|
const result = await quickInputService.pick(items.sort((a, b) => a.profile.name.localeCompare(b.profile.name)), {
|
|
320
|
-
placeHolder: ( localize(
|
|
320
|
+
placeHolder: ( localize(14958, "Select Profile"))
|
|
321
321
|
});
|
|
322
322
|
if (result) {
|
|
323
323
|
await that.userDataProfileManagementService.switchProfile(result.profile);
|
|
@@ -332,8 +332,8 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
332
332
|
super({
|
|
333
333
|
id: `workbench.profiles.actions.manageProfiles`,
|
|
334
334
|
title: {
|
|
335
|
-
...( localize2(
|
|
336
|
-
mnemonicTitle: ( localize(
|
|
335
|
+
...( localize2(14959, "Profiles")),
|
|
336
|
+
mnemonicTitle: ( localize(14960, "&&Profiles"))
|
|
337
337
|
},
|
|
338
338
|
menu: [{
|
|
339
339
|
id: MenuId.GlobalActivity,
|
|
@@ -362,7 +362,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
362
362
|
command: {
|
|
363
363
|
id: "workbench.profiles.actions.manageProfiles",
|
|
364
364
|
category: Categories.Preferences,
|
|
365
|
-
title: ( localize2(
|
|
365
|
+
title: ( localize2(14961, "Open Profiles (UI)"))
|
|
366
366
|
}
|
|
367
367
|
}));
|
|
368
368
|
return disposables;
|
|
@@ -375,7 +375,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
375
375
|
constructor() {
|
|
376
376
|
super({
|
|
377
377
|
id,
|
|
378
|
-
title: ( localize2(
|
|
378
|
+
title: ( localize2(14962, "Export Profile...")),
|
|
379
379
|
category: PROFILES_CATEGORY,
|
|
380
380
|
f1: true
|
|
381
381
|
});
|
|
@@ -389,7 +389,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
389
389
|
command: {
|
|
390
390
|
id,
|
|
391
391
|
title: ( localize2(
|
|
392
|
-
|
|
392
|
+
14963,
|
|
393
393
|
"Export Profile ({0})...",
|
|
394
394
|
that.userDataProfileService.currentProfile.name
|
|
395
395
|
))
|
|
@@ -403,7 +403,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
403
403
|
constructor() {
|
|
404
404
|
super({
|
|
405
405
|
id: "workbench.profiles.actions.createFromCurrentProfile",
|
|
406
|
-
title: ( localize2(
|
|
406
|
+
title: ( localize2(14964, "Save Current Profile As...")),
|
|
407
407
|
category: PROFILES_CATEGORY,
|
|
408
408
|
f1: true
|
|
409
409
|
});
|
|
@@ -420,7 +420,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
420
420
|
constructor() {
|
|
421
421
|
super({
|
|
422
422
|
id: "workbench.profiles.actions.createProfile",
|
|
423
|
-
title: ( localize2(
|
|
423
|
+
title: ( localize2(14965, "New Profile...")),
|
|
424
424
|
category: PROFILES_CATEGORY,
|
|
425
425
|
f1: true,
|
|
426
426
|
menu: [{
|
|
@@ -441,7 +441,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
441
441
|
constructor() {
|
|
442
442
|
super({
|
|
443
443
|
id: "workbench.profiles.actions.deleteProfile",
|
|
444
|
-
title: ( localize2(
|
|
444
|
+
title: ( localize2(14966, "Delete Profile...")),
|
|
445
445
|
category: PROFILES_CATEGORY,
|
|
446
446
|
f1: true,
|
|
447
447
|
precondition: HAS_PROFILES_CONTEXT
|
|
@@ -457,11 +457,11 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
457
457
|
if (profiles.length) {
|
|
458
458
|
const picks = await quickInputService.pick(( profiles.map(profile => ({
|
|
459
459
|
label: profile.name,
|
|
460
|
-
description: profile.id === userDataProfileService.currentProfile.id ? ( localize(
|
|
460
|
+
description: profile.id === userDataProfileService.currentProfile.id ? ( localize(14967, "Current")) : undefined,
|
|
461
461
|
profile
|
|
462
462
|
}))), {
|
|
463
|
-
title: ( localize(
|
|
464
|
-
placeHolder: ( localize(
|
|
463
|
+
title: ( localize(14968, "Delete Profile...")),
|
|
464
|
+
placeHolder: ( localize(14969, "Select Profiles to Delete")),
|
|
465
465
|
canPickMany: true
|
|
466
466
|
});
|
|
467
467
|
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(14970, "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(14971, "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(14972, "Reset Workspace Profiles Associations")),
|
|
49
49
|
category: Categories.Developer,
|
|
50
50
|
f1: true
|
|
51
51
|
});
|