@codingame/monaco-vscode-user-data-profile-service-override 23.2.2 → 24.1.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/index.js +2 -2
- package/package.json +2 -14
- package/vscode/src/vs/platform/userDataProfile/browser/userDataProfile.js +1 -1
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfile.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfile.js +26 -26
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfileActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilesEditor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilesEditor.js +86 -87
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilesEditorModel.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilesEditorModel.js +29 -29
- package/vscode/src/vs/workbench/services/userData/browser/userDataInit.d.ts +1 -1
- package/vscode/src/vs/workbench/services/userDataProfile/browser/extensionsResource.d.ts +1 -1
- package/vscode/src/vs/workbench/services/userDataProfile/browser/extensionsResource.js +6 -6
- package/vscode/src/vs/workbench/services/userDataProfile/browser/globalStateResource.d.ts +1 -1
- package/vscode/src/vs/workbench/services/userDataProfile/browser/globalStateResource.js +2 -2
- package/vscode/src/vs/workbench/services/userDataProfile/browser/keybindingsResource.d.ts +1 -1
- package/vscode/src/vs/workbench/services/userDataProfile/browser/keybindingsResource.js +2 -2
- package/vscode/src/vs/workbench/services/userDataProfile/browser/mcpProfileResource.d.ts +1 -1
- package/vscode/src/vs/workbench/services/userDataProfile/browser/mcpProfileResource.js +2 -2
- package/vscode/src/vs/workbench/services/userDataProfile/browser/settingsResource.d.ts +1 -1
- package/vscode/src/vs/workbench/services/userDataProfile/browser/settingsResource.js +3 -3
- package/vscode/src/vs/workbench/services/userDataProfile/browser/snippetsResource.d.ts +1 -1
- package/vscode/src/vs/workbench/services/userDataProfile/browser/snippetsResource.js +3 -3
- package/vscode/src/vs/workbench/services/userDataProfile/browser/tasksResource.d.ts +1 -1
- package/vscode/src/vs/workbench/services/userDataProfile/browser/tasksResource.js +2 -2
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService.js +42 -42
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileInit.d.ts +2 -2
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileInit.js +1 -1
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileManagement.d.ts +1 -1
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileManagement.js +8 -8
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileStorageService.js +1 -1
- package/vscode/src/vs/workbench/services/userDataSync/browser/userDataSyncInit.d.ts +2 -2
- package/vscode/src/vs/workbench/services/userDataSync/browser/userDataSyncInit.js +9 -9
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSyncUtil.d.ts +1 -1
package/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { UserDataInitializationService } from './vscode/src/vs/workbench/service
|
|
|
8
8
|
import { IUserDataInitializationService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/userData/browser/userDataInit.service';
|
|
9
9
|
import { UserDataSyncInitializer } from './vscode/src/vs/workbench/services/userDataSync/browser/userDataSyncInit.js';
|
|
10
10
|
import { UserDataProfileInitializer } from './vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileInit.js';
|
|
11
|
-
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-
|
|
11
|
+
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
12
12
|
import { ISecretStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/secrets/common/secrets.service';
|
|
13
13
|
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
14
14
|
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
@@ -19,7 +19,7 @@ import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/plat
|
|
|
19
19
|
import { IUserDataProfileService, IUserDataProfileManagementService, IUserDataProfileImportExportService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service';
|
|
20
20
|
import { mark } from '@codingame/monaco-vscode-api/vscode/vs/base/common/performance';
|
|
21
21
|
import { timeout } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
22
|
-
import { IWorkbenchConfigurationService } from '@codingame/monaco-vscode-
|
|
22
|
+
import { IWorkbenchConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/configuration/common/configuration.service';
|
|
23
23
|
import { UserDataProfileImportExportService } from './vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService.js';
|
|
24
24
|
import { UserDataProfileManagementService } from './vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileManagement.js';
|
|
25
25
|
import { IUserDataProfileStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfileStorageService.service';
|
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": "24.1.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,19 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-
|
|
19
|
-
"@codingame/monaco-vscode-05c09f77-cd1d-5960-b387-e7023df3160b-common": "23.2.2",
|
|
20
|
-
"@codingame/monaco-vscode-249dc928-1da3-51c1-82d0-45e0ba9d08a1-common": "23.2.2",
|
|
21
|
-
"@codingame/monaco-vscode-26828baf-be14-5674-97e2-994222afad77-common": "23.2.2",
|
|
22
|
-
"@codingame/monaco-vscode-2f06fe84-148e-5e6b-a7ca-c7989c5f128a-common": "23.2.2",
|
|
23
|
-
"@codingame/monaco-vscode-3b5a5cd1-d4ff-500a-b609-57e0cd4afa0a-common": "23.2.2",
|
|
24
|
-
"@codingame/monaco-vscode-422642f2-7e3a-5c1c-9e1e-1d3ef1817346-common": "23.2.2",
|
|
25
|
-
"@codingame/monaco-vscode-4bf376c2-03c7-58cb-8303-c67aeefa3d3d-common": "23.2.2",
|
|
26
|
-
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "23.2.2",
|
|
27
|
-
"@codingame/monaco-vscode-a022e9a8-b522-5ea2-97c7-f3dda2b0b597-common": "23.2.2",
|
|
28
|
-
"@codingame/monaco-vscode-api": "23.2.2",
|
|
29
|
-
"@codingame/monaco-vscode-dd5b2d07-86ca-557c-8510-224a400e258d-common": "23.2.2",
|
|
30
|
-
"@codingame/monaco-vscode-f22e7e55-aee8-5b52-a6bc-950efd9f5890-common": "23.2.2"
|
|
18
|
+
"@codingame/monaco-vscode-api": "24.1.0"
|
|
31
19
|
},
|
|
32
20
|
"main": "index.js",
|
|
33
21
|
"module": "index.js",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import { BroadcastDataChannel } from '@codingame/monaco-vscode-
|
|
3
|
+
import { BroadcastDataChannel } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/broadcast';
|
|
4
4
|
import { revive } from '@codingame/monaco-vscode-api/vscode/vs/base/common/marshalling';
|
|
5
5
|
import { IEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/platform/environment/common/environment.service';
|
|
6
6
|
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
@@ -13,7 +13,7 @@ import { IWorkspaceTagsService } from "@codingame/monaco-vscode-api/vscode/vs/wo
|
|
|
13
13
|
import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
14
14
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
15
15
|
import { IURLService } from "@codingame/monaco-vscode-api/vscode/vs/platform/url/common/url.service";
|
|
16
|
-
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-
|
|
16
|
+
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/browser/environmentService.service";
|
|
17
17
|
export declare const OpenProfileMenu: MenuId;
|
|
18
18
|
export declare class UserDataProfilesWorkbenchContribution extends Disposable implements IWorkbenchContribution {
|
|
19
19
|
private readonly userDataProfileService;
|
|
@@ -9,7 +9,7 @@ import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platf
|
|
|
9
9
|
import { IUserDataProfilesService } from '@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfile.service';
|
|
10
10
|
import { LifecyclePhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
11
11
|
import { ILifecycleService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
|
|
12
|
-
import { CURRENT_PROFILE_CONTEXT, IS_CURRENT_PROFILE_TRANSIENT_CONTEXT, HAS_PROFILES_CONTEXT, isProfileURL, PROFILES_CATEGORY, PROFILES_TITLE } from '@codingame/monaco-vscode-
|
|
12
|
+
import { CURRENT_PROFILE_CONTEXT, IS_CURRENT_PROFILE_TRANSIENT_CONTEXT, HAS_PROFILES_CONTEXT, isProfileURL, PROFILES_CATEGORY, PROFILES_TITLE } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/userDataProfile/common/userDataProfile';
|
|
13
13
|
import { IUserDataProfileService, IUserDataProfileManagementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service';
|
|
14
14
|
import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
15
15
|
import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
|
|
@@ -20,7 +20,7 @@ import { IWorkspaceTagsService } from '@codingame/monaco-vscode-api/vscode/vs/wo
|
|
|
20
20
|
import { Categories } from '@codingame/monaco-vscode-api/vscode/vs/platform/action/common/actionCommonCategories';
|
|
21
21
|
import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
|
|
22
22
|
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
23
|
-
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-
|
|
23
|
+
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/editor';
|
|
24
24
|
import { EditorExtensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
25
25
|
import { UserDataProfilesEditorInput, UserDataProfilesEditor, UserDataProfilesEditorInputSerializer } from './userDataProfilesEditor.js';
|
|
26
26
|
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
@@ -28,7 +28,7 @@ import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/wor
|
|
|
28
28
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
29
29
|
import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service';
|
|
30
30
|
import { IURLService } from '@codingame/monaco-vscode-api/vscode/vs/platform/url/common/url.service';
|
|
31
|
-
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-
|
|
31
|
+
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
32
32
|
|
|
33
33
|
const OpenProfileMenu = ( new MenuId('OpenProfile'));
|
|
34
34
|
const ProfilesMenu = ( new MenuId('Profiles'));
|
|
@@ -84,7 +84,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
84
84
|
return editor;
|
|
85
85
|
}
|
|
86
86
|
registerEditor() {
|
|
87
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(UserDataProfilesEditor, UserDataProfilesEditor.ID, ( localize(
|
|
87
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(UserDataProfilesEditor, UserDataProfilesEditor.ID, ( localize(12872, "Profiles Editor"))), [
|
|
88
88
|
( new SyncDescriptor(UserDataProfilesEditorInput))
|
|
89
89
|
]);
|
|
90
90
|
( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(UserDataProfilesEditorInput.ID, UserDataProfilesEditorInputSerializer);
|
|
@@ -105,7 +105,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
105
105
|
}
|
|
106
106
|
registerProfileSubMenu() {
|
|
107
107
|
const getProfilesTitle = () => {
|
|
108
|
-
return localize(
|
|
108
|
+
return localize(12873, "Profile ({0})", this.userDataProfileService.currentProfile.name);
|
|
109
109
|
};
|
|
110
110
|
MenuRegistry.appendMenuItem(MenuId.GlobalActivity, {
|
|
111
111
|
get title() {
|
|
@@ -128,7 +128,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
128
128
|
}
|
|
129
129
|
registerOpenProfileSubMenu() {
|
|
130
130
|
MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
131
|
-
title: ( localize(
|
|
131
|
+
title: ( localize(12874, "New Window with Profile")),
|
|
132
132
|
submenu: OpenProfileMenu,
|
|
133
133
|
group: '1_new',
|
|
134
134
|
order: 4,
|
|
@@ -151,7 +151,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
151
151
|
id: `workbench.profiles.actions.profileEntry.${profile.id}`,
|
|
152
152
|
title: profile.name,
|
|
153
153
|
metadata: {
|
|
154
|
-
description: ( localize2(
|
|
154
|
+
description: ( localize2(12875, "Switch to {0} profile", profile.name)),
|
|
155
155
|
},
|
|
156
156
|
toggled: ( ContextKeyExpr.equals(CURRENT_PROFILE_CONTEXT.key, profile.id)),
|
|
157
157
|
menu: [
|
|
@@ -174,7 +174,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
174
174
|
constructor() {
|
|
175
175
|
super({
|
|
176
176
|
id: `workbench.profiles.actions.newWindowWithProfile`,
|
|
177
|
-
title: ( localize2(
|
|
177
|
+
title: ( localize2(12876, "New Window with Profile...")),
|
|
178
178
|
category: PROFILES_CATEGORY,
|
|
179
179
|
precondition: HAS_PROFILES_CONTEXT,
|
|
180
180
|
f1: true,
|
|
@@ -188,8 +188,8 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
188
188
|
label: profile.name,
|
|
189
189
|
profile
|
|
190
190
|
}))), {
|
|
191
|
-
title: ( localize(
|
|
192
|
-
placeHolder: ( localize(
|
|
191
|
+
title: ( localize(12877, "New Window with Profile")),
|
|
192
|
+
placeHolder: ( localize(12878, "Select Profile")),
|
|
193
193
|
canPickMany: false
|
|
194
194
|
});
|
|
195
195
|
if (pick) {
|
|
@@ -205,9 +205,9 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
205
205
|
constructor() {
|
|
206
206
|
super({
|
|
207
207
|
id,
|
|
208
|
-
title: ( localize2(
|
|
208
|
+
title: ( localize2(12879, "{0}", profile.name)),
|
|
209
209
|
metadata: {
|
|
210
|
-
description: ( localize2(
|
|
210
|
+
description: ( localize2(12880, "Open New Window with {0} Profile", profile.name)),
|
|
211
211
|
},
|
|
212
212
|
menu: {
|
|
213
213
|
id: OpenProfileMenu,
|
|
@@ -225,7 +225,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
225
225
|
command: {
|
|
226
226
|
id,
|
|
227
227
|
category: PROFILES_CATEGORY,
|
|
228
|
-
title: ( localize2(
|
|
228
|
+
title: ( localize2(12881, "Open {0} Profile", profile.name)),
|
|
229
229
|
precondition: HAS_PROFILES_CONTEXT
|
|
230
230
|
},
|
|
231
231
|
}));
|
|
@@ -237,7 +237,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
237
237
|
constructor() {
|
|
238
238
|
super({
|
|
239
239
|
id: `workbench.profiles.actions.switchProfile`,
|
|
240
|
-
title: ( localize2(
|
|
240
|
+
title: ( localize2(12882, 'Switch Profile...')),
|
|
241
241
|
category: PROFILES_CATEGORY,
|
|
242
242
|
f1: true,
|
|
243
243
|
});
|
|
@@ -253,7 +253,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
253
253
|
});
|
|
254
254
|
}
|
|
255
255
|
const result = await quickInputService.pick(items.sort((a, b) => a.profile.name.localeCompare(b.profile.name)), {
|
|
256
|
-
placeHolder: ( localize(
|
|
256
|
+
placeHolder: ( localize(12883, "Select Profile"))
|
|
257
257
|
});
|
|
258
258
|
if (result) {
|
|
259
259
|
await that.userDataProfileManagementService.switchProfile(result.profile);
|
|
@@ -268,8 +268,8 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
268
268
|
super({
|
|
269
269
|
id: `workbench.profiles.actions.manageProfiles`,
|
|
270
270
|
title: {
|
|
271
|
-
...( localize2(
|
|
272
|
-
mnemonicTitle: ( localize(
|
|
271
|
+
...( localize2(12884, "Profiles")),
|
|
272
|
+
mnemonicTitle: ( localize(12885, "&&Profiles")),
|
|
273
273
|
},
|
|
274
274
|
menu: [
|
|
275
275
|
{
|
|
@@ -302,7 +302,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
302
302
|
command: {
|
|
303
303
|
id: 'workbench.profiles.actions.manageProfiles',
|
|
304
304
|
category: Categories.Preferences,
|
|
305
|
-
title: ( localize2(
|
|
305
|
+
title: ( localize2(12886, "Open Profiles (UI)")),
|
|
306
306
|
},
|
|
307
307
|
}));
|
|
308
308
|
return disposables;
|
|
@@ -315,7 +315,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
315
315
|
constructor() {
|
|
316
316
|
super({
|
|
317
317
|
id,
|
|
318
|
-
title: ( localize2(
|
|
318
|
+
title: ( localize2(12887, "Export Profile...")),
|
|
319
319
|
category: PROFILES_CATEGORY,
|
|
320
320
|
f1: true,
|
|
321
321
|
});
|
|
@@ -329,7 +329,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
329
329
|
command: {
|
|
330
330
|
id,
|
|
331
331
|
title: ( localize2(
|
|
332
|
-
|
|
332
|
+
12888,
|
|
333
333
|
"Export Profile ({0})...",
|
|
334
334
|
that.userDataProfileService.currentProfile.name
|
|
335
335
|
)),
|
|
@@ -343,7 +343,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
343
343
|
constructor() {
|
|
344
344
|
super({
|
|
345
345
|
id: 'workbench.profiles.actions.createFromCurrentProfile',
|
|
346
|
-
title: ( localize2(
|
|
346
|
+
title: ( localize2(12889, "Save Current Profile As...")),
|
|
347
347
|
category: PROFILES_CATEGORY,
|
|
348
348
|
f1: true,
|
|
349
349
|
});
|
|
@@ -360,7 +360,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
360
360
|
constructor() {
|
|
361
361
|
super({
|
|
362
362
|
id: 'workbench.profiles.actions.createProfile',
|
|
363
|
-
title: ( localize2(
|
|
363
|
+
title: ( localize2(12890, "New Profile...")),
|
|
364
364
|
category: PROFILES_CATEGORY,
|
|
365
365
|
f1: true,
|
|
366
366
|
menu: [
|
|
@@ -383,7 +383,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
383
383
|
constructor() {
|
|
384
384
|
super({
|
|
385
385
|
id: 'workbench.profiles.actions.deleteProfile',
|
|
386
|
-
title: ( localize2(
|
|
386
|
+
title: ( localize2(12891, "Delete Profile...")),
|
|
387
387
|
category: PROFILES_CATEGORY,
|
|
388
388
|
f1: true,
|
|
389
389
|
precondition: HAS_PROFILES_CONTEXT,
|
|
@@ -399,11 +399,11 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
399
399
|
if (profiles.length) {
|
|
400
400
|
const picks = await quickInputService.pick(( profiles.map(profile => ({
|
|
401
401
|
label: profile.name,
|
|
402
|
-
description: profile.id === userDataProfileService.currentProfile.id ? ( localize(
|
|
402
|
+
description: profile.id === userDataProfileService.currentProfile.id ? ( localize(12892, "Current")) : undefined,
|
|
403
403
|
profile
|
|
404
404
|
}))), {
|
|
405
|
-
title: ( localize(
|
|
406
|
-
placeHolder: ( localize(
|
|
405
|
+
title: ( localize(12893, "Delete Profile...")),
|
|
406
|
+
placeHolder: ( localize(12894, "Select Profiles to Delete")),
|
|
407
407
|
canPickMany: true
|
|
408
408
|
});
|
|
409
409
|
if (picks) {
|
|
@@ -4,11 +4,11 @@ import { Categories } from '@codingame/monaco-vscode-api/vscode/vs/platform/acti
|
|
|
4
4
|
import { Action2, registerAction2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
5
5
|
import { IUserDataProfilesService } from '@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfile.service';
|
|
6
6
|
import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service';
|
|
7
|
-
import { PROFILES_CATEGORY } from '@codingame/monaco-vscode-
|
|
7
|
+
import { PROFILES_CATEGORY } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/userDataProfile/common/userDataProfile';
|
|
8
8
|
|
|
9
9
|
class CreateTransientProfileAction extends Action2 {
|
|
10
10
|
static { this.ID = 'workbench.profiles.actions.createTemporaryProfile'; }
|
|
11
|
-
static { this.TITLE = ( localize2(
|
|
11
|
+
static { this.TITLE = ( localize2(12895, "New Window with Temporary Profile")); }
|
|
12
12
|
constructor() {
|
|
13
13
|
super({
|
|
14
14
|
id: CreateTransientProfileAction.ID,
|
|
@@ -26,7 +26,7 @@ registerAction2(class CleanupProfilesAction extends Action2 {
|
|
|
26
26
|
constructor() {
|
|
27
27
|
super({
|
|
28
28
|
id: 'workbench.profiles.actions.cleanupProfiles',
|
|
29
|
-
title: ( localize2(
|
|
29
|
+
title: ( localize2(12896, "Cleanup Profiles")),
|
|
30
30
|
category: Categories.Developer,
|
|
31
31
|
f1: true,
|
|
32
32
|
});
|
|
@@ -39,7 +39,7 @@ registerAction2(class ResetWorkspacesAction extends Action2 {
|
|
|
39
39
|
constructor() {
|
|
40
40
|
super({
|
|
41
41
|
id: 'workbench.profiles.actions.resetWorkspaces',
|
|
42
|
-
title: ( localize2(
|
|
42
|
+
title: ( localize2(12897, "Reset Workspace Profiles Associations")),
|
|
43
43
|
category: Categories.Developer,
|
|
44
44
|
f1: true,
|
|
45
45
|
});
|
|
@@ -6,7 +6,7 @@ import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform
|
|
|
6
6
|
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
7
7
|
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
8
8
|
import { IUserDataProfile } from "@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfile";
|
|
9
|
-
import { EditorPane } from "@codingame/monaco-vscode-
|
|
9
|
+
import { EditorPane } from "@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/editor/editorPane";
|
|
10
10
|
import { IEditorOpenContext, IEditorSerializer, IUntypedEditorInput } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor";
|
|
11
11
|
import { EditorInput } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/editorInput";
|
|
12
12
|
import { IUserDataProfilesEditor } from "../common/userDataProfile.js";
|