@codingame/monaco-vscode-explorer-service-override 9.0.0 → 9.0.3
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-explorer-service-override",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.3",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@9.0.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@9.0.3"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -143,15 +143,15 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
143
143
|
});
|
|
144
144
|
const copyPathCommand = {
|
|
145
145
|
id: COPY_PATH_COMMAND_ID,
|
|
146
|
-
title: ( localize(
|
|
146
|
+
title: ( localize(2207, "Copy Path"))
|
|
147
147
|
};
|
|
148
148
|
const copyRelativePathCommand = {
|
|
149
149
|
id: COPY_RELATIVE_PATH_COMMAND_ID,
|
|
150
|
-
title: ( localize(
|
|
150
|
+
title: ( localize(2208, "Copy Relative Path"))
|
|
151
151
|
};
|
|
152
152
|
appendEditorTitleContextMenuItem(COPY_PATH_COMMAND_ID, copyPathCommand.title, ResourceContextKey.IsFileSystemResource, '1_cutcopypaste', true);
|
|
153
153
|
appendEditorTitleContextMenuItem(COPY_RELATIVE_PATH_COMMAND_ID, copyRelativePathCommand.title, ResourceContextKey.IsFileSystemResource, '1_cutcopypaste', true);
|
|
154
|
-
appendEditorTitleContextMenuItem(REVEAL_IN_EXPLORER_COMMAND_ID, ( localize(
|
|
154
|
+
appendEditorTitleContextMenuItem(REVEAL_IN_EXPLORER_COMMAND_ID, ( localize(2209, "Reveal in Explorer View")), ResourceContextKey.IsFileSystemResource, '2_files', false, 1);
|
|
155
155
|
function appendEditorTitleContextMenuItem(id, title, when, group, supportsMultiSelect, order) {
|
|
156
156
|
const precondition = supportsMultiSelect !== true ? ( (MultipleEditorsSelectedInGroupContext.negate())) : undefined;
|
|
157
157
|
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, {
|
|
@@ -161,8 +161,8 @@ function appendEditorTitleContextMenuItem(id, title, when, group, supportsMultiS
|
|
|
161
161
|
order,
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
|
-
appendSaveConflictEditorTitleAction('workbench.files.action.acceptLocalChanges', ( localize(
|
|
165
|
-
appendSaveConflictEditorTitleAction('workbench.files.action.revertLocalChanges', ( localize(
|
|
164
|
+
appendSaveConflictEditorTitleAction('workbench.files.action.acceptLocalChanges', ( localize(2210, "Use your changes and overwrite file contents")), Codicon.check, -10, acceptLocalChangesCommand);
|
|
165
|
+
appendSaveConflictEditorTitleAction('workbench.files.action.revertLocalChanges', ( localize(2211, "Discard your changes and revert to file contents")), Codicon.discard, -9, revertLocalChangesCommand);
|
|
166
166
|
function appendSaveConflictEditorTitleAction(id, title, icon, order, command) {
|
|
167
167
|
CommandsRegistry.registerCommand(id, command);
|
|
168
168
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
@@ -185,12 +185,12 @@ function appendToCommandPalette({ id, title, category, metadata }, when) {
|
|
|
185
185
|
}
|
|
186
186
|
appendToCommandPalette({
|
|
187
187
|
id: COPY_PATH_COMMAND_ID,
|
|
188
|
-
title: ( localize2(
|
|
188
|
+
title: ( localize2(2212, "Copy Path of Active File")),
|
|
189
189
|
category: Categories.File
|
|
190
190
|
});
|
|
191
191
|
appendToCommandPalette({
|
|
192
192
|
id: COPY_RELATIVE_PATH_COMMAND_ID,
|
|
193
|
-
title: ( localize2(
|
|
193
|
+
title: ( localize2(2213, "Copy Relative Path of Active File")),
|
|
194
194
|
category: Categories.File
|
|
195
195
|
});
|
|
196
196
|
appendToCommandPalette({
|
|
@@ -205,26 +205,26 @@ appendToCommandPalette({
|
|
|
205
205
|
});
|
|
206
206
|
appendToCommandPalette({
|
|
207
207
|
id: SAVE_ALL_IN_GROUP_COMMAND_ID,
|
|
208
|
-
title: ( localize2(
|
|
208
|
+
title: ( localize2(2214, "Save All in Group")),
|
|
209
209
|
category: Categories.File
|
|
210
210
|
});
|
|
211
211
|
appendToCommandPalette({
|
|
212
212
|
id: SAVE_FILES_COMMAND_ID,
|
|
213
|
-
title: ( localize2(
|
|
213
|
+
title: ( localize2(2215, "Save All Files")),
|
|
214
214
|
category: Categories.File
|
|
215
215
|
});
|
|
216
216
|
appendToCommandPalette({
|
|
217
217
|
id: REVERT_FILE_COMMAND_ID,
|
|
218
|
-
title: ( localize2(
|
|
218
|
+
title: ( localize2(2216, "Revert File")),
|
|
219
219
|
category: Categories.File
|
|
220
220
|
});
|
|
221
221
|
appendToCommandPalette({
|
|
222
222
|
id: COMPARE_WITH_SAVED_COMMAND_ID,
|
|
223
|
-
title: ( localize2(
|
|
223
|
+
title: ( localize2(2217, "Compare Active File with Saved")),
|
|
224
224
|
category: Categories.File,
|
|
225
225
|
metadata: {
|
|
226
226
|
description: ( localize2(
|
|
227
|
-
|
|
227
|
+
2218,
|
|
228
228
|
"Opens a new diff editor to compare the active file with the version on disk."
|
|
229
229
|
))
|
|
230
230
|
}
|
|
@@ -243,7 +243,7 @@ appendToCommandPalette({
|
|
|
243
243
|
id: NEW_FOLDER_COMMAND_ID,
|
|
244
244
|
title: NEW_FOLDER_LABEL,
|
|
245
245
|
category: Categories.File,
|
|
246
|
-
metadata: { description: ( localize2(
|
|
246
|
+
metadata: { description: ( localize2(2219, "Create a new folder or directory")) }
|
|
247
247
|
}, ( (WorkspaceFolderCountContext.notEqualsTo('0'))));
|
|
248
248
|
appendToCommandPalette({
|
|
249
249
|
id: NEW_UNTITLED_FILE_COMMAND_ID,
|
|
@@ -256,7 +256,7 @@ const isFileOrUntitledResourceContextKey = ( (ContextKeyExpr.or(
|
|
|
256
256
|
)));
|
|
257
257
|
const openToSideCommand = {
|
|
258
258
|
id: OPEN_TO_SIDE_COMMAND_ID,
|
|
259
|
-
title: ( localize(
|
|
259
|
+
title: ( localize(2220, "Open to the Side"))
|
|
260
260
|
};
|
|
261
261
|
MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
262
262
|
group: 'navigation',
|
|
@@ -269,7 +269,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
269
269
|
order: 10,
|
|
270
270
|
command: {
|
|
271
271
|
id: REOPEN_WITH_COMMAND_ID,
|
|
272
|
-
title: ( localize(
|
|
272
|
+
title: ( localize(2221, "Reopen Editor With..."))
|
|
273
273
|
},
|
|
274
274
|
when: ( (ContextKeyExpr.and(
|
|
275
275
|
ActiveEditorAvailableEditorIdsContext,
|
|
@@ -307,7 +307,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
307
307
|
order: 20,
|
|
308
308
|
command: {
|
|
309
309
|
id: REVERT_FILE_COMMAND_ID,
|
|
310
|
-
title: ( localize(
|
|
310
|
+
title: ( localize(2216, "Revert File")),
|
|
311
311
|
precondition: OpenEditorsDirtyEditorContext
|
|
312
312
|
},
|
|
313
313
|
when: ( (ContextKeyExpr.and(
|
|
@@ -321,7 +321,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
321
321
|
order: 30,
|
|
322
322
|
command: {
|
|
323
323
|
id: SAVE_ALL_IN_GROUP_COMMAND_ID,
|
|
324
|
-
title: ( localize(
|
|
324
|
+
title: ( localize(2222, "Save All")),
|
|
325
325
|
precondition: DirtyWorkingCopiesContext
|
|
326
326
|
},
|
|
327
327
|
when: OpenEditorsGroupContext
|
|
@@ -331,7 +331,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
331
331
|
order: 10,
|
|
332
332
|
command: {
|
|
333
333
|
id: COMPARE_WITH_SAVED_COMMAND_ID,
|
|
334
|
-
title: ( localize(
|
|
334
|
+
title: ( localize(2223, "Compare with Saved")),
|
|
335
335
|
precondition: OpenEditorsDirtyEditorContext
|
|
336
336
|
},
|
|
337
337
|
when: ( (ContextKeyExpr.and(
|
|
@@ -342,7 +342,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
342
342
|
});
|
|
343
343
|
const compareResourceCommand = {
|
|
344
344
|
id: COMPARE_RESOURCE_COMMAND_ID,
|
|
345
|
-
title: ( localize(
|
|
345
|
+
title: ( localize(2224, "Compare with Selected"))
|
|
346
346
|
};
|
|
347
347
|
MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
348
348
|
group: '3_compare',
|
|
@@ -357,7 +357,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
357
357
|
});
|
|
358
358
|
const selectForCompareCommand = {
|
|
359
359
|
id: SELECT_FOR_COMPARE_COMMAND_ID,
|
|
360
|
-
title: ( localize(
|
|
360
|
+
title: ( localize(2225, "Select for Compare"))
|
|
361
361
|
};
|
|
362
362
|
MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
363
363
|
group: '3_compare',
|
|
@@ -371,7 +371,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
371
371
|
});
|
|
372
372
|
const compareSelectedCommand = {
|
|
373
373
|
id: COMPARE_SELECTED_COMMAND_ID,
|
|
374
|
-
title: ( localize(
|
|
374
|
+
title: ( localize(2226, "Compare Selected"))
|
|
375
375
|
};
|
|
376
376
|
MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
377
377
|
group: '3_compare',
|
|
@@ -398,7 +398,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
398
398
|
order: 10,
|
|
399
399
|
command: {
|
|
400
400
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
401
|
-
title: ( localize(
|
|
401
|
+
title: ( localize(2227, "Close"))
|
|
402
402
|
},
|
|
403
403
|
when: ( (OpenEditorsGroupContext.toNegated()))
|
|
404
404
|
});
|
|
@@ -407,7 +407,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
407
407
|
order: 20,
|
|
408
408
|
command: {
|
|
409
409
|
id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID,
|
|
410
|
-
title: ( localize(
|
|
410
|
+
title: ( localize(2228, "Close Others"))
|
|
411
411
|
},
|
|
412
412
|
when: ( (OpenEditorsGroupContext.toNegated()))
|
|
413
413
|
});
|
|
@@ -416,7 +416,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
416
416
|
order: 30,
|
|
417
417
|
command: {
|
|
418
418
|
id: CLOSE_SAVED_EDITORS_COMMAND_ID,
|
|
419
|
-
title: ( localize(
|
|
419
|
+
title: ( localize(2229, "Close Saved"))
|
|
420
420
|
}
|
|
421
421
|
});
|
|
422
422
|
MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
@@ -424,7 +424,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
424
424
|
order: 40,
|
|
425
425
|
command: {
|
|
426
426
|
id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID,
|
|
427
|
-
title: ( localize(
|
|
427
|
+
title: ( localize(2230, "Close All"))
|
|
428
428
|
}
|
|
429
429
|
});
|
|
430
430
|
MenuRegistry.appendMenuItem(MenuId.ExplorerContext, {
|
|
@@ -461,7 +461,7 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerContext, {
|
|
|
461
461
|
order: 20,
|
|
462
462
|
command: {
|
|
463
463
|
id: OPEN_WITH_EXPLORER_COMMAND_ID,
|
|
464
|
-
title: ( localize(
|
|
464
|
+
title: ( localize(2231, "Open With...")),
|
|
465
465
|
},
|
|
466
466
|
when: ( (ContextKeyExpr.and(
|
|
467
467
|
(ExplorerFolderContext.toNegated()),
|
|
@@ -504,7 +504,7 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerContext, {
|
|
|
504
504
|
order: 8,
|
|
505
505
|
command: {
|
|
506
506
|
id: CUT_FILE_ID,
|
|
507
|
-
title: ( localize(
|
|
507
|
+
title: ( localize(2232, "Cut"))
|
|
508
508
|
},
|
|
509
509
|
when: ( (ContextKeyExpr.and(
|
|
510
510
|
(ExplorerRootContext.toNegated()),
|
|
@@ -624,7 +624,7 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerContext, {
|
|
|
624
624
|
},
|
|
625
625
|
alt: {
|
|
626
626
|
id: DELETE_FILE_ID,
|
|
627
|
-
title: ( localize(
|
|
627
|
+
title: ( localize(2233, "Delete Permanently")),
|
|
628
628
|
precondition: ExplorerResourceNotReadonlyContext
|
|
629
629
|
},
|
|
630
630
|
when: ( (ContextKeyExpr.and(
|
|
@@ -637,7 +637,7 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerContext, {
|
|
|
637
637
|
order: 20,
|
|
638
638
|
command: {
|
|
639
639
|
id: DELETE_FILE_ID,
|
|
640
|
-
title: ( localize(
|
|
640
|
+
title: ( localize(2233, "Delete Permanently")),
|
|
641
641
|
precondition: ExplorerResourceNotReadonlyContext
|
|
642
642
|
},
|
|
643
643
|
when: ( (ContextKeyExpr.and(
|
|
@@ -646,14 +646,14 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerContext, {
|
|
|
646
646
|
)))
|
|
647
647
|
});
|
|
648
648
|
for (const menuId of [MenuId.EmptyEditorGroupContext, MenuId.EditorTabsBarContext]) {
|
|
649
|
-
MenuRegistry.appendMenuItem(menuId, { command: { id: NEW_UNTITLED_FILE_COMMAND_ID, title: ( localize(
|
|
650
|
-
MenuRegistry.appendMenuItem(menuId, { command: { id: 'workbench.action.quickOpen', title: ( localize(
|
|
649
|
+
MenuRegistry.appendMenuItem(menuId, { command: { id: NEW_UNTITLED_FILE_COMMAND_ID, title: ( localize(2234, "New Text File")) }, group: '1_file', order: 10 });
|
|
650
|
+
MenuRegistry.appendMenuItem(menuId, { command: { id: 'workbench.action.quickOpen', title: ( localize(2235, "Open File...")) }, group: '1_file', order: 20 });
|
|
651
651
|
}
|
|
652
652
|
MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
653
653
|
group: '1_new',
|
|
654
654
|
command: {
|
|
655
655
|
id: NEW_UNTITLED_FILE_COMMAND_ID,
|
|
656
|
-
title: ( localize(
|
|
656
|
+
title: ( localize(2236, "&&New Text File"))
|
|
657
657
|
},
|
|
658
658
|
order: 1
|
|
659
659
|
});
|
|
@@ -661,7 +661,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
661
661
|
group: '4_save',
|
|
662
662
|
command: {
|
|
663
663
|
id: SAVE_FILE_COMMAND_ID,
|
|
664
|
-
title: ( localize(
|
|
664
|
+
title: ( localize(2237, "&&Save")),
|
|
665
665
|
precondition: ( (ContextKeyExpr.or(
|
|
666
666
|
ActiveEditorContext,
|
|
667
667
|
(ContextKeyExpr.and(FoldersViewVisibleContext, SidebarFocusContext))
|
|
@@ -673,7 +673,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
673
673
|
group: '4_save',
|
|
674
674
|
command: {
|
|
675
675
|
id: SAVE_FILE_AS_COMMAND_ID,
|
|
676
|
-
title: ( localize(
|
|
676
|
+
title: ( localize(2238, "Save &&As...")),
|
|
677
677
|
precondition: ( (ContextKeyExpr.or(
|
|
678
678
|
ActiveEditorContext,
|
|
679
679
|
(ContextKeyExpr.and(FoldersViewVisibleContext, SidebarFocusContext))
|
|
@@ -685,7 +685,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
685
685
|
group: '4_save',
|
|
686
686
|
command: {
|
|
687
687
|
id: SAVE_ALL_COMMAND_ID,
|
|
688
|
-
title: ( localize(
|
|
688
|
+
title: ( localize(2239, "Save A&&ll")),
|
|
689
689
|
precondition: DirtyWorkingCopiesContext
|
|
690
690
|
},
|
|
691
691
|
order: 3
|
|
@@ -694,7 +694,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
694
694
|
group: '5_autosave',
|
|
695
695
|
command: {
|
|
696
696
|
id: ToggleAutoSaveAction.ID,
|
|
697
|
-
title: ( localize(
|
|
697
|
+
title: ( localize(2240, "A&&uto Save")),
|
|
698
698
|
toggled: ( (ContextKeyExpr.notEquals('config.files.autoSave', 'off')))
|
|
699
699
|
},
|
|
700
700
|
order: 1
|
|
@@ -703,7 +703,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
703
703
|
group: '6_close',
|
|
704
704
|
command: {
|
|
705
705
|
id: REVERT_FILE_COMMAND_ID,
|
|
706
|
-
title: ( localize(
|
|
706
|
+
title: ( localize(2241, "Re&&vert File")),
|
|
707
707
|
precondition: ( (ContextKeyExpr.or(
|
|
708
708
|
(ContextKeyExpr.and(ActiveEditorCanRevertContext)),
|
|
709
709
|
(ContextKeyExpr.and(
|
|
@@ -718,7 +718,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
718
718
|
group: '6_close',
|
|
719
719
|
command: {
|
|
720
720
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
721
|
-
title: ( localize(
|
|
721
|
+
title: ( localize(2242, "&&Close Editor")),
|
|
722
722
|
precondition: ( (ContextKeyExpr.or(
|
|
723
723
|
ActiveEditorContext,
|
|
724
724
|
(ContextKeyExpr.and(FoldersViewVisibleContext, SidebarFocusContext))
|
|
@@ -730,7 +730,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
730
730
|
group: '3_global_nav',
|
|
731
731
|
command: {
|
|
732
732
|
id: 'workbench.action.quickOpen',
|
|
733
|
-
title: ( localize(
|
|
733
|
+
title: ( localize(2243, "Go to &&File..."))
|
|
734
734
|
},
|
|
735
735
|
order: 1
|
|
736
736
|
});
|
|
@@ -137,7 +137,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
137
137
|
const uri = getResourceForCommand(resource, editorService, listService);
|
|
138
138
|
if (uri && fileService.hasProvider(uri)) {
|
|
139
139
|
const name = basename(uri);
|
|
140
|
-
const editorLabel = ( localize(
|
|
140
|
+
const editorLabel = ( localize(2151, "{0} (in file) ↔ {1}", name, name));
|
|
141
141
|
try {
|
|
142
142
|
await TextFileContentProvider.open(uri, COMPARE_WITH_SAVED_SCHEMA, editorLabel, editorService, { pinned: true });
|
|
143
143
|
if (registerEditorListener) {
|
|
@@ -456,7 +456,7 @@ CommandsRegistry.registerCommand({
|
|
|
456
456
|
const editorService = accessor.get(IEditorService);
|
|
457
457
|
const dialogService = accessor.get(IFileDialogService);
|
|
458
458
|
const fileService = accessor.get(IFileService);
|
|
459
|
-
const createFileLocalized = ( localize(
|
|
459
|
+
const createFileLocalized = ( localize(2152, "Create File"));
|
|
460
460
|
const defaultFileUri = joinPath(await dialogService.defaultFilePath(), args?.fileName ?? 'Untitled.txt');
|
|
461
461
|
const saveUri = await dialogService.showSaveDialog({ saveLabel: createFileLocalized, title: createFileLocalized, defaultUri: defaultFileUri });
|
|
462
462
|
if (!saveUri) {
|
|
@@ -19,13 +19,13 @@ const configurationRegistry = ( (Registry.as(Extensions.Configuration)));
|
|
|
19
19
|
configurationRegistry.registerConfiguration({
|
|
20
20
|
'id': 'explorer',
|
|
21
21
|
'order': 10,
|
|
22
|
-
'title': ( localize(
|
|
22
|
+
'title': ( localize(2153, "File Explorer")),
|
|
23
23
|
'type': 'object',
|
|
24
24
|
'properties': {
|
|
25
25
|
'explorer.openEditors.visible': {
|
|
26
26
|
'type': 'number',
|
|
27
27
|
'description': ( localize(
|
|
28
|
-
|
|
28
|
+
2154,
|
|
29
29
|
"The initial maximum number of editors shown in the Open Editors pane. Exceeding this limit will show a scroll bar and allow resizing the pane to display more items."
|
|
30
30
|
)),
|
|
31
31
|
'default': 9,
|
|
@@ -34,7 +34,7 @@ configurationRegistry.registerConfiguration({
|
|
|
34
34
|
'explorer.openEditors.minVisible': {
|
|
35
35
|
'type': 'number',
|
|
36
36
|
'description': ( localize(
|
|
37
|
-
|
|
37
|
+
2155,
|
|
38
38
|
"The minimum number of editor slots pre-allocated in the Open Editors pane. If set to 0 the Open Editors pane will dynamically resize based on the number of editors."
|
|
39
39
|
)),
|
|
40
40
|
'default': 0,
|
|
@@ -43,15 +43,15 @@ configurationRegistry.registerConfiguration({
|
|
|
43
43
|
'explorer.openEditors.sortOrder': {
|
|
44
44
|
'type': 'string',
|
|
45
45
|
'enum': ['editorOrder', 'alphabetical', 'fullPath'],
|
|
46
|
-
'description': ( localize(
|
|
46
|
+
'description': ( localize(2156, "Controls the sorting order of editors in the Open Editors pane.")),
|
|
47
47
|
'enumDescriptions': [
|
|
48
|
-
( localize(
|
|
48
|
+
( localize(2157, 'Editors are ordered in the same order editor tabs are shown.')),
|
|
49
49
|
( localize(
|
|
50
|
-
|
|
50
|
+
2158,
|
|
51
51
|
'Editors are ordered alphabetically by tab name inside each editor group.'
|
|
52
52
|
)),
|
|
53
53
|
( localize(
|
|
54
|
-
|
|
54
|
+
2159,
|
|
55
55
|
'Editors are ordered alphabetically by full path inside each editor group.'
|
|
56
56
|
))
|
|
57
57
|
],
|
|
@@ -62,19 +62,19 @@ configurationRegistry.registerConfiguration({
|
|
|
62
62
|
'enum': [true, false, 'focusNoScroll'],
|
|
63
63
|
'default': true,
|
|
64
64
|
'enumDescriptions': [
|
|
65
|
-
( localize(
|
|
66
|
-
( localize(
|
|
67
|
-
( localize(
|
|
65
|
+
( localize(2160, 'Files will be revealed and selected.')),
|
|
66
|
+
( localize(2161, 'Files will not be revealed and selected.')),
|
|
67
|
+
( localize(2162, 'Files will not be scrolled into view, but will still be focused.')),
|
|
68
68
|
],
|
|
69
69
|
'description': ( localize(
|
|
70
|
-
|
|
70
|
+
2163,
|
|
71
71
|
"Controls whether the Explorer should automatically reveal and select files when opening them."
|
|
72
72
|
))
|
|
73
73
|
},
|
|
74
74
|
'explorer.autoRevealExclude': {
|
|
75
75
|
'type': 'object',
|
|
76
76
|
'markdownDescription': ( localize(
|
|
77
|
-
|
|
77
|
+
2164,
|
|
78
78
|
"Configure paths or [glob patterns](https://aka.ms/vscode-glob-patterns) for excluding files and folders from being revealed and selected in the Explorer when they are opened. Glob patterns are always evaluated relative to the path of the workspace folder unless they are absolute paths."
|
|
79
79
|
)),
|
|
80
80
|
'default': { '**/node_modules': true, '**/bower_components': true },
|
|
@@ -83,7 +83,7 @@ configurationRegistry.registerConfiguration({
|
|
|
83
83
|
{
|
|
84
84
|
'type': 'boolean',
|
|
85
85
|
'description': ( localize(
|
|
86
|
-
|
|
86
|
+
2165,
|
|
87
87
|
"The glob pattern to match file paths against. Set to true or false to enable or disable the pattern."
|
|
88
88
|
)),
|
|
89
89
|
},
|
|
@@ -95,7 +95,7 @@ configurationRegistry.registerConfiguration({
|
|
|
95
95
|
pattern: '\\w*\\$\\(basename\\)\\w*',
|
|
96
96
|
default: '$(basename).ext',
|
|
97
97
|
description: ( localize(
|
|
98
|
-
|
|
98
|
+
2166,
|
|
99
99
|
'Additional check on the siblings of a matching file. Use $(basename) as variable for the matching file name.'
|
|
100
100
|
))
|
|
101
101
|
}
|
|
@@ -107,7 +107,7 @@ configurationRegistry.registerConfiguration({
|
|
|
107
107
|
'explorer.enableDragAndDrop': {
|
|
108
108
|
'type': 'boolean',
|
|
109
109
|
'description': ( localize(
|
|
110
|
-
|
|
110
|
+
2167,
|
|
111
111
|
"Controls whether the Explorer should allow to move files and folders via drag and drop. This setting only effects drag and drop from inside the Explorer."
|
|
112
112
|
)),
|
|
113
113
|
'default': true
|
|
@@ -115,7 +115,7 @@ configurationRegistry.registerConfiguration({
|
|
|
115
115
|
'explorer.confirmDragAndDrop': {
|
|
116
116
|
'type': 'boolean',
|
|
117
117
|
'description': ( localize(
|
|
118
|
-
|
|
118
|
+
2168,
|
|
119
119
|
"Controls whether the Explorer should ask for confirmation to move files and folders via drag and drop."
|
|
120
120
|
)),
|
|
121
121
|
'default': true
|
|
@@ -123,7 +123,7 @@ configurationRegistry.registerConfiguration({
|
|
|
123
123
|
'explorer.confirmPasteNative': {
|
|
124
124
|
'type': 'boolean',
|
|
125
125
|
'description': ( localize(
|
|
126
|
-
|
|
126
|
+
2169,
|
|
127
127
|
"Controls whether the Explorer should ask for confirmation when pasting native files and folders."
|
|
128
128
|
)),
|
|
129
129
|
'default': true
|
|
@@ -131,7 +131,7 @@ configurationRegistry.registerConfiguration({
|
|
|
131
131
|
'explorer.confirmDelete': {
|
|
132
132
|
'type': 'boolean',
|
|
133
133
|
'description': ( localize(
|
|
134
|
-
|
|
134
|
+
2170,
|
|
135
135
|
"Controls whether the Explorer should ask for confirmation when deleting a file via the trash."
|
|
136
136
|
)),
|
|
137
137
|
'default': true
|
|
@@ -139,7 +139,7 @@ configurationRegistry.registerConfiguration({
|
|
|
139
139
|
'explorer.enableUndo': {
|
|
140
140
|
'type': 'boolean',
|
|
141
141
|
'description': ( localize(
|
|
142
|
-
|
|
142
|
+
2171,
|
|
143
143
|
"Controls whether the Explorer should support undoing file and folder operations."
|
|
144
144
|
)),
|
|
145
145
|
'default': true
|
|
@@ -148,20 +148,20 @@ configurationRegistry.registerConfiguration({
|
|
|
148
148
|
'type': 'string',
|
|
149
149
|
'enum': [UndoConfirmLevel.Verbose, UndoConfirmLevel.Default, UndoConfirmLevel.Light],
|
|
150
150
|
'description': ( localize(
|
|
151
|
-
|
|
151
|
+
2172,
|
|
152
152
|
"Controls whether the Explorer should ask for confirmation when undoing."
|
|
153
153
|
)),
|
|
154
154
|
'default': UndoConfirmLevel.Default,
|
|
155
155
|
'enumDescriptions': [
|
|
156
|
-
( localize(
|
|
157
|
-
( localize(
|
|
158
|
-
( localize(
|
|
156
|
+
( localize(2173, 'Explorer will prompt before all undo operations.')),
|
|
157
|
+
( localize(2174, 'Explorer will prompt before destructive undo operations.')),
|
|
158
|
+
( localize(2175, 'Explorer will not prompt before undo operations when focused.')),
|
|
159
159
|
],
|
|
160
160
|
},
|
|
161
161
|
'explorer.expandSingleFolderWorkspaces': {
|
|
162
162
|
'type': 'boolean',
|
|
163
163
|
'description': ( localize(
|
|
164
|
-
|
|
164
|
+
2176,
|
|
165
165
|
"Controls whether the Explorer should expand multi-root workspaces containing only one folder during initialization"
|
|
166
166
|
)),
|
|
167
167
|
'default': true
|
|
@@ -172,32 +172,32 @@ configurationRegistry.registerConfiguration({
|
|
|
172
172
|
'default': SortOrder.Default,
|
|
173
173
|
'enumDescriptions': [
|
|
174
174
|
( localize(
|
|
175
|
-
|
|
175
|
+
2177,
|
|
176
176
|
'Files and folders are sorted by their names. Folders are displayed before files.'
|
|
177
177
|
)),
|
|
178
178
|
( localize(
|
|
179
|
-
|
|
179
|
+
2178,
|
|
180
180
|
'Files and folders are sorted by their names. Files are interwoven with folders.'
|
|
181
181
|
)),
|
|
182
182
|
( localize(
|
|
183
|
-
|
|
183
|
+
2179,
|
|
184
184
|
'Files and folders are sorted by their names. Files are displayed before folders.'
|
|
185
185
|
)),
|
|
186
186
|
( localize(
|
|
187
|
-
|
|
187
|
+
2180,
|
|
188
188
|
'Files and folders are grouped by extension type then sorted by their names. Folders are displayed before files.'
|
|
189
189
|
)),
|
|
190
190
|
( localize(
|
|
191
|
-
|
|
191
|
+
2181,
|
|
192
192
|
'Files and folders are sorted by last modified date in descending order. Folders are displayed before files.'
|
|
193
193
|
)),
|
|
194
194
|
( localize(
|
|
195
|
-
|
|
195
|
+
2182,
|
|
196
196
|
'Files and folders are sorted by their names. Folders are displayed before files. Files with nested children are displayed before other files.'
|
|
197
197
|
))
|
|
198
198
|
],
|
|
199
199
|
'markdownDescription': ( localize(
|
|
200
|
-
|
|
200
|
+
2183,
|
|
201
201
|
"Controls the property-based sorting of files and folders in the Explorer. When `#explorer.fileNesting.enabled#` is enabled, also controls sorting of nested files."
|
|
202
202
|
))
|
|
203
203
|
},
|
|
@@ -206,32 +206,32 @@ configurationRegistry.registerConfiguration({
|
|
|
206
206
|
'enum': [LexicographicOptions.Default, LexicographicOptions.Upper, LexicographicOptions.Lower, LexicographicOptions.Unicode],
|
|
207
207
|
'default': LexicographicOptions.Default,
|
|
208
208
|
'enumDescriptions': [
|
|
209
|
-
( localize(
|
|
210
|
-
( localize(
|
|
211
|
-
( localize(
|
|
212
|
-
( localize(
|
|
209
|
+
( localize(2184, 'Uppercase and lowercase names are mixed together.')),
|
|
210
|
+
( localize(2185, 'Uppercase names are grouped together before lowercase names.')),
|
|
211
|
+
( localize(2186, 'Lowercase names are grouped together before uppercase names.')),
|
|
212
|
+
( localize(2187, 'Names are sorted in Unicode order.'))
|
|
213
213
|
],
|
|
214
214
|
'description': ( localize(
|
|
215
|
-
|
|
215
|
+
2188,
|
|
216
216
|
"Controls the lexicographic sorting of file and folder names in the Explorer."
|
|
217
217
|
))
|
|
218
218
|
},
|
|
219
219
|
'explorer.sortOrderReverse': {
|
|
220
220
|
'type': 'boolean',
|
|
221
221
|
'description': ( localize(
|
|
222
|
-
|
|
222
|
+
2189,
|
|
223
223
|
"Controls whether the file and folder sort order, should be reversed."
|
|
224
224
|
)),
|
|
225
225
|
'default': false,
|
|
226
226
|
},
|
|
227
227
|
'explorer.decorations.colors': {
|
|
228
228
|
type: 'boolean',
|
|
229
|
-
description: ( localize(
|
|
229
|
+
description: ( localize(2190, "Controls whether file decorations should use colors.")),
|
|
230
230
|
default: true
|
|
231
231
|
},
|
|
232
232
|
'explorer.decorations.badges': {
|
|
233
233
|
type: 'boolean',
|
|
234
|
-
description: ( localize(
|
|
234
|
+
description: ( localize(2191, "Controls whether file decorations should use badges.")),
|
|
235
235
|
default: true
|
|
236
236
|
},
|
|
237
237
|
'explorer.incrementalNaming': {
|
|
@@ -239,20 +239,20 @@ configurationRegistry.registerConfiguration({
|
|
|
239
239
|
enum: ['simple', 'smart', 'disabled'],
|
|
240
240
|
enumDescriptions: [
|
|
241
241
|
( localize(
|
|
242
|
-
|
|
242
|
+
2192,
|
|
243
243
|
"Appends the word \"copy\" at the end of the duplicated name potentially followed by a number."
|
|
244
244
|
)),
|
|
245
245
|
( localize(
|
|
246
|
-
|
|
246
|
+
2193,
|
|
247
247
|
"Adds a number at the end of the duplicated name. If some number is already part of the name, tries to increase that number."
|
|
248
248
|
)),
|
|
249
249
|
( localize(
|
|
250
|
-
|
|
250
|
+
2194,
|
|
251
251
|
"Disables incremental naming. If two files with the same name exist you will be prompted to overwrite the existing file."
|
|
252
252
|
))
|
|
253
253
|
],
|
|
254
254
|
description: ( localize(
|
|
255
|
-
|
|
255
|
+
2195,
|
|
256
256
|
"Controls which naming strategy to use when giving a new name to a duplicated Explorer item on paste."
|
|
257
257
|
)),
|
|
258
258
|
default: 'simple'
|
|
@@ -260,7 +260,7 @@ configurationRegistry.registerConfiguration({
|
|
|
260
260
|
'explorer.autoOpenDroppedFile': {
|
|
261
261
|
'type': 'boolean',
|
|
262
262
|
'description': ( localize(
|
|
263
|
-
|
|
263
|
+
2196,
|
|
264
264
|
"Controls whether the Explorer should automatically open a file when it is dropped into the explorer"
|
|
265
265
|
)),
|
|
266
266
|
'default': true
|
|
@@ -268,7 +268,7 @@ configurationRegistry.registerConfiguration({
|
|
|
268
268
|
'explorer.compactFolders': {
|
|
269
269
|
'type': 'boolean',
|
|
270
270
|
'description': ( localize(
|
|
271
|
-
|
|
271
|
+
2197,
|
|
272
272
|
"Controls whether the Explorer should render folders in a compact form. In such a form, single child folders will be compressed in a combined tree element. Useful for Java package structures, for example."
|
|
273
273
|
)),
|
|
274
274
|
'default': true
|
|
@@ -281,12 +281,12 @@ configurationRegistry.registerConfiguration({
|
|
|
281
281
|
'auto'
|
|
282
282
|
],
|
|
283
283
|
'enumDescriptions': [
|
|
284
|
-
( localize(
|
|
285
|
-
( localize(
|
|
286
|
-
( localize(
|
|
284
|
+
( localize(2198, "Use slash as path separation character.")),
|
|
285
|
+
( localize(2199, "Use backslash as path separation character.")),
|
|
286
|
+
( localize(2200, "Uses operating system specific path separation character.")),
|
|
287
287
|
],
|
|
288
288
|
'description': ( localize(
|
|
289
|
-
|
|
289
|
+
2201,
|
|
290
290
|
"The path separation character used when copying relative file paths."
|
|
291
291
|
)),
|
|
292
292
|
'default': 'auto'
|
|
@@ -294,7 +294,7 @@ configurationRegistry.registerConfiguration({
|
|
|
294
294
|
'explorer.excludeGitIgnore': {
|
|
295
295
|
type: 'boolean',
|
|
296
296
|
markdownDescription: ( localize(
|
|
297
|
-
|
|
297
|
+
2202,
|
|
298
298
|
"Controls whether entries in .gitignore should be parsed and excluded from the Explorer. Similar to {0}.",
|
|
299
299
|
'`#files.exclude#`'
|
|
300
300
|
)),
|
|
@@ -305,7 +305,7 @@ configurationRegistry.registerConfiguration({
|
|
|
305
305
|
'type': 'boolean',
|
|
306
306
|
scope: ConfigurationScope.RESOURCE,
|
|
307
307
|
'markdownDescription': ( localize(
|
|
308
|
-
|
|
308
|
+
2203,
|
|
309
309
|
"Controls whether file nesting is enabled in the Explorer. File nesting allows for related files in a directory to be visually grouped together under a single parent file."
|
|
310
310
|
)),
|
|
311
311
|
'default': false,
|
|
@@ -313,7 +313,7 @@ configurationRegistry.registerConfiguration({
|
|
|
313
313
|
'explorer.fileNesting.expand': {
|
|
314
314
|
'type': 'boolean',
|
|
315
315
|
'markdownDescription': ( localize(
|
|
316
|
-
|
|
316
|
+
2204,
|
|
317
317
|
"Controls whether file nests are automatically expanded. {0} must be set for this to take effect.",
|
|
318
318
|
'`#explorer.fileNesting.enabled#`'
|
|
319
319
|
)),
|
|
@@ -323,14 +323,14 @@ configurationRegistry.registerConfiguration({
|
|
|
323
323
|
'type': 'object',
|
|
324
324
|
scope: ConfigurationScope.RESOURCE,
|
|
325
325
|
'markdownDescription': ( localize(
|
|
326
|
-
|
|
326
|
+
2205,
|
|
327
327
|
"Controls nesting of files in the Explorer. {0} must be set for this to take effect. Each __Item__ represents a parent pattern and may contain a single `*` character that matches any string. Each __Value__ represents a comma separated list of the child patterns that should be shown nested under a given parent. Child patterns may contain several special tokens:\n- `${capture}`: Matches the resolved value of the `*` from the parent pattern\n- `${basename}`: Matches the parent file's basename, the `file` in `file.ts`\n- `${extname}`: Matches the parent file's extension, the `ts` in `file.ts`\n- `${dirname}`: Matches the parent file's directory name, the `src` in `src/file.ts`\n- `*`: Matches any string, may only be used once per child pattern",
|
|
328
328
|
'`#explorer.fileNesting.enabled#`'
|
|
329
329
|
)),
|
|
330
330
|
patternProperties: {
|
|
331
331
|
'^[^*]*\\*?[^*]*$': {
|
|
332
332
|
markdownDescription: ( localize(
|
|
333
|
-
|
|
333
|
+
2206,
|
|
334
334
|
"Each key pattern may contain a single `*` character which will match any string."
|
|
335
335
|
)),
|
|
336
336
|
type: 'string',
|