@codingame/monaco-vscode-user-data-profile-service-override 30.0.0 → 31.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 +29 -27
- 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
|
@@ -77,9 +77,9 @@ import { Orientation } from '@codingame/monaco-vscode-api/vscode/vs/base/browser
|
|
|
77
77
|
|
|
78
78
|
var UserDataProfilesEditor_1, ExistingProfileResourceTreeRenderer_1, NewProfileResourceTreeRenderer_1, ProfileResourceChildTreeItemRenderer_1, WorkspaceUriHostColumnRenderer_1, WorkspaceUriPathColumnRenderer_1, WorkspaceUriActionsColumnRenderer_1, UserDataProfilesEditorInput_1;
|
|
79
79
|
registerCss(userDataProfilesEditor);
|
|
80
|
-
const editIcon = registerIcon("profiles-editor-edit-folder", Codicon.edit, ( localize(
|
|
81
|
-
const removeIcon = registerIcon("profiles-editor-remove-folder", Codicon.close, ( localize(
|
|
82
|
-
const profilesSashBorder = registerColor("profiles.sashBorder", PANEL_BORDER, ( localize(
|
|
80
|
+
const editIcon = registerIcon("profiles-editor-edit-folder", Codicon.edit, ( localize(15109, "Icon for the edit folder icon in the profiles editor.")));
|
|
81
|
+
const removeIcon = registerIcon("profiles-editor-remove-folder", Codicon.close, ( localize(15110, "Icon for the remove folder icon in the profiles editor.")));
|
|
82
|
+
const profilesSashBorder = registerColor("profiles.sashBorder", PANEL_BORDER, ( localize(15111, "The color of the Profiles editor splitview sash border.")));
|
|
83
83
|
const listStyles = getListStyles({
|
|
84
84
|
listActiveSelectionBackground: editorBackground,
|
|
85
85
|
listActiveSelectionForeground: foreground,
|
|
@@ -202,7 +202,7 @@ let UserDataProfilesEditor = class UserDataProfilesEditor extends EditorPane {
|
|
|
202
202
|
return profileElement?.name ?? "";
|
|
203
203
|
},
|
|
204
204
|
getWidgetAriaLabel() {
|
|
205
|
-
return localize(
|
|
205
|
+
return localize(15112, "Profiles");
|
|
206
206
|
}
|
|
207
207
|
},
|
|
208
208
|
openOnSingleClick: true,
|
|
@@ -224,12 +224,12 @@ let UserDataProfilesEditor = class UserDataProfilesEditor extends EditorPane {
|
|
|
224
224
|
getActions: () => {
|
|
225
225
|
const actions = [];
|
|
226
226
|
if (this.templates.length) {
|
|
227
|
-
actions.push(( new SubmenuAction("from.template", ( localize(
|
|
227
|
+
actions.push(( new SubmenuAction("from.template", ( localize(15113, "From Template")), this.getCreateFromTemplateActions())));
|
|
228
228
|
actions.push(( new Separator()));
|
|
229
229
|
}
|
|
230
230
|
actions.push(toAction({
|
|
231
231
|
id: "importProfile",
|
|
232
|
-
label: ( localize(
|
|
232
|
+
label: ( localize(15114, "Import Profile...")),
|
|
233
233
|
run: () => this.importProfile()
|
|
234
234
|
}));
|
|
235
235
|
return actions;
|
|
@@ -240,7 +240,7 @@ let UserDataProfilesEditor = class UserDataProfilesEditor extends EditorPane {
|
|
|
240
240
|
supportIcons: true,
|
|
241
241
|
...defaultButtonStyles
|
|
242
242
|
})));
|
|
243
|
-
button.label = ( localize(
|
|
243
|
+
button.label = ( localize(15115, "New Profile"));
|
|
244
244
|
this._register(button.onDidClick(e => this.createNewProfile()));
|
|
245
245
|
}
|
|
246
246
|
getCreateFromTemplateActions() {
|
|
@@ -285,17 +285,17 @@ let UserDataProfilesEditor = class UserDataProfilesEditor extends EditorPane {
|
|
|
285
285
|
const actions = [];
|
|
286
286
|
actions.push(toAction({
|
|
287
287
|
id: "newProfile",
|
|
288
|
-
label: ( localize(
|
|
288
|
+
label: ( localize(15115, "New Profile")),
|
|
289
289
|
run: () => this.createNewProfile()
|
|
290
290
|
}));
|
|
291
291
|
const templateActions = this.getCreateFromTemplateActions();
|
|
292
292
|
if (templateActions.length) {
|
|
293
|
-
actions.push(( new SubmenuAction("from.template", ( localize(
|
|
293
|
+
actions.push(( new SubmenuAction("from.template", ( localize(15116, "New Profile From Template")), templateActions)));
|
|
294
294
|
}
|
|
295
295
|
actions.push(( new Separator()));
|
|
296
296
|
actions.push(toAction({
|
|
297
297
|
id: "importProfile",
|
|
298
|
-
label: ( localize(
|
|
298
|
+
label: ( localize(15114, "Import Profile...")),
|
|
299
299
|
run: () => this.importProfile()
|
|
300
300
|
}));
|
|
301
301
|
return actions;
|
|
@@ -308,16 +308,16 @@ let UserDataProfilesEditor = class UserDataProfilesEditor extends EditorPane {
|
|
|
308
308
|
if (value) {
|
|
309
309
|
quickPickItems.push({
|
|
310
310
|
label: quickPick.value,
|
|
311
|
-
description: ( localize(
|
|
311
|
+
description: ( localize(15117, "Import from URL"))
|
|
312
312
|
});
|
|
313
313
|
}
|
|
314
314
|
quickPickItems.push({
|
|
315
|
-
label: ( localize(
|
|
315
|
+
label: ( localize(15118, "Select File..."))
|
|
316
316
|
});
|
|
317
317
|
quickPick.items = quickPickItems;
|
|
318
318
|
};
|
|
319
|
-
quickPick.title = ( localize(
|
|
320
|
-
quickPick.placeholder = ( localize(
|
|
319
|
+
quickPick.title = ( localize(15119, "Import from Profile Template..."));
|
|
320
|
+
quickPick.placeholder = ( localize(15120, "Provide Profile Template URL"));
|
|
321
321
|
quickPick.ignoreFocusOut = true;
|
|
322
322
|
disposables.add(quickPick.onDidChangeValue(updateQuickPickItems));
|
|
323
323
|
updateQuickPickItems();
|
|
@@ -352,7 +352,7 @@ let UserDataProfilesEditor = class UserDataProfilesEditor extends EditorPane {
|
|
|
352
352
|
canSelectFiles: true,
|
|
353
353
|
canSelectMany: false,
|
|
354
354
|
filters: PROFILE_FILTER,
|
|
355
|
-
title: ( localize(
|
|
355
|
+
title: ( localize(15121, "Select Profile Template File"))
|
|
356
356
|
});
|
|
357
357
|
if (!profileLocation) {
|
|
358
358
|
return null;
|
|
@@ -424,7 +424,7 @@ let ProfileElementRenderer = class ProfileElementRenderer {
|
|
|
424
424
|
append(
|
|
425
425
|
description,
|
|
426
426
|
$(`span${ThemeIcon.asCSSSelector(Codicon.check)}`),
|
|
427
|
-
$("span", undefined, ( localize(
|
|
427
|
+
$("span", undefined, ( localize(15122, "Active")))
|
|
428
428
|
);
|
|
429
429
|
const actionsContainer = append(container, $(".profile-tree-item-actions-container"));
|
|
430
430
|
const actionBar = disposables.add(
|
|
@@ -505,7 +505,7 @@ let ProfileWidget = class ProfileWidget extends Disposable {
|
|
|
505
505
|
const header = append(parent, $(".profile-header"));
|
|
506
506
|
const title = append(header, $(".profile-title-container"));
|
|
507
507
|
this.profileTitle = append(title, $(".profile-title"));
|
|
508
|
-
this.builtInLabel = append(title, $(".profile-built-in-label", undefined, ( localize(
|
|
508
|
+
this.builtInLabel = append(title, $(".profile-built-in-label", undefined, ( localize(15123, "Built-in"))));
|
|
509
509
|
this.builtInLabel.classList.add("hide");
|
|
510
510
|
const body = append(parent, $(".profile-body"));
|
|
511
511
|
const delegate = ( new ProfileTreeDelegate());
|
|
@@ -843,17 +843,17 @@ class AbstractProfileResourceTreeRenderer extends Disposable {
|
|
|
843
843
|
getResourceTypeTitle(resourceType) {
|
|
844
844
|
switch (resourceType) {
|
|
845
845
|
case ProfileResourceType.Settings:
|
|
846
|
-
return localize(
|
|
846
|
+
return localize(15124, "Settings");
|
|
847
847
|
case ProfileResourceType.Keybindings:
|
|
848
|
-
return localize(
|
|
848
|
+
return localize(15125, "Keyboard Shortcuts");
|
|
849
849
|
case ProfileResourceType.Snippets:
|
|
850
|
-
return localize(
|
|
850
|
+
return localize(15126, "Snippets");
|
|
851
851
|
case ProfileResourceType.Tasks:
|
|
852
|
-
return localize(
|
|
852
|
+
return localize(15127, "Tasks");
|
|
853
853
|
case ProfileResourceType.Mcp:
|
|
854
|
-
return localize(
|
|
854
|
+
return localize(15128, "MCP Servers");
|
|
855
855
|
case ProfileResourceType.Extensions:
|
|
856
|
-
return localize(
|
|
856
|
+
return localize(15129, "Extensions");
|
|
857
857
|
}
|
|
858
858
|
return "";
|
|
859
859
|
}
|
|
@@ -888,18 +888,18 @@ let ProfileNameRenderer = class ProfileNameRenderer extends ProfilePropertyRende
|
|
|
888
888
|
const elementDisposables = disposables.add(( new DisposableStore()));
|
|
889
889
|
let profileElement;
|
|
890
890
|
const nameContainer = append(parent, $(".profile-row-container"));
|
|
891
|
-
append(nameContainer, $(".profile-label-element", undefined, ( localize(
|
|
891
|
+
append(nameContainer, $(".profile-label-element", undefined, ( localize(15130, "Name"))));
|
|
892
892
|
const nameInput = disposables.add(( new InputBox(nameContainer, this.contextViewService, {
|
|
893
893
|
inputBoxStyles: getInputBoxStyle({
|
|
894
894
|
inputBorder: settingsTextInputBorder
|
|
895
895
|
}),
|
|
896
|
-
ariaLabel: ( localize(
|
|
897
|
-
placeholder: ( localize(
|
|
896
|
+
ariaLabel: ( localize(15131, "Profile Name")),
|
|
897
|
+
placeholder: ( localize(15131, "Profile Name")),
|
|
898
898
|
validationOptions: {
|
|
899
899
|
validation: value => {
|
|
900
900
|
if (!value) {
|
|
901
901
|
return {
|
|
902
|
-
content: ( localize(
|
|
902
|
+
content: ( localize(15132, "Profile name is required and must be a non-empty value.")),
|
|
903
903
|
type: MessageType.WARNING
|
|
904
904
|
};
|
|
905
905
|
}
|
|
@@ -913,7 +913,7 @@ let ProfileNameRenderer = class ProfileNameRenderer extends ProfilePropertyRende
|
|
|
913
913
|
value = value.trim();
|
|
914
914
|
if (initialName !== value && ( this.userDataProfilesService.profiles.some(p => !p.isTransient && p.name === value))) {
|
|
915
915
|
return {
|
|
916
|
-
content: ( localize(
|
|
916
|
+
content: ( localize(15133, "Profile with name {0} already exists.", value)),
|
|
917
917
|
type: MessageType.WARNING
|
|
918
918
|
};
|
|
919
919
|
}
|
|
@@ -942,9 +942,9 @@ let ProfileNameRenderer = class ProfileNameRenderer extends ProfilePropertyRende
|
|
|
942
942
|
nameInput.enable();
|
|
943
943
|
}
|
|
944
944
|
if (isSystemProfile) {
|
|
945
|
-
nameInput.setTooltip(( localize(
|
|
945
|
+
nameInput.setTooltip(( localize(15134, "Name cannot be changed for the built in profiles")));
|
|
946
946
|
} else {
|
|
947
|
-
nameInput.setTooltip(( localize(
|
|
947
|
+
nameInput.setTooltip(( localize(15131, "Profile Name")));
|
|
948
948
|
}
|
|
949
949
|
};
|
|
950
950
|
return {
|
|
@@ -979,12 +979,12 @@ let ProfileIconRenderer = class ProfileIconRenderer extends ProfilePropertyRende
|
|
|
979
979
|
const elementDisposables = disposables.add(( new DisposableStore()));
|
|
980
980
|
let profileElement;
|
|
981
981
|
const iconContainer = append(parent, $(".profile-row-container"));
|
|
982
|
-
append(iconContainer, $(".profile-label-element", undefined, ( localize(
|
|
982
|
+
append(iconContainer, $(".profile-label-element", undefined, ( localize(15135, "Icon"))));
|
|
983
983
|
const iconValueContainer = append(iconContainer, $(".profile-icon-container"));
|
|
984
984
|
const iconElement = append(iconValueContainer, $(`${ThemeIcon.asCSSSelector(DEFAULT_ICON)}`, {
|
|
985
985
|
"tabindex": "0",
|
|
986
986
|
"role": "button",
|
|
987
|
-
"aria-label": ( localize(
|
|
987
|
+
"aria-label": ( localize(15136, "Profile Icon"))
|
|
988
988
|
}));
|
|
989
989
|
const iconHover = disposables.add(this.hoverService.setupManagedHover(this.hoverDelegate, iconElement, ""));
|
|
990
990
|
const iconSelectBox = disposables.add(this.instantiationService.createInstance(WorkbenchIconSelectBox, {
|
|
@@ -1049,14 +1049,14 @@ let ProfileIconRenderer = class ProfileIconRenderer extends ProfilePropertyRende
|
|
|
1049
1049
|
}));
|
|
1050
1050
|
append(
|
|
1051
1051
|
iconValueContainer,
|
|
1052
|
-
$(".profile-description-element", undefined, ( localize(
|
|
1052
|
+
$(".profile-description-element", undefined, ( localize(15137, "Profile icon to be shown in the activity bar")))
|
|
1053
1053
|
);
|
|
1054
1054
|
const renderIcon = profileElement => {
|
|
1055
1055
|
if (profileElement?.root instanceof UserDataProfileElement && profileElement.root.profile.isDefault) {
|
|
1056
1056
|
iconValueContainer.classList.add("disabled");
|
|
1057
|
-
iconHover.update(( localize(
|
|
1057
|
+
iconHover.update(( localize(15138, "Icon cannot be changed for the default profile")));
|
|
1058
1058
|
} else {
|
|
1059
|
-
iconHover.update(( localize(
|
|
1059
|
+
iconHover.update(( localize(15139, "Click to change icon")));
|
|
1060
1060
|
iconValueContainer.classList.remove("disabled");
|
|
1061
1061
|
}
|
|
1062
1062
|
if (profileElement.root.icon) {
|
|
@@ -1094,10 +1094,10 @@ let UseForCurrentWindowPropertyRenderer = class UseForCurrentWindowPropertyRende
|
|
|
1094
1094
|
const useForCurrentWindowContainer = append(parent, $(".profile-row-container"));
|
|
1095
1095
|
append(
|
|
1096
1096
|
useForCurrentWindowContainer,
|
|
1097
|
-
$(".profile-label-element", undefined, ( localize(
|
|
1097
|
+
$(".profile-label-element", undefined, ( localize(15140, "Use for Current Window")))
|
|
1098
1098
|
);
|
|
1099
1099
|
const useForCurrentWindowValueContainer = append(useForCurrentWindowContainer, $(".profile-use-for-current-container"));
|
|
1100
|
-
const useForCurrentWindowTitle = ( localize(
|
|
1100
|
+
const useForCurrentWindowTitle = ( localize(15141, "Use this profile for the current window"));
|
|
1101
1101
|
const useForCurrentWindowCheckbox = disposables.add(( new Checkbox(useForCurrentWindowTitle, false, defaultCheckboxStyles)));
|
|
1102
1102
|
append(useForCurrentWindowValueContainer, useForCurrentWindowCheckbox.domNode);
|
|
1103
1103
|
const useForCurrentWindowLabel = append(
|
|
@@ -1149,10 +1149,10 @@ class UseAsDefaultProfileRenderer extends ProfilePropertyRenderer {
|
|
|
1149
1149
|
const useAsDefaultProfileContainer = append(parent, $(".profile-row-container"));
|
|
1150
1150
|
append(
|
|
1151
1151
|
useAsDefaultProfileContainer,
|
|
1152
|
-
$(".profile-label-element", undefined, ( localize(
|
|
1152
|
+
$(".profile-label-element", undefined, ( localize(15142, "Use for New Windows")))
|
|
1153
1153
|
);
|
|
1154
1154
|
const useAsDefaultProfileValueContainer = append(useAsDefaultProfileContainer, $(".profile-use-as-default-container"));
|
|
1155
|
-
const useAsDefaultProfileTitle = ( localize(
|
|
1155
|
+
const useAsDefaultProfileTitle = ( localize(15143, "Use this profile as the default for new windows"));
|
|
1156
1156
|
const useAsDefaultProfileCheckbox = disposables.add(( new Checkbox(useAsDefaultProfileTitle, false, defaultCheckboxStyles)));
|
|
1157
1157
|
append(useAsDefaultProfileValueContainer, useAsDefaultProfileCheckbox.domNode);
|
|
1158
1158
|
const useAsDefaultProfileLabel = append(
|
|
@@ -1207,15 +1207,15 @@ let CopyFromProfileRenderer = class CopyFromProfileRenderer extends ProfilePrope
|
|
|
1207
1207
|
const elementDisposables = disposables.add(( new DisposableStore()));
|
|
1208
1208
|
let profileElement;
|
|
1209
1209
|
const copyFromContainer = append(parent, $(".profile-row-container.profile-copy-from-container"));
|
|
1210
|
-
append(copyFromContainer, $(".profile-label-element", undefined, ( localize(
|
|
1210
|
+
append(copyFromContainer, $(".profile-label-element", undefined, ( localize(15144, "Copy from"))));
|
|
1211
1211
|
append(
|
|
1212
1212
|
copyFromContainer,
|
|
1213
|
-
$(".profile-description-element", undefined, ( localize(
|
|
1213
|
+
$(".profile-description-element", undefined, ( localize(15145, "Select the profile source from which you want to copy contents")))
|
|
1214
1214
|
);
|
|
1215
1215
|
const copyFromSelectBox = disposables.add(
|
|
1216
1216
|
this.instantiationService.createInstance(SelectBox, [], 0, this.contextViewService, defaultSelectBoxStyles, {
|
|
1217
1217
|
useCustomDrawn: true,
|
|
1218
|
-
ariaLabel: ( localize(
|
|
1218
|
+
ariaLabel: ( localize(15146, "Copy profile from"))
|
|
1219
1219
|
})
|
|
1220
1220
|
);
|
|
1221
1221
|
copyFromSelectBox.render(append(copyFromContainer, $(".profile-select-container")));
|
|
@@ -1258,7 +1258,7 @@ let CopyFromProfileRenderer = class CopyFromProfileRenderer extends ProfilePrope
|
|
|
1258
1258
|
getCopyFromOptions(profileElement) {
|
|
1259
1259
|
const copyFromOptions = [];
|
|
1260
1260
|
copyFromOptions.push({
|
|
1261
|
-
text: ( localize(
|
|
1261
|
+
text: ( localize(15147, "None"))
|
|
1262
1262
|
});
|
|
1263
1263
|
for (const [copyFromTemplate, name] of profileElement.copyFromTemplates) {
|
|
1264
1264
|
if (!( this.templates.some(template => this.uriIdentityService.extUri.isEqual(( URI.parse(template.url)), copyFromTemplate)))) {
|
|
@@ -1272,7 +1272,7 @@ let CopyFromProfileRenderer = class CopyFromProfileRenderer extends ProfilePrope
|
|
|
1272
1272
|
if (this.templates.length) {
|
|
1273
1273
|
copyFromOptions.push({
|
|
1274
1274
|
...SeparatorSelectOption,
|
|
1275
|
-
decoratorRight: ( localize(
|
|
1275
|
+
decoratorRight: ( localize(15148, "Profile Templates"))
|
|
1276
1276
|
});
|
|
1277
1277
|
for (const template of this.templates) {
|
|
1278
1278
|
copyFromOptions.push({
|
|
@@ -1284,7 +1284,7 @@ let CopyFromProfileRenderer = class CopyFromProfileRenderer extends ProfilePrope
|
|
|
1284
1284
|
}
|
|
1285
1285
|
copyFromOptions.push({
|
|
1286
1286
|
...SeparatorSelectOption,
|
|
1287
|
-
decoratorRight: ( localize(
|
|
1287
|
+
decoratorRight: ( localize(15149, "Existing Profiles"))
|
|
1288
1288
|
});
|
|
1289
1289
|
for (const profile of this.userDataProfilesService.profiles) {
|
|
1290
1290
|
if (!profile.isTransient) {
|
|
@@ -1318,12 +1318,12 @@ let ContentsProfileRenderer = class ContentsProfileRenderer extends ProfilePrope
|
|
|
1318
1318
|
const configureRowContainer = append(parent, $(".profile-row-container"));
|
|
1319
1319
|
append(
|
|
1320
1320
|
configureRowContainer,
|
|
1321
|
-
$(".profile-label-element", undefined, ( localize(
|
|
1321
|
+
$(".profile-label-element", undefined, ( localize(15150, "Contents")))
|
|
1322
1322
|
);
|
|
1323
1323
|
const contentsDescriptionElement = append(configureRowContainer, $(".profile-description-element"));
|
|
1324
1324
|
const contentsTreeHeader = append(configureRowContainer, $(".profile-content-tree-header"));
|
|
1325
|
-
const optionsLabel = $(".options-header", undefined, $("span", undefined, ( localize(
|
|
1326
|
-
append(contentsTreeHeader, $(""), $("", undefined, ( localize(
|
|
1325
|
+
const optionsLabel = $(".options-header", undefined, $("span", undefined, ( localize(15151, "Source"))));
|
|
1326
|
+
append(contentsTreeHeader, $(""), $("", undefined, ( localize(15150, "Contents"))), optionsLabel, $(""));
|
|
1327
1327
|
const delegate = ( new ProfileContentTreeElementDelegate());
|
|
1328
1328
|
const profilesContentTree = this.profilesContentTree = disposables.add(
|
|
1329
1329
|
this.instantiationService.createInstance(WorkbenchAsyncDataTree, "ProfileEditor-ContentsTree", append(
|
|
@@ -1403,21 +1403,21 @@ let ContentsProfileRenderer = class ContentsProfileRenderer extends ProfilePrope
|
|
|
1403
1403
|
clearNode(contentsDescriptionElement);
|
|
1404
1404
|
const markdown = ( new MarkdownString());
|
|
1405
1405
|
if (element.root instanceof UserDataProfileElement && element.root.profile.isDefault) {
|
|
1406
|
-
markdown.appendMarkdown(( localize(
|
|
1406
|
+
markdown.appendMarkdown(( localize(15152, "Browse contents of this profile\n")));
|
|
1407
1407
|
} else {
|
|
1408
|
-
markdown.appendMarkdown(( localize(
|
|
1408
|
+
markdown.appendMarkdown(( localize(15153, "Configure source of contents for this profile\n")));
|
|
1409
1409
|
if (element.root instanceof NewProfileElement) {
|
|
1410
1410
|
const copyFromName = element.root.getCopyFromName();
|
|
1411
|
-
const optionName = copyFromName === this.userDataProfilesService.defaultProfile.name ? ( localize(
|
|
1411
|
+
const optionName = copyFromName === this.userDataProfilesService.defaultProfile.name ? ( localize(15154, "{0} (Copy)", copyFromName)) : copyFromName;
|
|
1412
1412
|
if (optionName) {
|
|
1413
1413
|
markdown.appendMarkdown(( localize(
|
|
1414
|
-
|
|
1414
|
+
15155,
|
|
1415
1415
|
"- *{0}:* Copy contents from the {1} profile\n",
|
|
1416
1416
|
optionName,
|
|
1417
1417
|
copyFromName
|
|
1418
1418
|
)));
|
|
1419
1419
|
}
|
|
1420
|
-
markdown.appendMarkdown(( localize(
|
|
1420
|
+
markdown.appendMarkdown(( localize(15156, "- *Default:* Use contents from the Default profile\n"))).appendMarkdown(( localize(15157, "- *None:* Create empty contents\n")));
|
|
1421
1421
|
}
|
|
1422
1422
|
}
|
|
1423
1423
|
append(
|
|
@@ -1478,7 +1478,7 @@ let ProfileWorkspacesRenderer = class ProfileWorkspacesRenderer extends ProfileP
|
|
|
1478
1478
|
const profileWorkspacesRowContainer = append(parent, $(".profile-row-container"));
|
|
1479
1479
|
append(
|
|
1480
1480
|
profileWorkspacesRowContainer,
|
|
1481
|
-
$(".profile-label-element", undefined, ( localize(
|
|
1481
|
+
$(".profile-label-element", undefined, ( localize(15158, "Folders & Workspaces")))
|
|
1482
1482
|
);
|
|
1483
1483
|
const profileWorkspacesDescriptionElement = append(profileWorkspacesRowContainer, $(".profile-description-element"));
|
|
1484
1484
|
const workspacesTableContainer = append(profileWorkspacesRowContainer, $(".profile-associations-table"));
|
|
@@ -1505,7 +1505,7 @@ let ProfileWorkspacesRenderer = class ProfileWorkspacesRenderer extends ProfileP
|
|
|
1505
1505
|
return row;
|
|
1506
1506
|
}
|
|
1507
1507
|
}, {
|
|
1508
|
-
label: ( localize(
|
|
1508
|
+
label: ( localize(15159, "Host")),
|
|
1509
1509
|
tooltip: "",
|
|
1510
1510
|
weight: 2,
|
|
1511
1511
|
templateId: WorkspaceUriHostColumnRenderer.TEMPLATE_ID,
|
|
@@ -1513,7 +1513,7 @@ let ProfileWorkspacesRenderer = class ProfileWorkspacesRenderer extends ProfileP
|
|
|
1513
1513
|
return row;
|
|
1514
1514
|
}
|
|
1515
1515
|
}, {
|
|
1516
|
-
label: ( localize(
|
|
1516
|
+
label: ( localize(15160, "Path")),
|
|
1517
1517
|
tooltip: "",
|
|
1518
1518
|
weight: 7,
|
|
1519
1519
|
templateId: WorkspaceUriPathColumnRenderer.TEMPLATE_ID,
|
|
@@ -1541,16 +1541,16 @@ let ProfileWorkspacesRenderer = class ProfileWorkspacesRenderer extends ProfileP
|
|
|
1541
1541
|
getAriaLabel: item => {
|
|
1542
1542
|
const hostLabel = getHostLabel(this.labelService, item.workspace);
|
|
1543
1543
|
if (hostLabel === undefined || hostLabel.length === 0) {
|
|
1544
|
-
return localize(
|
|
1544
|
+
return localize(15161, "{0}, trusted", this.labelService.getUriLabel(item.workspace));
|
|
1545
1545
|
}
|
|
1546
1546
|
return localize(
|
|
1547
|
-
|
|
1547
|
+
15162,
|
|
1548
1548
|
"{0} on {1}, trusted",
|
|
1549
1549
|
this.labelService.getUriLabel(item.workspace),
|
|
1550
1550
|
hostLabel
|
|
1551
1551
|
);
|
|
1552
1552
|
},
|
|
1553
|
-
getWidgetAriaLabel: () => ( localize(
|
|
1553
|
+
getWidgetAriaLabel: () => ( localize(15163, "Trusted Folders & Workspaces"))
|
|
1554
1554
|
},
|
|
1555
1555
|
identityProvider: {
|
|
1556
1556
|
getId(element) {
|
|
@@ -1572,17 +1572,17 @@ let ProfileWorkspacesRenderer = class ProfileWorkspacesRenderer extends ProfileP
|
|
|
1572
1572
|
const addButtonBarElement = append(profileWorkspacesRowContainer, $(".profile-workspaces-button-container"));
|
|
1573
1573
|
const buttonBar = disposables.add(( new ButtonBar(addButtonBarElement)));
|
|
1574
1574
|
const addButton = this._register(buttonBar.addButton({
|
|
1575
|
-
title: ( localize(
|
|
1575
|
+
title: ( localize(15164, "Add Folder")),
|
|
1576
1576
|
...defaultButtonStyles
|
|
1577
1577
|
}));
|
|
1578
|
-
addButton.label = ( localize(
|
|
1578
|
+
addButton.label = ( localize(15164, "Add Folder"));
|
|
1579
1579
|
disposables.add(addButton.onDidClick(async () => {
|
|
1580
1580
|
const uris = await this.fileDialogService.showOpenDialog({
|
|
1581
1581
|
canSelectFiles: false,
|
|
1582
1582
|
canSelectFolders: true,
|
|
1583
1583
|
canSelectMany: true,
|
|
1584
|
-
openLabel: ( localize(
|
|
1585
|
-
title: ( localize(
|
|
1584
|
+
openLabel: ( localize(15165, "Add Folder")),
|
|
1585
|
+
title: ( localize(15166, "Select Folders To Add"))
|
|
1586
1586
|
});
|
|
1587
1587
|
if (uris) {
|
|
1588
1588
|
if (profileElement?.root instanceof UserDataProfileElement) {
|
|
@@ -1597,7 +1597,7 @@ let ProfileWorkspacesRenderer = class ProfileWorkspacesRenderer extends ProfileP
|
|
|
1597
1597
|
}));
|
|
1598
1598
|
const updateTable = () => {
|
|
1599
1599
|
if (profileElement?.root instanceof UserDataProfileElement && profileElement.root.workspaces?.length) {
|
|
1600
|
-
profileWorkspacesDescriptionElement.textContent = ( localize(
|
|
1600
|
+
profileWorkspacesDescriptionElement.textContent = ( localize(15167, "Following folders and workspaces are using this profile"));
|
|
1601
1601
|
workspacesTableContainer.classList.remove("hide");
|
|
1602
1602
|
table.splice(0, table.length, ( profileElement.root.workspaces.map(workspace => ({
|
|
1603
1603
|
workspace,
|
|
@@ -1605,7 +1605,7 @@ let ProfileWorkspacesRenderer = class ProfileWorkspacesRenderer extends ProfileP
|
|
|
1605
1605
|
}))).sort((a, b) => this.uriIdentityService.extUri.compare(a.workspace, b.workspace)));
|
|
1606
1606
|
this.layout();
|
|
1607
1607
|
} else {
|
|
1608
|
-
profileWorkspacesDescriptionElement.textContent = ( localize(
|
|
1608
|
+
profileWorkspacesDescriptionElement.textContent = ( localize(15168, "No folders or workspaces are using this profile"));
|
|
1609
1609
|
workspacesTableContainer.classList.add("hide");
|
|
1610
1610
|
}
|
|
1611
1611
|
};
|
|
@@ -1700,12 +1700,12 @@ let ExistingProfileResourceTreeRenderer = class ExistingProfileResourceTreeRende
|
|
|
1700
1700
|
}
|
|
1701
1701
|
const updateRadioItems = () => {
|
|
1702
1702
|
templateData.radio.setItems([{
|
|
1703
|
-
text: ( localize(
|
|
1704
|
-
tooltip: ( localize(
|
|
1703
|
+
text: ( localize(15169, "Default")),
|
|
1704
|
+
tooltip: ( localize(15170, "Use {0} from the Default profile", resourceTypeTitle)),
|
|
1705
1705
|
isActive: root.getFlag(element.resourceType)
|
|
1706
1706
|
}, {
|
|
1707
1707
|
text: root.name,
|
|
1708
|
-
tooltip: ( localize(
|
|
1708
|
+
tooltip: ( localize(15171, "Use {0} from the {1} profile", resourceTypeTitle, root.name)),
|
|
1709
1709
|
isActive: !root.getFlag(element.resourceType)
|
|
1710
1710
|
}]);
|
|
1711
1711
|
};
|
|
@@ -1798,18 +1798,18 @@ let NewProfileResourceTreeRenderer = class NewProfileResourceTreeRenderer extend
|
|
|
1798
1798
|
templateData.label.textContent = resourceTypeTitle;
|
|
1799
1799
|
const renderRadioItems = () => {
|
|
1800
1800
|
const options = [{
|
|
1801
|
-
text: ( localize(
|
|
1802
|
-
tooltip: ( localize(
|
|
1801
|
+
text: ( localize(15169, "Default")),
|
|
1802
|
+
tooltip: ( localize(15170, "Use {0} from the Default profile", resourceTypeTitle))
|
|
1803
1803
|
}, {
|
|
1804
|
-
text: ( localize(
|
|
1805
|
-
tooltip: ( localize(
|
|
1804
|
+
text: ( localize(15172, "None")),
|
|
1805
|
+
tooltip: ( localize(15173, "Create empty {0}", resourceTypeTitle))
|
|
1806
1806
|
}];
|
|
1807
1807
|
const copyFromName = root.getCopyFromName();
|
|
1808
|
-
const name = copyFromName === this.userDataProfilesService.defaultProfile.name ? ( localize(
|
|
1808
|
+
const name = copyFromName === this.userDataProfilesService.defaultProfile.name ? ( localize(15154, "{0} (Copy)", copyFromName)) : copyFromName;
|
|
1809
1809
|
if (root.copyFrom && name) {
|
|
1810
1810
|
templateData.radio.setItems([{
|
|
1811
1811
|
text: name,
|
|
1812
|
-
tooltip: name ? ( localize(
|
|
1812
|
+
tooltip: name ? ( localize(15174, "Copy {0} from the {1} profile", resourceTypeTitle, name)) : ( localize(15175, "Copy"))
|
|
1813
1813
|
}, ...options]);
|
|
1814
1814
|
templateData.radio.setActiveItem(
|
|
1815
1815
|
root.getCopyFlag(element.resourceType) ? 0 : root.getFlag(element.resourceType) ? 1 : 2
|
|
@@ -2057,7 +2057,7 @@ let ChangeProfileAction = class ChangeProfileAction {
|
|
|
2057
2057
|
this.id = "changeProfile";
|
|
2058
2058
|
this.label = "Change Profile";
|
|
2059
2059
|
this.class = ThemeIcon.asClassName(editIcon);
|
|
2060
|
-
this.tooltip = ( localize(
|
|
2060
|
+
this.tooltip = ( localize(15176, "Change Profile"));
|
|
2061
2061
|
this.checked = false;
|
|
2062
2062
|
this.enabled = !uriIdentityService.extUri.isEqual(item.workspace, environmentService.agentSessionsWorkspace);
|
|
2063
2063
|
}
|
|
@@ -2149,7 +2149,7 @@ let WorkspaceUriActionsColumnRenderer = class WorkspaceUriActionsColumnRenderer
|
|
|
2149
2149
|
class: ThemeIcon.asClassName(Codicon.window),
|
|
2150
2150
|
enabled: !this.uriIdentityService.extUri.isEqual(item.workspace, item.profileElement.getCurrentWorkspace()),
|
|
2151
2151
|
id: "openWorkspace",
|
|
2152
|
-
tooltip: ( localize(
|
|
2152
|
+
tooltip: ( localize(15177, "Open in New Window")),
|
|
2153
2153
|
run: () => item.profileElement.openWorkspace(item.workspace)
|
|
2154
2154
|
};
|
|
2155
2155
|
}
|
|
@@ -2160,7 +2160,7 @@ let WorkspaceUriActionsColumnRenderer = class WorkspaceUriActionsColumnRenderer
|
|
|
2160
2160
|
class: ThemeIcon.asClassName(removeIcon),
|
|
2161
2161
|
enabled: this.userDataProfileManagementService.getDefaultProfileToUse().id !== item.profileElement.profile.id && !isAgentSessionsWorkspace,
|
|
2162
2162
|
id: "deleteTrustedUri",
|
|
2163
|
-
tooltip: ( localize(
|
|
2163
|
+
tooltip: ( localize(15178, "Delete Path")),
|
|
2164
2164
|
run: () => item.profileElement.updateWorkspaces([], [item.workspace])
|
|
2165
2165
|
};
|
|
2166
2166
|
}
|
|
@@ -2170,7 +2170,7 @@ let WorkspaceUriActionsColumnRenderer = class WorkspaceUriActionsColumnRenderer
|
|
|
2170
2170
|
};
|
|
2171
2171
|
WorkspaceUriActionsColumnRenderer = WorkspaceUriActionsColumnRenderer_1 = ( __decorate([( __param(0, IUserDataProfilesService)), ( __param(1, IUserDataProfileManagementService)), ( __param(2, IContextMenuService)), ( __param(3, IUriIdentityService)), ( __param(4, IEnvironmentService))], WorkspaceUriActionsColumnRenderer));
|
|
2172
2172
|
function getHostLabel(labelService, workspaceUri) {
|
|
2173
|
-
return workspaceUri.authority ? labelService.getHostLabel(workspaceUri.scheme, workspaceUri.authority) : ( localize(
|
|
2173
|
+
return workspaceUri.authority ? labelService.getHostLabel(workspaceUri.scheme, workspaceUri.authority) : ( localize(15179, "Local"));
|
|
2174
2174
|
}
|
|
2175
2175
|
let UserDataProfilesEditorInput = class UserDataProfilesEditorInput extends EditorInput {
|
|
2176
2176
|
static {
|
|
@@ -2203,7 +2203,7 @@ let UserDataProfilesEditorInput = class UserDataProfilesEditorInput extends Edit
|
|
|
2203
2203
|
return UserDataProfilesEditorInput_1.ID;
|
|
2204
2204
|
}
|
|
2205
2205
|
getName() {
|
|
2206
|
-
return localize(
|
|
2206
|
+
return localize(15180, "Profiles");
|
|
2207
2207
|
}
|
|
2208
2208
|
getIcon() {
|
|
2209
2209
|
return defaultUserDataProfileIcon;
|