@codingame/monaco-vscode-user-data-profile-service-override 9.0.3 → 10.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/_virtual/semver.js +5 -0
- package/package.json +2 -2
- package/userDataProfile.js +10 -5
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfileStorageService.js +10 -8
- package/vscode/src/vs/platform/userDataSync/common/extensionsMerge.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/extensionsSync.js +20 -20
- package/vscode/src/vs/platform/userDataSync/common/globalStateSync.js +25 -26
- package/vscode/src/vs/platform/userDataSync/common/keybindingsSync.js +27 -28
- package/vscode/src/vs/platform/userDataSync/common/settingsSync.js +21 -24
- package/vscode/src/vs/platform/userDataSync/common/snippetsSync.js +40 -40
- package/vscode/src/vs/platform/userDataSync/common/tasksSync.js +14 -14
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/media/userDataProfilesEditor.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfile.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfile.js +26 -24
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfileActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilesEditor.js +577 -138
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilesEditorModel.js +242 -103
- package/vscode/src/vs/workbench/services/userData/browser/userDataInit.js +1 -2
- package/vscode/src/vs/workbench/services/userDataProfile/browser/extensionsResource.js +11 -11
- package/vscode/src/vs/workbench/services/userDataProfile/browser/globalStateResource.js +9 -11
- package/vscode/src/vs/workbench/services/userDataProfile/browser/keybindingsResource.js +5 -6
- package/vscode/src/vs/workbench/services/userDataProfile/browser/settingsResource.js +7 -8
- package/vscode/src/vs/workbench/services/userDataProfile/browser/snippetsResource.js +5 -6
- package/vscode/src/vs/workbench/services/userDataProfile/browser/tasksResource.js +5 -6
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService.js +44 -46
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileInit.js +7 -9
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileManagement.js +75 -34
- package/vscode/src/vs/workbench/services/userDataProfile/browser/userDataProfileStorageService.js +3 -4
- package/vscode/src/vs/workbench/services/userDataSync/browser/userDataSyncInit.js +13 -15
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSyncUtil.js +0 -1
|
@@ -6,7 +6,6 @@ import { MenuId, MenuRegistry, registerAction2, Action2 } from 'vscode/vscode/vs
|
|
|
6
6
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
7
7
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
8
8
|
import { IUserDataProfilesService } from 'vscode/vscode/vs/platform/userDataProfile/common/userDataProfile.service';
|
|
9
|
-
import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
10
9
|
import { ILifecycleService } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
|
|
11
10
|
import { CURRENT_PROFILE_CONTEXT, PROFILES_ENABLEMENT_CONTEXT, IS_CURRENT_PROFILE_TRANSIENT_CONTEXT, HAS_PROFILES_CONTEXT, isProfileURL, PROFILES_CATEGORY, PROFILES_TITLE } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile';
|
|
12
11
|
import { IUserDataProfileService, IUserDataProfileManagementService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service';
|
|
@@ -61,11 +60,11 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
61
60
|
this.registerActions();
|
|
62
61
|
this._register(this.urlService.registerHandler(this));
|
|
63
62
|
if (isWeb) {
|
|
64
|
-
lifecycleService.when(
|
|
63
|
+
lifecycleService.when(4 ).then(() => userDataProfilesService.cleanUp());
|
|
65
64
|
}
|
|
66
65
|
this.reportWorkspaceProfileInfo();
|
|
67
66
|
if (environmentService.options?.profileToPreview) {
|
|
68
|
-
lifecycleService.when(
|
|
67
|
+
lifecycleService.when(3 ).then(() => this.handleURL(URI.revive(environmentService.options.profileToPreview)));
|
|
69
68
|
}
|
|
70
69
|
}
|
|
71
70
|
async handleURL(uri) {
|
|
@@ -83,7 +82,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
83
82
|
return editor;
|
|
84
83
|
}
|
|
85
84
|
registerEditor() {
|
|
86
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(UserDataProfilesEditor, UserDataProfilesEditor.ID, ( localize(
|
|
85
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(UserDataProfilesEditor, UserDataProfilesEditor.ID, ( localize(8916, "Profiles Editor"))), [
|
|
87
86
|
( (new SyncDescriptor(UserDataProfilesEditorInput)))
|
|
88
87
|
]);
|
|
89
88
|
( (Registry.as(EditorExtensions.EditorFactory))).registerEditorSerializer(UserDataProfilesEditorInput.ID, UserDataProfilesEditorInputSerializer);
|
|
@@ -103,7 +102,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
103
102
|
}
|
|
104
103
|
registerOpenProfileSubMenu() {
|
|
105
104
|
MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
106
|
-
title: ( localize(
|
|
105
|
+
title: ( localize(8917, "New Window with Profile")),
|
|
107
106
|
submenu: OpenProfileMenu,
|
|
108
107
|
group: '1_new',
|
|
109
108
|
order: 4,
|
|
@@ -122,7 +121,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
122
121
|
constructor() {
|
|
123
122
|
super({
|
|
124
123
|
id: `workbench.profiles.actions.newWindowWithProfile`,
|
|
125
|
-
title: ( localize2(
|
|
124
|
+
title: ( localize2(8918, "New Window with Profile...")),
|
|
126
125
|
category: PROFILES_CATEGORY,
|
|
127
126
|
precondition: HAS_PROFILES_CONTEXT,
|
|
128
127
|
f1: true,
|
|
@@ -136,8 +135,8 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
136
135
|
label: profile.name,
|
|
137
136
|
profile
|
|
138
137
|
})))), {
|
|
139
|
-
title: ( localize(
|
|
140
|
-
placeHolder: ( localize(
|
|
138
|
+
title: ( localize(8919, "New Window with Profile")),
|
|
139
|
+
placeHolder: ( localize(8920, "Select Profile")),
|
|
141
140
|
canPickMany: false
|
|
142
141
|
});
|
|
143
142
|
if (pick) {
|
|
@@ -153,7 +152,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
153
152
|
constructor() {
|
|
154
153
|
super({
|
|
155
154
|
id,
|
|
156
|
-
title: ( localize2(
|
|
155
|
+
title: ( localize2(8921, "{0}", profile.name)),
|
|
157
156
|
menu: {
|
|
158
157
|
id: OpenProfileMenu,
|
|
159
158
|
group: '0_profiles',
|
|
@@ -170,7 +169,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
170
169
|
command: {
|
|
171
170
|
id,
|
|
172
171
|
category: PROFILES_CATEGORY,
|
|
173
|
-
title: ( localize2(
|
|
172
|
+
title: ( localize2(8922, "Open {0} Profile", profile.name)),
|
|
174
173
|
precondition: HAS_PROFILES_CONTEXT
|
|
175
174
|
},
|
|
176
175
|
}));
|
|
@@ -182,7 +181,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
182
181
|
constructor() {
|
|
183
182
|
super({
|
|
184
183
|
id: `workbench.profiles.actions.switchProfile`,
|
|
185
|
-
title: ( localize2(
|
|
184
|
+
title: ( localize2(8923, 'Switch Profile...')),
|
|
186
185
|
category: PROFILES_CATEGORY,
|
|
187
186
|
f1: true,
|
|
188
187
|
precondition: PROFILES_ENABLEMENT_CONTEXT,
|
|
@@ -199,7 +198,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
199
198
|
});
|
|
200
199
|
}
|
|
201
200
|
const result = await quickInputService.pick(items.sort((a, b) => a.profile.name.localeCompare(b.profile.name)), {
|
|
202
|
-
placeHolder: ( localize(
|
|
201
|
+
placeHolder: ( localize(8924, "Select Profile"))
|
|
203
202
|
});
|
|
204
203
|
if (result) {
|
|
205
204
|
await that.userDataProfileManagementService.switchProfile(result.profile);
|
|
@@ -214,8 +213,8 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
214
213
|
super({
|
|
215
214
|
id: `workbench.profiles.actions.manageProfiles`,
|
|
216
215
|
title: {
|
|
217
|
-
...( localize2(
|
|
218
|
-
mnemonicTitle: ( localize(
|
|
216
|
+
...( localize2(8925, "Profiles")),
|
|
217
|
+
mnemonicTitle: ( localize(8926, "&&Profiles")),
|
|
219
218
|
},
|
|
220
219
|
menu: [
|
|
221
220
|
{
|
|
@@ -241,7 +240,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
241
240
|
command: {
|
|
242
241
|
id: 'workbench.profiles.actions.manageProfiles',
|
|
243
242
|
category: Categories.Preferences,
|
|
244
|
-
title: ( localize2(
|
|
243
|
+
title: ( localize2(8927, "Open Profiles (UI)")),
|
|
245
244
|
},
|
|
246
245
|
}));
|
|
247
246
|
return disposables;
|
|
@@ -254,7 +253,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
254
253
|
constructor() {
|
|
255
254
|
super({
|
|
256
255
|
id,
|
|
257
|
-
title: ( localize2(
|
|
256
|
+
title: ( localize2(8928, "Export Profile...")),
|
|
258
257
|
category: PROFILES_CATEGORY,
|
|
259
258
|
f1: true,
|
|
260
259
|
});
|
|
@@ -268,7 +267,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
268
267
|
command: {
|
|
269
268
|
id,
|
|
270
269
|
title: ( localize2(
|
|
271
|
-
|
|
270
|
+
8929,
|
|
272
271
|
"Export Profile ({0})...",
|
|
273
272
|
that.userDataProfileService.currentProfile.name
|
|
274
273
|
)),
|
|
@@ -283,7 +282,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
283
282
|
constructor() {
|
|
284
283
|
super({
|
|
285
284
|
id: 'workbench.profiles.actions.createFromCurrentProfile',
|
|
286
|
-
title: ( localize2(
|
|
285
|
+
title: ( localize2(8930, "Save Current Profile As...")),
|
|
287
286
|
category: PROFILES_CATEGORY,
|
|
288
287
|
f1: true,
|
|
289
288
|
precondition: PROFILES_ENABLEMENT_CONTEXT
|
|
@@ -301,7 +300,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
301
300
|
constructor() {
|
|
302
301
|
super({
|
|
303
302
|
id: 'workbench.profiles.actions.createProfile',
|
|
304
|
-
title: ( localize2(
|
|
303
|
+
title: ( localize2(8931, "New Profile...")),
|
|
305
304
|
category: PROFILES_CATEGORY,
|
|
306
305
|
precondition: PROFILES_ENABLEMENT_CONTEXT,
|
|
307
306
|
f1: true,
|
|
@@ -325,7 +324,7 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
325
324
|
constructor() {
|
|
326
325
|
super({
|
|
327
326
|
id: 'workbench.profiles.actions.deleteProfile',
|
|
328
|
-
title: ( localize2(
|
|
327
|
+
title: ( localize2(8932, "Delete Profile...")),
|
|
329
328
|
category: PROFILES_CATEGORY,
|
|
330
329
|
f1: true,
|
|
331
330
|
precondition: ( (ContextKeyExpr.and(PROFILES_ENABLEMENT_CONTEXT, HAS_PROFILES_CONTEXT))),
|
|
@@ -341,11 +340,11 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
341
340
|
if (profiles.length) {
|
|
342
341
|
const picks = await quickInputService.pick(( (profiles.map(profile => ({
|
|
343
342
|
label: profile.name,
|
|
344
|
-
description: profile.id === userDataProfileService.currentProfile.id ? ( localize(
|
|
343
|
+
description: profile.id === userDataProfileService.currentProfile.id ? ( localize(8933, "Current")) : undefined,
|
|
345
344
|
profile
|
|
346
345
|
})))), {
|
|
347
|
-
title: ( localize(
|
|
348
|
-
placeHolder: ( localize(
|
|
346
|
+
title: ( localize(8934, "Delete Profile...")),
|
|
347
|
+
placeHolder: ( localize(8935, "Select Profiles to Delete")),
|
|
349
348
|
canPickMany: true
|
|
350
349
|
});
|
|
351
350
|
if (picks) {
|
|
@@ -378,7 +377,10 @@ let UserDataProfilesWorkbenchContribution = class UserDataProfilesWorkbenchContr
|
|
|
378
377
|
}));
|
|
379
378
|
}
|
|
380
379
|
async reportWorkspaceProfileInfo() {
|
|
381
|
-
await this.lifecycleService.when(
|
|
380
|
+
await this.lifecycleService.when(4 );
|
|
381
|
+
if (this.userDataProfilesService.profiles.length > 1) {
|
|
382
|
+
this.telemetryService.publicLog2('profiles:count', { count: this.userDataProfilesService.profiles.length - 1 });
|
|
383
|
+
}
|
|
382
384
|
const workspaceId = await this.workspaceTagsService.getTelemetryWorkspaceId(this.workspaceContextService.getWorkspace(), this.workspaceContextService.getWorkbenchState());
|
|
383
385
|
this.telemetryService.publicLog2('workspaceProfileInfo', {
|
|
384
386
|
workspaceId,
|
|
@@ -7,7 +7,7 @@ import { IUserDataProfileManagementService } from 'vscode/vscode/vs/workbench/se
|
|
|
7
7
|
|
|
8
8
|
class CreateTransientProfileAction extends Action2 {
|
|
9
9
|
static { this.ID = 'workbench.profiles.actions.createTemporaryProfile'; }
|
|
10
|
-
static { this.TITLE = ( localize2(
|
|
10
|
+
static { this.TITLE = ( localize2(8936, "Create a Temporary Profile")); }
|
|
11
11
|
constructor() {
|
|
12
12
|
super({
|
|
13
13
|
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(8937, "Cleanup Profiles")),
|
|
30
30
|
category: Categories.Developer,
|
|
31
31
|
f1: true,
|
|
32
32
|
precondition: PROFILES_ENABLEMENT_CONTEXT,
|
|
@@ -40,7 +40,7 @@ registerAction2(class ResetWorkspacesAction extends Action2 {
|
|
|
40
40
|
constructor() {
|
|
41
41
|
super({
|
|
42
42
|
id: 'workbench.profiles.actions.resetWorkspaces',
|
|
43
|
-
title: ( localize2(
|
|
43
|
+
title: ( localize2(8938, "Reset Workspace Profiles Associations")),
|
|
44
44
|
category: Categories.Developer,
|
|
45
45
|
f1: true,
|
|
46
46
|
precondition: PROFILES_ENABLEMENT_CONTEXT,
|