@codingame/monaco-vscode-user-data-profile-service-override 32.0.2 → 33.0.9
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 +3 -3
- 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,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-user-data-profile-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "33.0.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - user-data-profile service-override",
|
|
6
6
|
"keywords": [],
|
|
7
|
+
"license": "MIT",
|
|
7
8
|
"author": {
|
|
8
9
|
"name": "CodinGame",
|
|
9
10
|
"url": "http://www.codingame.com"
|
|
10
11
|
},
|
|
11
|
-
"license": "MIT",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
14
|
"url": "git+ssh://git@github.com/CodinGame/monaco-vscode-api.git"
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "33.0.9"
|
|
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(15544, "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(15545, "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(15546, "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(15547, "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(15548, "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(15549, "New Window with Profile...")),
|
|
237
237
|
category: PROFILES_CATEGORY,
|
|
238
238
|
precondition: HAS_PROFILES_CONTEXT,
|
|
239
239
|
f1: true
|
|
@@ -247,8 +247,8 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
247
247
|
label: profile.name,
|
|
248
248
|
profile
|
|
249
249
|
}))), {
|
|
250
|
-
title: ( localize(
|
|
251
|
-
placeHolder: ( localize(
|
|
250
|
+
title: ( localize(15550, "New Window with Profile")),
|
|
251
|
+
placeHolder: ( localize(15551, "Select Profile")),
|
|
252
252
|
canPickMany: false
|
|
253
253
|
});
|
|
254
254
|
if (pick) {
|
|
@@ -268,9 +268,9 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
268
268
|
constructor() {
|
|
269
269
|
super({
|
|
270
270
|
id,
|
|
271
|
-
title: ( localize2(
|
|
271
|
+
title: ( localize2(15552, "{0}", profile.name)),
|
|
272
272
|
metadata: {
|
|
273
|
-
description: ( localize2(
|
|
273
|
+
description: ( localize2(15553, "Open New Window with {0} Profile", profile.name))
|
|
274
274
|
},
|
|
275
275
|
menu: {
|
|
276
276
|
id: OpenProfileMenu,
|
|
@@ -291,7 +291,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
291
291
|
command: {
|
|
292
292
|
id,
|
|
293
293
|
category: PROFILES_CATEGORY,
|
|
294
|
-
title: ( localize2(
|
|
294
|
+
title: ( localize2(15554, "Open {0} Profile", profile.name)),
|
|
295
295
|
precondition
|
|
296
296
|
}
|
|
297
297
|
}));
|
|
@@ -303,7 +303,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
303
303
|
constructor() {
|
|
304
304
|
super({
|
|
305
305
|
id: `workbench.profiles.actions.switchProfile`,
|
|
306
|
-
title: ( localize2(
|
|
306
|
+
title: ( localize2(15555, "Switch Profile...")),
|
|
307
307
|
category: PROFILES_CATEGORY,
|
|
308
308
|
f1: true
|
|
309
309
|
});
|
|
@@ -322,7 +322,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
322
322
|
});
|
|
323
323
|
}
|
|
324
324
|
const result = await quickInputService.pick(items.sort((a, b) => a.profile.name.localeCompare(b.profile.name)), {
|
|
325
|
-
placeHolder: ( localize(
|
|
325
|
+
placeHolder: ( localize(15556, "Select Profile"))
|
|
326
326
|
});
|
|
327
327
|
if (result) {
|
|
328
328
|
await that.userDataProfileManagementService.switchProfile(result.profile);
|
|
@@ -337,8 +337,8 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
337
337
|
super({
|
|
338
338
|
id: `workbench.profiles.actions.manageProfiles`,
|
|
339
339
|
title: {
|
|
340
|
-
...( localize2(
|
|
341
|
-
mnemonicTitle: ( localize(
|
|
340
|
+
...( localize2(15557, "Profiles")),
|
|
341
|
+
mnemonicTitle: ( localize(15558, "&&Profiles"))
|
|
342
342
|
},
|
|
343
343
|
menu: [{
|
|
344
344
|
id: MenuId.GlobalActivity,
|
|
@@ -367,7 +367,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
367
367
|
command: {
|
|
368
368
|
id: "workbench.profiles.actions.manageProfiles",
|
|
369
369
|
category: Categories.Preferences,
|
|
370
|
-
title: ( localize2(
|
|
370
|
+
title: ( localize2(15559, "Open Profiles (UI)"))
|
|
371
371
|
}
|
|
372
372
|
}));
|
|
373
373
|
return disposables;
|
|
@@ -380,7 +380,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
380
380
|
constructor() {
|
|
381
381
|
super({
|
|
382
382
|
id,
|
|
383
|
-
title: ( localize2(
|
|
383
|
+
title: ( localize2(15560, "Export Profile...")),
|
|
384
384
|
category: PROFILES_CATEGORY,
|
|
385
385
|
f1: true
|
|
386
386
|
});
|
|
@@ -394,7 +394,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
394
394
|
command: {
|
|
395
395
|
id,
|
|
396
396
|
title: ( localize2(
|
|
397
|
-
|
|
397
|
+
15561,
|
|
398
398
|
"Export Profile ({0})...",
|
|
399
399
|
that.userDataProfileService.currentProfile.name
|
|
400
400
|
))
|
|
@@ -408,7 +408,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
408
408
|
constructor() {
|
|
409
409
|
super({
|
|
410
410
|
id: "workbench.profiles.actions.createFromCurrentProfile",
|
|
411
|
-
title: ( localize2(
|
|
411
|
+
title: ( localize2(15562, "Save Current Profile As...")),
|
|
412
412
|
category: PROFILES_CATEGORY,
|
|
413
413
|
f1: true
|
|
414
414
|
});
|
|
@@ -425,7 +425,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
425
425
|
constructor() {
|
|
426
426
|
super({
|
|
427
427
|
id: "workbench.profiles.actions.createProfile",
|
|
428
|
-
title: ( localize2(
|
|
428
|
+
title: ( localize2(15563, "New Profile...")),
|
|
429
429
|
category: PROFILES_CATEGORY,
|
|
430
430
|
f1: true,
|
|
431
431
|
menu: [{
|
|
@@ -446,7 +446,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
446
446
|
constructor() {
|
|
447
447
|
super({
|
|
448
448
|
id: "workbench.profiles.actions.deleteProfile",
|
|
449
|
-
title: ( localize2(
|
|
449
|
+
title: ( localize2(15564, "Delete Profile...")),
|
|
450
450
|
category: PROFILES_CATEGORY,
|
|
451
451
|
f1: true,
|
|
452
452
|
precondition: HAS_PROFILES_CONTEXT
|
|
@@ -462,11 +462,11 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
462
462
|
if (profiles.length) {
|
|
463
463
|
const picks = await quickInputService.pick(( profiles.map(profile => ({
|
|
464
464
|
label: profile.name,
|
|
465
|
-
description: profile.id === userDataProfileService.currentProfile.id ? ( localize(
|
|
465
|
+
description: profile.id === userDataProfileService.currentProfile.id ? ( localize(15565, "Current")) : undefined,
|
|
466
466
|
profile
|
|
467
467
|
}))), {
|
|
468
|
-
title: ( localize(
|
|
469
|
-
placeHolder: ( localize(
|
|
468
|
+
title: ( localize(15566, "Delete Profile...")),
|
|
469
|
+
placeHolder: ( localize(15567, "Select Profiles to Delete")),
|
|
470
470
|
canPickMany: true
|
|
471
471
|
});
|
|
472
472
|
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(15568, "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(15569, "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(15570, "Reset Workspace Profiles Associations")),
|
|
49
49
|
category: Categories.Developer,
|
|
50
50
|
f1: true
|
|
51
51
|
});
|