@codingame/monaco-vscode-user-data-profile-service-override 22.1.8 → 23.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 +14 -13
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/media/userDataProfilesEditor.css +2 -2
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfile.js +24 -24
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfileActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilesEditor.js +82 -82
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilesEditorModel.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/userDataProfile/browser/userDataProfilesEditorModel.js +30 -29
- package/vscode/src/vs/workbench/services/userDataProfile/browser/extensionsResource.d.ts +1 -1
- package/vscode/src/vs/workbench/services/userDataProfile/browser/extensionsResource.js +5 -5
- 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 +43 -41
- 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/contrib/userDataProfile/browser/userDataProfilesEditorModel.js
CHANGED
|
@@ -3,12 +3,13 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
|
|
|
3
3
|
import { toAction, Action, Separator } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actions';
|
|
4
4
|
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
5
5
|
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
6
|
+
import { isMarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
|
|
6
7
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
7
8
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
8
9
|
import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
9
10
|
import { ProfileResourceType, isUserDataProfile, toUserDataProfile } from '@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfile';
|
|
10
11
|
import { IUserDataProfilesService } from '@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfile.service';
|
|
11
|
-
import { isProfileURL } from '@codingame/monaco-vscode-
|
|
12
|
+
import { isProfileURL } from '@codingame/monaco-vscode-dd5b2d07-86ca-557c-8510-224a400e258d-common/vscode/vs/workbench/services/userDataProfile/common/userDataProfile';
|
|
12
13
|
import { IUserDataProfileManagementService, IUserDataProfileService, IUserDataProfileImportExportService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service';
|
|
13
14
|
import { Disposable, DisposableStore, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
14
15
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
@@ -29,7 +30,7 @@ import { generateUuid } from '@codingame/monaco-vscode-api/vscode/vs/base/common
|
|
|
29
30
|
import { RunOnceScheduler, createCancelablePromise } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
30
31
|
import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service';
|
|
31
32
|
import { CancellationTokenSource, CancellationToken } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
32
|
-
import { API_OPEN_EDITOR_COMMAND_ID } from '@codingame/monaco-vscode-
|
|
33
|
+
import { API_OPEN_EDITOR_COMMAND_ID } from '@codingame/monaco-vscode-05c09f77-cd1d-5960-b387-e7023df3160b-common/vscode/vs/workbench/browser/parts/editor/editorCommands';
|
|
33
34
|
import { SIDE_GROUP } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService';
|
|
34
35
|
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
35
36
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
@@ -168,15 +169,15 @@ let AbstractUserDataProfileElement = class AbstractUserDataProfileElement extend
|
|
|
168
169
|
}
|
|
169
170
|
validate() {
|
|
170
171
|
if (!this.name) {
|
|
171
|
-
this.message = ( localize(
|
|
172
|
+
this.message = ( localize(12807, "Profile name is required and must be a non-empty value."));
|
|
172
173
|
return;
|
|
173
174
|
}
|
|
174
175
|
if (this.shouldValidateName() && this.name !== this.getInitialName() && ( this.userDataProfilesService.profiles.some(p => p.name === this.name))) {
|
|
175
|
-
this.message = ( localize(
|
|
176
|
+
this.message = ( localize(12808, "Profile with name {0} already exists.", this.name));
|
|
176
177
|
return;
|
|
177
178
|
}
|
|
178
179
|
if (this.flags && this.flags.settings && this.flags.keybindings && this.flags.tasks && this.flags.snippets && this.flags.extensions) {
|
|
179
|
-
this.message = ( localize(
|
|
180
|
+
this.message = ( localize(12809, "The profile should contain at least one configuration."));
|
|
180
181
|
return;
|
|
181
182
|
}
|
|
182
183
|
this.message = undefined;
|
|
@@ -203,7 +204,7 @@ let AbstractUserDataProfileElement = class AbstractUserDataProfileElement extend
|
|
|
203
204
|
openAction: children.length
|
|
204
205
|
? toAction({
|
|
205
206
|
id: '_open',
|
|
206
|
-
label: ( localize(
|
|
207
|
+
label: ( localize(12810, "Open to the Side")),
|
|
207
208
|
class: ThemeIcon.asClassName(Codicon.goToFile),
|
|
208
209
|
run: () => children[0]?.openAction?.run()
|
|
209
210
|
})
|
|
@@ -245,13 +246,13 @@ let AbstractUserDataProfileElement = class AbstractUserDataProfileElement extend
|
|
|
245
246
|
return {
|
|
246
247
|
handle: child.handle,
|
|
247
248
|
checkbox: child.checkbox,
|
|
248
|
-
label: child.label
|
|
249
|
+
label: child.label ? (isMarkdownString(child.label.label) ? child.label.label.value : child.label.label) : '',
|
|
249
250
|
description: isString(child.description) ? child.description : undefined,
|
|
250
251
|
resource: URI.revive(child.resourceUri),
|
|
251
252
|
icon: child.themeIcon,
|
|
252
253
|
openAction: toAction({
|
|
253
254
|
id: '_openChild',
|
|
254
|
-
label: ( localize(
|
|
255
|
+
label: ( localize(12810, "Open to the Side")),
|
|
255
256
|
class: ThemeIcon.asClassName(Codicon.goToFile),
|
|
256
257
|
run: async () => {
|
|
257
258
|
if (child.parent.type === ProfileResourceType.Extensions) {
|
|
@@ -416,7 +417,7 @@ let UserDataProfileElement = class UserDataProfileElement extends AbstractUserDa
|
|
|
416
417
|
const children = await this.instantiationService.createInstance(ExtensionsResourceExportTreeItem, this.profile).getChildren();
|
|
417
418
|
return (children.map(child => this.toUserDataProfileResourceChildElement(child, undefined, [{
|
|
418
419
|
id: 'applyToAllProfiles',
|
|
419
|
-
label: ( localize(
|
|
420
|
+
label: ( localize(12811, "Apply Extension to all Profiles")),
|
|
420
421
|
checked: child.applicationScoped,
|
|
421
422
|
enabled: true,
|
|
422
423
|
class: '',
|
|
@@ -549,7 +550,7 @@ let NewProfileElement = class NewProfileElement extends AbstractUserDataProfileE
|
|
|
549
550
|
}
|
|
550
551
|
if (isUserDataProfile(this.copyFrom)) {
|
|
551
552
|
if (this.defaultName === this.name) {
|
|
552
|
-
this.name = this.defaultName = ( localize(
|
|
553
|
+
this.name = this.defaultName = ( localize(12812, "{0} (Copy)", this.copyFrom.name));
|
|
553
554
|
}
|
|
554
555
|
if (this.defaultIcon === this.icon) {
|
|
555
556
|
this.icon = this.defaultIcon = this.copyFrom.icon;
|
|
@@ -582,7 +583,7 @@ let NewProfileElement = class NewProfileElement extends AbstractUserDataProfileE
|
|
|
582
583
|
}
|
|
583
584
|
}
|
|
584
585
|
getNewProfileName() {
|
|
585
|
-
const name = ( localize(
|
|
586
|
+
const name = ( localize(12813, "Untitled"));
|
|
586
587
|
const nameRegEx = ( new RegExp(`${name}\\s(\\d+)`));
|
|
587
588
|
let nameIndex = 0;
|
|
588
589
|
for (const profile of this.userDataProfilesService.profiles) {
|
|
@@ -814,11 +815,11 @@ let UserDataProfilesEditorModel = class UserDataProfilesEditorModel extends Edit
|
|
|
814
815
|
}
|
|
815
816
|
createProfileElement(profile) {
|
|
816
817
|
const disposables = ( new DisposableStore());
|
|
817
|
-
const activateAction = disposables.add(( new Action('userDataProfile.activate', ( localize(
|
|
818
|
-
const copyFromProfileAction = disposables.add(( new Action('userDataProfile.copyFromProfile', ( localize(
|
|
819
|
-
const exportAction = disposables.add(( new Action('userDataProfile.export', ( localize(
|
|
820
|
-
const deleteAction = disposables.add(( new Action('userDataProfile.delete', ( localize(
|
|
821
|
-
const newWindowAction = disposables.add(( new Action('userDataProfile.newWindow', ( localize(
|
|
818
|
+
const activateAction = disposables.add(( new Action('userDataProfile.activate', ( localize(12814, "Use this Profile for Current Window")), ThemeIcon.asClassName(Codicon.check), true, () => this.userDataProfileManagementService.switchProfile(profileElement.profile))));
|
|
819
|
+
const copyFromProfileAction = disposables.add(( new Action('userDataProfile.copyFromProfile', ( localize(12815, "Duplicate...")), ThemeIcon.asClassName(Codicon.copy), true, () => this.createNewProfile(profileElement.profile))));
|
|
820
|
+
const exportAction = disposables.add(( new Action('userDataProfile.export', ( localize(12816, "Export...")), ThemeIcon.asClassName(Codicon.export), true, () => this.userDataProfileImportExportService.exportProfile(profile))));
|
|
821
|
+
const deleteAction = disposables.add(( new Action('userDataProfile.delete', ( localize(12817, "Delete")), ThemeIcon.asClassName(Codicon.trash), true, () => this.removeProfile(profileElement.profile))));
|
|
822
|
+
const newWindowAction = disposables.add(( new Action('userDataProfile.newWindow', ( localize(12818, "Open New Window with this Profile")), ThemeIcon.asClassName(Codicon.emptyWindow), true, () => this.openWindow(profileElement.profile))));
|
|
822
823
|
const primaryActions = [];
|
|
823
824
|
primaryActions.push(activateAction);
|
|
824
825
|
primaryActions.push(newWindowAction);
|
|
@@ -839,11 +840,11 @@ let UserDataProfilesEditorModel = class UserDataProfilesEditorModel extends Edit
|
|
|
839
840
|
const result = await this.dialogService.confirm({
|
|
840
841
|
type: 'info',
|
|
841
842
|
message: ( localize(
|
|
842
|
-
|
|
843
|
+
12819,
|
|
843
844
|
"A new profile is already being created. Do you want to discard it and create a new one?"
|
|
844
845
|
)),
|
|
845
|
-
primaryButton: ( localize(
|
|
846
|
-
cancelButton: ( localize(
|
|
846
|
+
primaryButton: ( localize(12820, "Discard & Create")),
|
|
847
|
+
cancelButton: ( localize(12821, "Cancel"))
|
|
847
848
|
});
|
|
848
849
|
if (!result.confirmed) {
|
|
849
850
|
return;
|
|
@@ -865,24 +866,24 @@ let UserDataProfilesEditorModel = class UserDataProfilesEditorModel extends Edit
|
|
|
865
866
|
disposables.add(toDisposable(() => cancellationTokenSource.dispose(true)));
|
|
866
867
|
const primaryActions = [];
|
|
867
868
|
const secondaryActions = [];
|
|
868
|
-
const createAction = disposables.add(( new Action('userDataProfile.create', ( localize(
|
|
869
|
+
const createAction = disposables.add(( new Action('userDataProfile.create', ( localize(12822, "Create")), undefined, true, () => this.saveNewProfile(false, cancellationTokenSource.token))));
|
|
869
870
|
primaryActions.push(createAction);
|
|
870
871
|
if (isWeb && copyFrom instanceof URI && isProfileURL(copyFrom)) {
|
|
871
|
-
primaryActions.push(disposables.add(( new Action('userDataProfile.createInDesktop', ( localize(
|
|
872
|
+
primaryActions.push(disposables.add(( new Action('userDataProfile.createInDesktop', ( localize(12823, "Create in {0}", this.productService.nameLong)), undefined, true, () => this.openerService.open(copyFrom, { openExternal: true })))));
|
|
872
873
|
}
|
|
873
|
-
const cancelAction = disposables.add(( new Action('userDataProfile.cancel', ( localize(
|
|
874
|
+
const cancelAction = disposables.add(( new Action('userDataProfile.cancel', ( localize(12821, "Cancel")), ThemeIcon.asClassName(Codicon.trash), true, () => this.discardNewProfile())));
|
|
874
875
|
secondaryActions.push(cancelAction);
|
|
875
|
-
const previewProfileAction = disposables.add(( new Action('userDataProfile.preview', ( localize(
|
|
876
|
+
const previewProfileAction = disposables.add(( new Action('userDataProfile.preview', ( localize(12824, "Preview")), ThemeIcon.asClassName(Codicon.openPreview), true, () => this.previewNewProfile(cancellationTokenSource.token))));
|
|
876
877
|
secondaryActions.push(previewProfileAction);
|
|
877
|
-
const exportAction = disposables.add(( new Action('userDataProfile.export', ( localize(
|
|
878
|
+
const exportAction = disposables.add(( new Action('userDataProfile.export', ( localize(12816, "Export...")), ThemeIcon.asClassName(Codicon.export), isUserDataProfile(copyFrom), () => this.exportNewProfile(cancellationTokenSource.token))));
|
|
878
879
|
this.newProfileElement = disposables.add(this.instantiationService.createInstance(NewProfileElement, copyFrom, [primaryActions, secondaryActions], [[cancelAction], [exportAction]]));
|
|
879
880
|
const updateCreateActionLabel = () => {
|
|
880
881
|
if (createAction.enabled) {
|
|
881
882
|
if (this.newProfileElement?.copyFrom && ( this.userDataProfilesService.profiles.some(p => !p.isTransient && p.name === this.newProfileElement?.name))) {
|
|
882
|
-
createAction.label = ( localize(
|
|
883
|
+
createAction.label = ( localize(12825, "Replace"));
|
|
883
884
|
}
|
|
884
885
|
else {
|
|
885
|
-
createAction.label = ( localize(
|
|
886
|
+
createAction.label = ( localize(12822, "Create"));
|
|
886
887
|
}
|
|
887
888
|
}
|
|
888
889
|
};
|
|
@@ -1037,9 +1038,9 @@ let UserDataProfilesEditorModel = class UserDataProfilesEditorModel extends Edit
|
|
|
1037
1038
|
async removeProfile(profile) {
|
|
1038
1039
|
const result = await this.dialogService.confirm({
|
|
1039
1040
|
type: 'info',
|
|
1040
|
-
message: ( localize(
|
|
1041
|
-
primaryButton: ( localize(
|
|
1042
|
-
cancelButton: ( localize(
|
|
1041
|
+
message: ( localize(12826, "Are you sure you want to delete the profile '{0}'?", profile.name)),
|
|
1042
|
+
primaryButton: ( localize(12817, "Delete")),
|
|
1043
|
+
cancelButton: ( localize(12821, "Cancel"))
|
|
1043
1044
|
});
|
|
1044
1045
|
if (result.confirmed) {
|
|
1045
1046
|
await this.userDataProfileManagementService.removeProfile(profile);
|
|
@@ -9,7 +9,7 @@ import { IUserDataProfile, ProfileResourceType } from "@codingame/monaco-vscode-
|
|
|
9
9
|
import { IUserDataProfileStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfileStorageService.service";
|
|
10
10
|
import { ITreeItemCheckboxState, TreeItemCollapsibleState } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views";
|
|
11
11
|
import { IWorkbenchExtensionManagementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensionManagement/common/extensionManagement.service";
|
|
12
|
-
import { IProfileResource, IProfileResourceChildTreeItem, IProfileResourceInitializer, IProfileResourceTreeItem } from "@codingame/monaco-vscode-
|
|
12
|
+
import { IProfileResource, IProfileResourceChildTreeItem, IProfileResourceInitializer, IProfileResourceTreeItem } from "@codingame/monaco-vscode-dd5b2d07-86ca-557c-8510-224a400e258d-common/vscode/vs/workbench/services/userDataProfile/common/userDataProfile";
|
|
13
13
|
import { IUserDataProfileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service";
|
|
14
14
|
interface IProfileExtension {
|
|
15
15
|
identifier: IExtensionIdentifier;
|
|
@@ -173,7 +173,7 @@ let ExtensionsResource = class ExtensionsResource {
|
|
|
173
173
|
return;
|
|
174
174
|
}
|
|
175
175
|
progress?.(( localize(
|
|
176
|
-
|
|
176
|
+
14289,
|
|
177
177
|
"Installing extension {0}...",
|
|
178
178
|
installExtensionInfo.extension.displayName ?? installExtensionInfo.extension.identifier.id
|
|
179
179
|
)));
|
|
@@ -266,7 +266,7 @@ class ExtensionsResourceTreeItem {
|
|
|
266
266
|
constructor() {
|
|
267
267
|
this.type = ProfileResourceType.Extensions;
|
|
268
268
|
this.handle = ProfileResourceType.Extensions;
|
|
269
|
-
this.label = { label: ( localize(
|
|
269
|
+
this.label = { label: ( localize(14290, "Extensions")) };
|
|
270
270
|
this.collapsibleState = TreeItemCollapsibleState.Expanded;
|
|
271
271
|
this.contextValue = ProfileResourceType.Extensions;
|
|
272
272
|
this.excludedExtensions = ( new Set());
|
|
@@ -279,7 +279,7 @@ class ExtensionsResourceTreeItem {
|
|
|
279
279
|
handle: e.identifier.id.toLowerCase(),
|
|
280
280
|
parent: this,
|
|
281
281
|
label: { label: e.displayName || e.identifier.id },
|
|
282
|
-
description: e.applicationScoped ? ( localize(
|
|
282
|
+
description: e.applicationScoped ? ( localize(14291, "All Profiles")) : undefined,
|
|
283
283
|
collapsibleState: TreeItemCollapsibleState.None,
|
|
284
284
|
checkbox: that.checkbox ? {
|
|
285
285
|
get isChecked() { return !( that.excludedExtensions.has(e.identifier.id.toLowerCase())); },
|
|
@@ -291,9 +291,9 @@ class ExtensionsResourceTreeItem {
|
|
|
291
291
|
that.excludedExtensions.add(e.identifier.id.toLowerCase());
|
|
292
292
|
}
|
|
293
293
|
},
|
|
294
|
-
tooltip: ( localize(
|
|
294
|
+
tooltip: ( localize(14292, "Select {0} Extension", e.displayName || e.identifier.id)),
|
|
295
295
|
accessibilityInformation: {
|
|
296
|
-
label: ( localize(
|
|
296
|
+
label: ( localize(14292, "Select {0} Extension", e.displayName || e.identifier.id)),
|
|
297
297
|
}
|
|
298
298
|
} : undefined,
|
|
299
299
|
themeIcon: Codicon.extensions,
|
|
@@ -7,7 +7,7 @@ import { IUriIdentityService } from "@codingame/monaco-vscode-api/vscode/vs/plat
|
|
|
7
7
|
import { IUserDataProfile, ProfileResourceType } from "@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfile";
|
|
8
8
|
import { IUserDataProfileStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfileStorageService.service";
|
|
9
9
|
import { ITreeItemCheckboxState, TreeItemCollapsibleState } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views";
|
|
10
|
-
import { IProfileResource, IProfileResourceChildTreeItem, IProfileResourceInitializer, IProfileResourceTreeItem } from "@codingame/monaco-vscode-
|
|
10
|
+
import { IProfileResource, IProfileResourceChildTreeItem, IProfileResourceInitializer, IProfileResourceTreeItem } from "@codingame/monaco-vscode-dd5b2d07-86ca-557c-8510-224a400e258d-common/vscode/vs/workbench/services/userDataProfile/common/userDataProfile";
|
|
11
11
|
interface IGlobalState {
|
|
12
12
|
storage: IStringDictionary<string>;
|
|
13
13
|
}
|
|
@@ -8,7 +8,7 @@ import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform
|
|
|
8
8
|
import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
9
9
|
import { ProfileResourceType } from '@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfile';
|
|
10
10
|
import { IUserDataProfileStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfileStorageService.service';
|
|
11
|
-
import { API_OPEN_EDITOR_COMMAND_ID } from '@codingame/monaco-vscode-
|
|
11
|
+
import { API_OPEN_EDITOR_COMMAND_ID } from '@codingame/monaco-vscode-05c09f77-cd1d-5960-b387-e7023df3160b-common/vscode/vs/workbench/browser/parts/editor/editorCommands';
|
|
12
12
|
import { TreeItemCollapsibleState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
13
13
|
|
|
14
14
|
let GlobalStateResourceInitializer = class GlobalStateResourceInitializer {
|
|
@@ -86,7 +86,7 @@ class GlobalStateResourceTreeItem {
|
|
|
86
86
|
this.uriIdentityService = uriIdentityService;
|
|
87
87
|
this.type = ProfileResourceType.GlobalState;
|
|
88
88
|
this.handle = ProfileResourceType.GlobalState;
|
|
89
|
-
this.label = { label: ( localize(
|
|
89
|
+
this.label = { label: ( localize(14293, "UI State")) };
|
|
90
90
|
this.collapsibleState = TreeItemCollapsibleState.Collapsed;
|
|
91
91
|
}
|
|
92
92
|
async getChildren() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
2
2
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
3
|
-
import { IProfileResource, IProfileResourceChildTreeItem, IProfileResourceInitializer, IProfileResourceTreeItem } from "@codingame/monaco-vscode-
|
|
3
|
+
import { IProfileResource, IProfileResourceChildTreeItem, IProfileResourceInitializer, IProfileResourceTreeItem } from "@codingame/monaco-vscode-dd5b2d07-86ca-557c-8510-224a400e258d-common/vscode/vs/workbench/services/userDataProfile/common/userDataProfile";
|
|
4
4
|
import { IUserDataProfileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service";
|
|
5
5
|
import { Platform } from "@codingame/monaco-vscode-api/vscode/vs/base/common/platform";
|
|
6
6
|
import { ITreeItemCheckboxState, TreeItemCollapsibleState } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views";
|
|
@@ -8,7 +8,7 @@ import { IUserDataProfileService } from '@codingame/monaco-vscode-api/vscode/vs/
|
|
|
8
8
|
import { platform } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
9
9
|
import { TreeItemCollapsibleState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
10
10
|
import { ProfileResourceType } from '@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfile';
|
|
11
|
-
import { API_OPEN_EDITOR_COMMAND_ID } from '@codingame/monaco-vscode-
|
|
11
|
+
import { API_OPEN_EDITOR_COMMAND_ID } from '@codingame/monaco-vscode-05c09f77-cd1d-5960-b387-e7023df3160b-common/vscode/vs/workbench/browser/parts/editor/editorCommands';
|
|
12
12
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
13
13
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
14
14
|
import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
@@ -80,7 +80,7 @@ let KeybindingsResourceTreeItem = class KeybindingsResourceTreeItem {
|
|
|
80
80
|
this.instantiationService = instantiationService;
|
|
81
81
|
this.type = ProfileResourceType.Keybindings;
|
|
82
82
|
this.handle = ProfileResourceType.Keybindings;
|
|
83
|
-
this.label = { label: ( localize(
|
|
83
|
+
this.label = { label: ( localize(14294, "Keyboard Shortcuts")) };
|
|
84
84
|
this.collapsibleState = TreeItemCollapsibleState.Expanded;
|
|
85
85
|
}
|
|
86
86
|
isFromDefaultProfile() {
|
|
@@ -4,7 +4,7 @@ import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log
|
|
|
4
4
|
import { IUriIdentityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
|
|
5
5
|
import { IUserDataProfile, ProfileResourceType } from "@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfile";
|
|
6
6
|
import { ITreeItemCheckboxState, TreeItemCollapsibleState } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views";
|
|
7
|
-
import { IProfileResource, IProfileResourceChildTreeItem, IProfileResourceInitializer, IProfileResourceTreeItem } from "@codingame/monaco-vscode-
|
|
7
|
+
import { IProfileResource, IProfileResourceChildTreeItem, IProfileResourceInitializer, IProfileResourceTreeItem } from "@codingame/monaco-vscode-dd5b2d07-86ca-557c-8510-224a400e258d-common/vscode/vs/workbench/services/userDataProfile/common/userDataProfile";
|
|
8
8
|
import { IUserDataProfileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service";
|
|
9
9
|
interface IMcpResourceContent {
|
|
10
10
|
readonly mcp: string | null;
|
|
@@ -8,7 +8,7 @@ import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
8
8
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
9
9
|
import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
10
10
|
import { ProfileResourceType } from '@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfile';
|
|
11
|
-
import { API_OPEN_EDITOR_COMMAND_ID } from '@codingame/monaco-vscode-
|
|
11
|
+
import { API_OPEN_EDITOR_COMMAND_ID } from '@codingame/monaco-vscode-05c09f77-cd1d-5960-b387-e7023df3160b-common/vscode/vs/workbench/browser/parts/editor/editorCommands';
|
|
12
12
|
import { TreeItemCollapsibleState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
13
13
|
import { IUserDataProfileService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service';
|
|
14
14
|
|
|
@@ -79,7 +79,7 @@ let McpResourceTreeItem = class McpResourceTreeItem {
|
|
|
79
79
|
this.instantiationService = instantiationService;
|
|
80
80
|
this.type = ProfileResourceType.Mcp;
|
|
81
81
|
this.handle = ProfileResourceType.Mcp;
|
|
82
|
-
this.label = { label: ( localize(
|
|
82
|
+
this.label = { label: ( localize(14295, "MCP Servers")) };
|
|
83
83
|
this.collapsibleState = TreeItemCollapsibleState.Expanded;
|
|
84
84
|
}
|
|
85
85
|
async getChildren() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
2
2
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
3
|
-
import { IProfileResource, IProfileResourceChildTreeItem, IProfileResourceInitializer, IProfileResourceTreeItem } from "@codingame/monaco-vscode-
|
|
3
|
+
import { IProfileResource, IProfileResourceChildTreeItem, IProfileResourceInitializer, IProfileResourceTreeItem } from "@codingame/monaco-vscode-dd5b2d07-86ca-557c-8510-224a400e258d-common/vscode/vs/workbench/services/userDataProfile/common/userDataProfile";
|
|
4
4
|
import { IUserDataProfileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service";
|
|
5
5
|
import { IUserDataSyncUtilService } from "@codingame/monaco-vscode-api/vscode/vs/platform/userDataSync/common/userDataSync.service";
|
|
6
6
|
import { ITreeItemCheckboxState, TreeItemCollapsibleState } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views";
|
|
@@ -7,11 +7,11 @@ import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/fi
|
|
|
7
7
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
8
8
|
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
9
9
|
import { IUserDataProfileService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service';
|
|
10
|
-
import { updateIgnoredSettings } from '@codingame/monaco-vscode-
|
|
10
|
+
import { updateIgnoredSettings } from '@codingame/monaco-vscode-dd5b2d07-86ca-557c-8510-224a400e258d-common/vscode/vs/platform/userDataSync/common/settingsMerge';
|
|
11
11
|
import { IUserDataSyncUtilService } from '@codingame/monaco-vscode-api/vscode/vs/platform/userDataSync/common/userDataSync.service';
|
|
12
12
|
import { TreeItemCollapsibleState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
13
13
|
import { ProfileResourceType } from '@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfile';
|
|
14
|
-
import { API_OPEN_EDITOR_COMMAND_ID } from '@codingame/monaco-vscode-
|
|
14
|
+
import { API_OPEN_EDITOR_COMMAND_ID } from '@codingame/monaco-vscode-05c09f77-cd1d-5960-b387-e7023df3160b-common/vscode/vs/workbench/browser/parts/editor/editorCommands';
|
|
15
15
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
16
16
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
17
17
|
import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
@@ -101,7 +101,7 @@ let SettingsResourceTreeItem = class SettingsResourceTreeItem {
|
|
|
101
101
|
this.instantiationService = instantiationService;
|
|
102
102
|
this.type = ProfileResourceType.Settings;
|
|
103
103
|
this.handle = ProfileResourceType.Settings;
|
|
104
|
-
this.label = { label: ( localize(
|
|
104
|
+
this.label = { label: ( localize(14296, "Settings")) };
|
|
105
105
|
this.collapsibleState = TreeItemCollapsibleState.Expanded;
|
|
106
106
|
}
|
|
107
107
|
async getChildren() {
|
|
@@ -5,7 +5,7 @@ import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
5
5
|
import { IUriIdentityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
|
|
6
6
|
import { IUserDataProfile, ProfileResourceType } from "@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfile";
|
|
7
7
|
import { ITreeItemCheckboxState, TreeItemCollapsibleState } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views";
|
|
8
|
-
import { IProfileResource, IProfileResourceChildTreeItem, IProfileResourceInitializer, IProfileResourceTreeItem } from "@codingame/monaco-vscode-
|
|
8
|
+
import { IProfileResource, IProfileResourceChildTreeItem, IProfileResourceInitializer, IProfileResourceTreeItem } from "@codingame/monaco-vscode-dd5b2d07-86ca-557c-8510-224a400e258d-common/vscode/vs/workbench/services/userDataProfile/common/userDataProfile";
|
|
9
9
|
import { IUserDataProfileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service";
|
|
10
10
|
export declare class SnippetsResourceInitializer implements IProfileResourceInitializer {
|
|
11
11
|
private readonly userDataProfileService;
|
|
@@ -8,7 +8,7 @@ import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/fi
|
|
|
8
8
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
9
9
|
import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
10
10
|
import { ProfileResourceType } from '@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfile';
|
|
11
|
-
import { API_OPEN_EDITOR_COMMAND_ID } from '@codingame/monaco-vscode-
|
|
11
|
+
import { API_OPEN_EDITOR_COMMAND_ID } from '@codingame/monaco-vscode-05c09f77-cd1d-5960-b387-e7023df3160b-common/vscode/vs/workbench/browser/parts/editor/editorCommands';
|
|
12
12
|
import { TreeItemCollapsibleState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
13
13
|
import { IUserDataProfileService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service';
|
|
14
14
|
|
|
@@ -93,7 +93,7 @@ let SnippetsResourceTreeItem = class SnippetsResourceTreeItem {
|
|
|
93
93
|
this.instantiationService = instantiationService;
|
|
94
94
|
this.uriIdentityService = uriIdentityService;
|
|
95
95
|
this.type = ProfileResourceType.Snippets;
|
|
96
|
-
this.label = { label: ( localize(
|
|
96
|
+
this.label = { label: ( localize(14297, "Snippets")) };
|
|
97
97
|
this.collapsibleState = TreeItemCollapsibleState.Collapsed;
|
|
98
98
|
this.excludedSnippets = ( new ResourceSet());
|
|
99
99
|
this.handle = ( this.profile.snippetsHome.toString());
|
|
@@ -121,7 +121,7 @@ let SnippetsResourceTreeItem = class SnippetsResourceTreeItem {
|
|
|
121
121
|
},
|
|
122
122
|
accessibilityInformation: {
|
|
123
123
|
label: ( localize(
|
|
124
|
-
|
|
124
|
+
14298,
|
|
125
125
|
"Select Snippet {0}",
|
|
126
126
|
this.uriIdentityService.extUri.basename(resource)
|
|
127
127
|
)),
|
|
@@ -4,7 +4,7 @@ import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log
|
|
|
4
4
|
import { IUriIdentityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
|
|
5
5
|
import { IUserDataProfile, ProfileResourceType } from "@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfile";
|
|
6
6
|
import { ITreeItemCheckboxState, TreeItemCollapsibleState } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views";
|
|
7
|
-
import { IProfileResource, IProfileResourceChildTreeItem, IProfileResourceInitializer, IProfileResourceTreeItem } from "@codingame/monaco-vscode-
|
|
7
|
+
import { IProfileResource, IProfileResourceChildTreeItem, IProfileResourceInitializer, IProfileResourceTreeItem } from "@codingame/monaco-vscode-dd5b2d07-86ca-557c-8510-224a400e258d-common/vscode/vs/workbench/services/userDataProfile/common/userDataProfile";
|
|
8
8
|
import { IUserDataProfileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service";
|
|
9
9
|
interface ITasksResourceContent {
|
|
10
10
|
tasks: string | null;
|
|
@@ -8,7 +8,7 @@ import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
8
8
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
9
9
|
import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
10
10
|
import { ProfileResourceType } from '@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfile';
|
|
11
|
-
import { API_OPEN_EDITOR_COMMAND_ID } from '@codingame/monaco-vscode-
|
|
11
|
+
import { API_OPEN_EDITOR_COMMAND_ID } from '@codingame/monaco-vscode-05c09f77-cd1d-5960-b387-e7023df3160b-common/vscode/vs/workbench/browser/parts/editor/editorCommands';
|
|
12
12
|
import { TreeItemCollapsibleState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
13
13
|
import { IUserDataProfileService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service';
|
|
14
14
|
|
|
@@ -79,7 +79,7 @@ let TasksResourceTreeItem = class TasksResourceTreeItem {
|
|
|
79
79
|
this.instantiationService = instantiationService;
|
|
80
80
|
this.type = ProfileResourceType.Tasks;
|
|
81
81
|
this.handle = ProfileResourceType.Tasks;
|
|
82
|
-
this.label = { label: ( localize(
|
|
82
|
+
this.label = { label: ( localize(14299, "Tasks")) };
|
|
83
83
|
this.collapsibleState = TreeItemCollapsibleState.Expanded;
|
|
84
84
|
}
|
|
85
85
|
async getChildren() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
2
|
-
import { IUserDataProfileContentHandler, IProfileImportOptions, IUserDataProfileCreateOptions } from "@codingame/monaco-vscode-
|
|
2
|
+
import { IUserDataProfileContentHandler, IProfileImportOptions, IUserDataProfileCreateOptions } from "@codingame/monaco-vscode-dd5b2d07-86ca-557c-8510-224a400e258d-common/vscode/vs/workbench/services/userDataProfile/common/userDataProfile";
|
|
3
3
|
import { IUserDataProfileImportExportService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service";
|
|
4
4
|
import { IUserDataProfileManagementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service";
|
|
5
5
|
import { IUserDataProfileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service";
|