@codingame/monaco-vscode-explorer-service-override 11.0.2 → 11.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-explorer-service-override",
|
|
3
|
-
"version": "11.0
|
|
3
|
+
"version": "11.1.0",
|
|
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@11.0
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@11.1.0"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -153,15 +153,15 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
153
153
|
});
|
|
154
154
|
const copyPathCommand = {
|
|
155
155
|
id: COPY_PATH_COMMAND_ID,
|
|
156
|
-
title: ( localize(
|
|
156
|
+
title: ( localize(2168, "Copy Path"))
|
|
157
157
|
};
|
|
158
158
|
const copyRelativePathCommand = {
|
|
159
159
|
id: COPY_RELATIVE_PATH_COMMAND_ID,
|
|
160
|
-
title: ( localize(
|
|
160
|
+
title: ( localize(2169, "Copy Relative Path"))
|
|
161
161
|
};
|
|
162
162
|
const revealInsideBarCommand = {
|
|
163
163
|
id: REVEAL_IN_EXPLORER_COMMAND_ID,
|
|
164
|
-
title: ( localize(
|
|
164
|
+
title: ( localize(2170, "Reveal in Explorer View"))
|
|
165
165
|
};
|
|
166
166
|
appendEditorTitleContextMenuItem(COPY_PATH_COMMAND_ID, copyPathCommand.title, ResourceContextKey.IsFileSystemResource, '1_cutcopypaste', true);
|
|
167
167
|
appendEditorTitleContextMenuItem(COPY_RELATIVE_PATH_COMMAND_ID, copyRelativePathCommand.title, ResourceContextKey.IsFileSystemResource, '1_cutcopypaste', true);
|
|
@@ -175,8 +175,8 @@ function appendEditorTitleContextMenuItem(id, title, when, group, supportsMultiS
|
|
|
175
175
|
order,
|
|
176
176
|
});
|
|
177
177
|
}
|
|
178
|
-
appendSaveConflictEditorTitleAction('workbench.files.action.acceptLocalChanges', ( localize(
|
|
179
|
-
appendSaveConflictEditorTitleAction('workbench.files.action.revertLocalChanges', ( localize(
|
|
178
|
+
appendSaveConflictEditorTitleAction('workbench.files.action.acceptLocalChanges', ( localize(2171, "Use your changes and overwrite file contents")), Codicon.check, -10, acceptLocalChangesCommand);
|
|
179
|
+
appendSaveConflictEditorTitleAction('workbench.files.action.revertLocalChanges', ( localize(2172, "Discard your changes and revert to file contents")), Codicon.discard, -9, revertLocalChangesCommand);
|
|
180
180
|
function appendSaveConflictEditorTitleAction(id, title, icon, order, command) {
|
|
181
181
|
CommandsRegistry.registerCommand(id, command);
|
|
182
182
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
@@ -199,12 +199,12 @@ function appendToCommandPalette({ id, title, category, metadata }, when) {
|
|
|
199
199
|
}
|
|
200
200
|
appendToCommandPalette({
|
|
201
201
|
id: COPY_PATH_COMMAND_ID,
|
|
202
|
-
title: ( localize2(
|
|
202
|
+
title: ( localize2(2173, "Copy Path of Active File")),
|
|
203
203
|
category: Categories.File
|
|
204
204
|
});
|
|
205
205
|
appendToCommandPalette({
|
|
206
206
|
id: COPY_RELATIVE_PATH_COMMAND_ID,
|
|
207
|
-
title: ( localize2(
|
|
207
|
+
title: ( localize2(2174, "Copy Relative Path of Active File")),
|
|
208
208
|
category: Categories.File
|
|
209
209
|
});
|
|
210
210
|
appendToCommandPalette({
|
|
@@ -219,26 +219,26 @@ appendToCommandPalette({
|
|
|
219
219
|
});
|
|
220
220
|
appendToCommandPalette({
|
|
221
221
|
id: SAVE_ALL_IN_GROUP_COMMAND_ID,
|
|
222
|
-
title: ( localize2(
|
|
222
|
+
title: ( localize2(2175, "Save All in Group")),
|
|
223
223
|
category: Categories.File
|
|
224
224
|
});
|
|
225
225
|
appendToCommandPalette({
|
|
226
226
|
id: SAVE_FILES_COMMAND_ID,
|
|
227
|
-
title: ( localize2(
|
|
227
|
+
title: ( localize2(2176, "Save All Files")),
|
|
228
228
|
category: Categories.File
|
|
229
229
|
});
|
|
230
230
|
appendToCommandPalette({
|
|
231
231
|
id: REVERT_FILE_COMMAND_ID,
|
|
232
|
-
title: ( localize2(
|
|
232
|
+
title: ( localize2(2177, "Revert File")),
|
|
233
233
|
category: Categories.File
|
|
234
234
|
});
|
|
235
235
|
appendToCommandPalette({
|
|
236
236
|
id: COMPARE_WITH_SAVED_COMMAND_ID,
|
|
237
|
-
title: ( localize2(
|
|
237
|
+
title: ( localize2(2178, "Compare Active File with Saved")),
|
|
238
238
|
category: Categories.File,
|
|
239
239
|
metadata: {
|
|
240
240
|
description: ( localize2(
|
|
241
|
-
|
|
241
|
+
2179,
|
|
242
242
|
"Opens a new diff editor to compare the active file with the version on disk."
|
|
243
243
|
))
|
|
244
244
|
}
|
|
@@ -257,7 +257,7 @@ appendToCommandPalette({
|
|
|
257
257
|
id: NEW_FOLDER_COMMAND_ID,
|
|
258
258
|
title: NEW_FOLDER_LABEL,
|
|
259
259
|
category: Categories.File,
|
|
260
|
-
metadata: { description: ( localize2(
|
|
260
|
+
metadata: { description: ( localize2(2180, "Create a new folder or directory")) }
|
|
261
261
|
}, ( (WorkspaceFolderCountContext.notEqualsTo('0'))));
|
|
262
262
|
appendToCommandPalette({
|
|
263
263
|
id: NEW_UNTITLED_FILE_COMMAND_ID,
|
|
@@ -270,7 +270,7 @@ const isFileOrUntitledResourceContextKey = ( (ContextKeyExpr.or(
|
|
|
270
270
|
)));
|
|
271
271
|
const openToSideCommand = {
|
|
272
272
|
id: OPEN_TO_SIDE_COMMAND_ID,
|
|
273
|
-
title: ( localize(
|
|
273
|
+
title: ( localize(2181, "Open to the Side"))
|
|
274
274
|
};
|
|
275
275
|
MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
276
276
|
group: 'navigation',
|
|
@@ -283,7 +283,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
283
283
|
order: 10,
|
|
284
284
|
command: {
|
|
285
285
|
id: REOPEN_WITH_COMMAND_ID,
|
|
286
|
-
title: ( localize(
|
|
286
|
+
title: ( localize(2182, "Reopen Editor With..."))
|
|
287
287
|
},
|
|
288
288
|
when: ( (ContextKeyExpr.and(
|
|
289
289
|
ActiveEditorAvailableEditorIdsContext,
|
|
@@ -321,7 +321,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
321
321
|
order: 20,
|
|
322
322
|
command: {
|
|
323
323
|
id: REVERT_FILE_COMMAND_ID,
|
|
324
|
-
title: ( localize(
|
|
324
|
+
title: ( localize(2177, "Revert File")),
|
|
325
325
|
precondition: OpenEditorsDirtyEditorContext
|
|
326
326
|
},
|
|
327
327
|
when: ( (ContextKeyExpr.and(
|
|
@@ -335,7 +335,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
335
335
|
order: 30,
|
|
336
336
|
command: {
|
|
337
337
|
id: SAVE_ALL_IN_GROUP_COMMAND_ID,
|
|
338
|
-
title: ( localize(
|
|
338
|
+
title: ( localize(2183, "Save All")),
|
|
339
339
|
precondition: DirtyWorkingCopiesContext
|
|
340
340
|
},
|
|
341
341
|
when: OpenEditorsGroupContext
|
|
@@ -345,7 +345,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
345
345
|
order: 10,
|
|
346
346
|
command: {
|
|
347
347
|
id: COMPARE_WITH_SAVED_COMMAND_ID,
|
|
348
|
-
title: ( localize(
|
|
348
|
+
title: ( localize(2184, "Compare with Saved")),
|
|
349
349
|
precondition: OpenEditorsDirtyEditorContext
|
|
350
350
|
},
|
|
351
351
|
when: ( (ContextKeyExpr.and(
|
|
@@ -356,7 +356,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
356
356
|
});
|
|
357
357
|
const compareResourceCommand = {
|
|
358
358
|
id: COMPARE_RESOURCE_COMMAND_ID,
|
|
359
|
-
title: ( localize(
|
|
359
|
+
title: ( localize(2185, "Compare with Selected"))
|
|
360
360
|
};
|
|
361
361
|
MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
362
362
|
group: '3_compare',
|
|
@@ -371,7 +371,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
371
371
|
});
|
|
372
372
|
const selectForCompareCommand = {
|
|
373
373
|
id: SELECT_FOR_COMPARE_COMMAND_ID,
|
|
374
|
-
title: ( localize(
|
|
374
|
+
title: ( localize(2186, "Select for Compare"))
|
|
375
375
|
};
|
|
376
376
|
MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
377
377
|
group: '3_compare',
|
|
@@ -385,7 +385,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
385
385
|
});
|
|
386
386
|
const compareSelectedCommand = {
|
|
387
387
|
id: COMPARE_SELECTED_COMMAND_ID,
|
|
388
|
-
title: ( localize(
|
|
388
|
+
title: ( localize(2187, "Compare Selected"))
|
|
389
389
|
};
|
|
390
390
|
MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
391
391
|
group: '3_compare',
|
|
@@ -412,7 +412,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
412
412
|
order: 10,
|
|
413
413
|
command: {
|
|
414
414
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
415
|
-
title: ( localize(
|
|
415
|
+
title: ( localize(2188, "Close"))
|
|
416
416
|
},
|
|
417
417
|
when: ( (OpenEditorsGroupContext.toNegated()))
|
|
418
418
|
});
|
|
@@ -421,7 +421,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
421
421
|
order: 20,
|
|
422
422
|
command: {
|
|
423
423
|
id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID,
|
|
424
|
-
title: ( localize(
|
|
424
|
+
title: ( localize(2189, "Close Others"))
|
|
425
425
|
},
|
|
426
426
|
when: ( (OpenEditorsGroupContext.toNegated()))
|
|
427
427
|
});
|
|
@@ -430,7 +430,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
430
430
|
order: 30,
|
|
431
431
|
command: {
|
|
432
432
|
id: CLOSE_SAVED_EDITORS_COMMAND_ID,
|
|
433
|
-
title: ( localize(
|
|
433
|
+
title: ( localize(2190, "Close Saved"))
|
|
434
434
|
}
|
|
435
435
|
});
|
|
436
436
|
MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
@@ -438,7 +438,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
438
438
|
order: 40,
|
|
439
439
|
command: {
|
|
440
440
|
id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID,
|
|
441
|
-
title: ( localize(
|
|
441
|
+
title: ( localize(2191, "Close All"))
|
|
442
442
|
}
|
|
443
443
|
});
|
|
444
444
|
MenuRegistry.appendMenuItem(MenuId.ExplorerContext, {
|
|
@@ -481,7 +481,7 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerContext, {
|
|
|
481
481
|
order: 20,
|
|
482
482
|
command: {
|
|
483
483
|
id: OPEN_WITH_EXPLORER_COMMAND_ID,
|
|
484
|
-
title: ( localize(
|
|
484
|
+
title: ( localize(2192, "Open With...")),
|
|
485
485
|
},
|
|
486
486
|
when: ( (ContextKeyExpr.and(
|
|
487
487
|
(ExplorerFolderContext.toNegated()),
|
|
@@ -524,7 +524,7 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerContext, {
|
|
|
524
524
|
order: 8,
|
|
525
525
|
command: {
|
|
526
526
|
id: CUT_FILE_ID,
|
|
527
|
-
title: ( localize(
|
|
527
|
+
title: ( localize(2193, "Cut")),
|
|
528
528
|
precondition: ( (WorkbenchTreeFindOpen.toNegated()))
|
|
529
529
|
},
|
|
530
530
|
when: ( (ContextKeyExpr.and(
|
|
@@ -657,7 +657,7 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerContext, {
|
|
|
657
657
|
},
|
|
658
658
|
alt: {
|
|
659
659
|
id: DELETE_FILE_ID,
|
|
660
|
-
title: ( localize(
|
|
660
|
+
title: ( localize(2194, "Delete Permanently")),
|
|
661
661
|
precondition: ( (ContextKeyExpr.and(
|
|
662
662
|
ExplorerResourceNotReadonlyContext,
|
|
663
663
|
(WorkbenchTreeFindOpen.toNegated())
|
|
@@ -673,7 +673,7 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerContext, {
|
|
|
673
673
|
order: 20,
|
|
674
674
|
command: {
|
|
675
675
|
id: DELETE_FILE_ID,
|
|
676
|
-
title: ( localize(
|
|
676
|
+
title: ( localize(2194, "Delete Permanently")),
|
|
677
677
|
precondition: ( (ContextKeyExpr.and(
|
|
678
678
|
ExplorerResourceNotReadonlyContext,
|
|
679
679
|
(WorkbenchTreeFindOpen.toNegated())
|
|
@@ -685,14 +685,14 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerContext, {
|
|
|
685
685
|
)))
|
|
686
686
|
});
|
|
687
687
|
for (const menuId of [MenuId.EmptyEditorGroupContext, MenuId.EditorTabsBarContext]) {
|
|
688
|
-
MenuRegistry.appendMenuItem(menuId, { command: { id: NEW_UNTITLED_FILE_COMMAND_ID, title: ( localize(
|
|
689
|
-
MenuRegistry.appendMenuItem(menuId, { command: { id: 'workbench.action.quickOpen', title: ( localize(
|
|
688
|
+
MenuRegistry.appendMenuItem(menuId, { command: { id: NEW_UNTITLED_FILE_COMMAND_ID, title: ( localize(2195, "New Text File")) }, group: '1_file', order: 10 });
|
|
689
|
+
MenuRegistry.appendMenuItem(menuId, { command: { id: 'workbench.action.quickOpen', title: ( localize(2196, "Open File...")) }, group: '1_file', order: 20 });
|
|
690
690
|
}
|
|
691
691
|
MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
692
692
|
group: '1_new',
|
|
693
693
|
command: {
|
|
694
694
|
id: NEW_UNTITLED_FILE_COMMAND_ID,
|
|
695
|
-
title: ( localize(
|
|
695
|
+
title: ( localize(2197, "&&New Text File"))
|
|
696
696
|
},
|
|
697
697
|
order: 1
|
|
698
698
|
});
|
|
@@ -700,7 +700,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
700
700
|
group: '4_save',
|
|
701
701
|
command: {
|
|
702
702
|
id: SAVE_FILE_COMMAND_ID,
|
|
703
|
-
title: ( localize(
|
|
703
|
+
title: ( localize(2198, "&&Save")),
|
|
704
704
|
precondition: ( (ContextKeyExpr.or(
|
|
705
705
|
ActiveEditorContext,
|
|
706
706
|
(ContextKeyExpr.and(FoldersViewVisibleContext, SidebarFocusContext))
|
|
@@ -712,7 +712,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
712
712
|
group: '4_save',
|
|
713
713
|
command: {
|
|
714
714
|
id: SAVE_FILE_AS_COMMAND_ID,
|
|
715
|
-
title: ( localize(
|
|
715
|
+
title: ( localize(2199, "Save &&As...")),
|
|
716
716
|
precondition: ( (ContextKeyExpr.or(
|
|
717
717
|
ActiveEditorContext,
|
|
718
718
|
(ContextKeyExpr.and(FoldersViewVisibleContext, SidebarFocusContext))
|
|
@@ -724,7 +724,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
724
724
|
group: '4_save',
|
|
725
725
|
command: {
|
|
726
726
|
id: SAVE_ALL_COMMAND_ID,
|
|
727
|
-
title: ( localize(
|
|
727
|
+
title: ( localize(2200, "Save A&&ll")),
|
|
728
728
|
precondition: DirtyWorkingCopiesContext
|
|
729
729
|
},
|
|
730
730
|
order: 3
|
|
@@ -733,7 +733,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
733
733
|
group: '5_autosave',
|
|
734
734
|
command: {
|
|
735
735
|
id: ToggleAutoSaveAction.ID,
|
|
736
|
-
title: ( localize(
|
|
736
|
+
title: ( localize(2201, "A&&uto Save")),
|
|
737
737
|
toggled: ( (ContextKeyExpr.notEquals('config.files.autoSave', 'off')))
|
|
738
738
|
},
|
|
739
739
|
order: 1
|
|
@@ -742,7 +742,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
742
742
|
group: '6_close',
|
|
743
743
|
command: {
|
|
744
744
|
id: REVERT_FILE_COMMAND_ID,
|
|
745
|
-
title: ( localize(
|
|
745
|
+
title: ( localize(2202, "Re&&vert File")),
|
|
746
746
|
precondition: ( (ContextKeyExpr.or(
|
|
747
747
|
(ContextKeyExpr.and(ActiveEditorCanRevertContext)),
|
|
748
748
|
(ContextKeyExpr.and(
|
|
@@ -757,7 +757,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
757
757
|
group: '6_close',
|
|
758
758
|
command: {
|
|
759
759
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
760
|
-
title: ( localize(
|
|
760
|
+
title: ( localize(2203, "&&Close Editor")),
|
|
761
761
|
precondition: ( (ContextKeyExpr.or(
|
|
762
762
|
ActiveEditorContext,
|
|
763
763
|
(ContextKeyExpr.and(FoldersViewVisibleContext, SidebarFocusContext))
|
|
@@ -769,7 +769,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
769
769
|
group: '3_global_nav',
|
|
770
770
|
command: {
|
|
771
771
|
id: 'workbench.action.quickOpen',
|
|
772
|
-
title: ( localize(
|
|
772
|
+
title: ( localize(2204, "Go to &&File..."))
|
|
773
773
|
},
|
|
774
774
|
order: 1
|
|
775
775
|
});
|
|
@@ -136,7 +136,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
136
136
|
const uri = getResourceForCommand(resource, editorService, listService);
|
|
137
137
|
if (uri && fileService.hasProvider(uri)) {
|
|
138
138
|
const name = basename(uri);
|
|
139
|
-
const editorLabel = ( localize(
|
|
139
|
+
const editorLabel = ( localize(2166, "{0} (in file) ↔ {1}", name, name));
|
|
140
140
|
try {
|
|
141
141
|
await TextFileContentProvider.open(uri, COMPARE_WITH_SAVED_SCHEMA, editorLabel, editorService, { pinned: true });
|
|
142
142
|
if (registerEditorListener) {
|
|
@@ -455,7 +455,7 @@ CommandsRegistry.registerCommand({
|
|
|
455
455
|
const editorService = accessor.get(IEditorService);
|
|
456
456
|
const dialogService = accessor.get(IFileDialogService);
|
|
457
457
|
const fileService = accessor.get(IFileService);
|
|
458
|
-
const createFileLocalized = ( localize(
|
|
458
|
+
const createFileLocalized = ( localize(2167, "Create File"));
|
|
459
459
|
const defaultFileUri = joinPath(await dialogService.defaultFilePath(), args?.fileName ?? 'Untitled.txt');
|
|
460
460
|
const saveUri = await dialogService.showSaveDialog({ saveLabel: createFileLocalized, title: createFileLocalized, defaultUri: defaultFileUri });
|
|
461
461
|
if (!saveUri) {
|
|
@@ -17,13 +17,13 @@ const configurationRegistry = ( (Registry.as(Extensions.Configuration)));
|
|
|
17
17
|
configurationRegistry.registerConfiguration({
|
|
18
18
|
'id': 'explorer',
|
|
19
19
|
'order': 10,
|
|
20
|
-
'title': ( localize(
|
|
20
|
+
'title': ( localize(2205, "File Explorer")),
|
|
21
21
|
'type': 'object',
|
|
22
22
|
'properties': {
|
|
23
23
|
'explorer.openEditors.visible': {
|
|
24
24
|
'type': 'number',
|
|
25
25
|
'description': ( localize(
|
|
26
|
-
|
|
26
|
+
2206,
|
|
27
27
|
"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."
|
|
28
28
|
)),
|
|
29
29
|
'default': 9,
|
|
@@ -32,7 +32,7 @@ configurationRegistry.registerConfiguration({
|
|
|
32
32
|
'explorer.openEditors.minVisible': {
|
|
33
33
|
'type': 'number',
|
|
34
34
|
'description': ( localize(
|
|
35
|
-
|
|
35
|
+
2207,
|
|
36
36
|
"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."
|
|
37
37
|
)),
|
|
38
38
|
'default': 0,
|
|
@@ -41,15 +41,15 @@ configurationRegistry.registerConfiguration({
|
|
|
41
41
|
'explorer.openEditors.sortOrder': {
|
|
42
42
|
'type': 'string',
|
|
43
43
|
'enum': ['editorOrder', 'alphabetical', 'fullPath'],
|
|
44
|
-
'description': ( localize(
|
|
44
|
+
'description': ( localize(2208, "Controls the sorting order of editors in the Open Editors pane.")),
|
|
45
45
|
'enumDescriptions': [
|
|
46
|
-
( localize(
|
|
46
|
+
( localize(2209, 'Editors are ordered in the same order editor tabs are shown.')),
|
|
47
47
|
( localize(
|
|
48
|
-
|
|
48
|
+
2210,
|
|
49
49
|
'Editors are ordered alphabetically by tab name inside each editor group.'
|
|
50
50
|
)),
|
|
51
51
|
( localize(
|
|
52
|
-
|
|
52
|
+
2211,
|
|
53
53
|
'Editors are ordered alphabetically by full path inside each editor group.'
|
|
54
54
|
))
|
|
55
55
|
],
|
|
@@ -60,19 +60,19 @@ configurationRegistry.registerConfiguration({
|
|
|
60
60
|
'enum': [true, false, 'focusNoScroll'],
|
|
61
61
|
'default': true,
|
|
62
62
|
'enumDescriptions': [
|
|
63
|
-
( localize(
|
|
64
|
-
( localize(
|
|
65
|
-
( localize(
|
|
63
|
+
( localize(2212, 'Files will be revealed and selected.')),
|
|
64
|
+
( localize(2213, 'Files will not be revealed and selected.')),
|
|
65
|
+
( localize(2214, 'Files will not be scrolled into view, but will still be focused.')),
|
|
66
66
|
],
|
|
67
67
|
'description': ( localize(
|
|
68
|
-
|
|
68
|
+
2215,
|
|
69
69
|
"Controls whether the Explorer should automatically reveal and select files when opening them."
|
|
70
70
|
))
|
|
71
71
|
},
|
|
72
72
|
'explorer.autoRevealExclude': {
|
|
73
73
|
'type': 'object',
|
|
74
74
|
'markdownDescription': ( localize(
|
|
75
|
-
|
|
75
|
+
2216,
|
|
76
76
|
"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."
|
|
77
77
|
)),
|
|
78
78
|
'default': { '**/node_modules': true, '**/bower_components': true },
|
|
@@ -81,7 +81,7 @@ configurationRegistry.registerConfiguration({
|
|
|
81
81
|
{
|
|
82
82
|
'type': 'boolean',
|
|
83
83
|
'description': ( localize(
|
|
84
|
-
|
|
84
|
+
2217,
|
|
85
85
|
"The glob pattern to match file paths against. Set to true or false to enable or disable the pattern."
|
|
86
86
|
)),
|
|
87
87
|
},
|
|
@@ -93,7 +93,7 @@ configurationRegistry.registerConfiguration({
|
|
|
93
93
|
pattern: '\\w*\\$\\(basename\\)\\w*',
|
|
94
94
|
default: '$(basename).ext',
|
|
95
95
|
description: ( localize(
|
|
96
|
-
|
|
96
|
+
2218,
|
|
97
97
|
'Additional check on the siblings of a matching file. Use $(basename) as variable for the matching file name.'
|
|
98
98
|
))
|
|
99
99
|
}
|
|
@@ -105,7 +105,7 @@ configurationRegistry.registerConfiguration({
|
|
|
105
105
|
'explorer.enableDragAndDrop': {
|
|
106
106
|
'type': 'boolean',
|
|
107
107
|
'description': ( localize(
|
|
108
|
-
|
|
108
|
+
2219,
|
|
109
109
|
"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."
|
|
110
110
|
)),
|
|
111
111
|
'default': true
|
|
@@ -113,7 +113,7 @@ configurationRegistry.registerConfiguration({
|
|
|
113
113
|
'explorer.confirmDragAndDrop': {
|
|
114
114
|
'type': 'boolean',
|
|
115
115
|
'description': ( localize(
|
|
116
|
-
|
|
116
|
+
2220,
|
|
117
117
|
"Controls whether the Explorer should ask for confirmation to move files and folders via drag and drop."
|
|
118
118
|
)),
|
|
119
119
|
'default': true
|
|
@@ -121,7 +121,7 @@ configurationRegistry.registerConfiguration({
|
|
|
121
121
|
'explorer.confirmPasteNative': {
|
|
122
122
|
'type': 'boolean',
|
|
123
123
|
'description': ( localize(
|
|
124
|
-
|
|
124
|
+
2221,
|
|
125
125
|
"Controls whether the Explorer should ask for confirmation when pasting native files and folders."
|
|
126
126
|
)),
|
|
127
127
|
'default': true
|
|
@@ -129,7 +129,7 @@ configurationRegistry.registerConfiguration({
|
|
|
129
129
|
'explorer.confirmDelete': {
|
|
130
130
|
'type': 'boolean',
|
|
131
131
|
'description': ( localize(
|
|
132
|
-
|
|
132
|
+
2222,
|
|
133
133
|
"Controls whether the Explorer should ask for confirmation when deleting a file via the trash."
|
|
134
134
|
)),
|
|
135
135
|
'default': true
|
|
@@ -137,7 +137,7 @@ configurationRegistry.registerConfiguration({
|
|
|
137
137
|
'explorer.enableUndo': {
|
|
138
138
|
'type': 'boolean',
|
|
139
139
|
'description': ( localize(
|
|
140
|
-
|
|
140
|
+
2223,
|
|
141
141
|
"Controls whether the Explorer should support undoing file and folder operations."
|
|
142
142
|
)),
|
|
143
143
|
'default': true
|
|
@@ -146,20 +146,20 @@ configurationRegistry.registerConfiguration({
|
|
|
146
146
|
'type': 'string',
|
|
147
147
|
'enum': ["verbose" , "default" , "light" ],
|
|
148
148
|
'description': ( localize(
|
|
149
|
-
|
|
149
|
+
2224,
|
|
150
150
|
"Controls whether the Explorer should ask for confirmation when undoing."
|
|
151
151
|
)),
|
|
152
152
|
'default': "default" ,
|
|
153
153
|
'enumDescriptions': [
|
|
154
|
-
( localize(
|
|
155
|
-
( localize(
|
|
156
|
-
( localize(
|
|
154
|
+
( localize(2225, 'Explorer will prompt before all undo operations.')),
|
|
155
|
+
( localize(2226, 'Explorer will prompt before destructive undo operations.')),
|
|
156
|
+
( localize(2227, 'Explorer will not prompt before undo operations when focused.')),
|
|
157
157
|
],
|
|
158
158
|
},
|
|
159
159
|
'explorer.expandSingleFolderWorkspaces': {
|
|
160
160
|
'type': 'boolean',
|
|
161
161
|
'description': ( localize(
|
|
162
|
-
|
|
162
|
+
2228,
|
|
163
163
|
"Controls whether the Explorer should expand multi-root workspaces containing only one folder during initialization"
|
|
164
164
|
)),
|
|
165
165
|
'default': true
|
|
@@ -170,32 +170,32 @@ configurationRegistry.registerConfiguration({
|
|
|
170
170
|
'default': "default" ,
|
|
171
171
|
'enumDescriptions': [
|
|
172
172
|
( localize(
|
|
173
|
-
|
|
173
|
+
2229,
|
|
174
174
|
'Files and folders are sorted by their names. Folders are displayed before files.'
|
|
175
175
|
)),
|
|
176
176
|
( localize(
|
|
177
|
-
|
|
177
|
+
2230,
|
|
178
178
|
'Files and folders are sorted by their names. Files are interwoven with folders.'
|
|
179
179
|
)),
|
|
180
180
|
( localize(
|
|
181
|
-
|
|
181
|
+
2231,
|
|
182
182
|
'Files and folders are sorted by their names. Files are displayed before folders.'
|
|
183
183
|
)),
|
|
184
184
|
( localize(
|
|
185
|
-
|
|
185
|
+
2232,
|
|
186
186
|
'Files and folders are grouped by extension type then sorted by their names. Folders are displayed before files.'
|
|
187
187
|
)),
|
|
188
188
|
( localize(
|
|
189
|
-
|
|
189
|
+
2233,
|
|
190
190
|
'Files and folders are sorted by last modified date in descending order. Folders are displayed before files.'
|
|
191
191
|
)),
|
|
192
192
|
( localize(
|
|
193
|
-
|
|
193
|
+
2234,
|
|
194
194
|
'Files and folders are sorted by their names. Folders are displayed before files. Files with nested children are displayed before other files.'
|
|
195
195
|
))
|
|
196
196
|
],
|
|
197
197
|
'markdownDescription': ( localize(
|
|
198
|
-
|
|
198
|
+
2235,
|
|
199
199
|
"Controls the property-based sorting of files and folders in the Explorer. When `#explorer.fileNesting.enabled#` is enabled, also controls sorting of nested files."
|
|
200
200
|
))
|
|
201
201
|
},
|
|
@@ -204,32 +204,32 @@ configurationRegistry.registerConfiguration({
|
|
|
204
204
|
'enum': ["default" , "upper" , "lower" , "unicode" ],
|
|
205
205
|
'default': "default" ,
|
|
206
206
|
'enumDescriptions': [
|
|
207
|
-
( localize(
|
|
208
|
-
( localize(
|
|
209
|
-
( localize(
|
|
210
|
-
( localize(
|
|
207
|
+
( localize(2236, 'Uppercase and lowercase names are mixed together.')),
|
|
208
|
+
( localize(2237, 'Uppercase names are grouped together before lowercase names.')),
|
|
209
|
+
( localize(2238, 'Lowercase names are grouped together before uppercase names.')),
|
|
210
|
+
( localize(2239, 'Names are sorted in Unicode order.'))
|
|
211
211
|
],
|
|
212
212
|
'description': ( localize(
|
|
213
|
-
|
|
213
|
+
2240,
|
|
214
214
|
"Controls the lexicographic sorting of file and folder names in the Explorer."
|
|
215
215
|
))
|
|
216
216
|
},
|
|
217
217
|
'explorer.sortOrderReverse': {
|
|
218
218
|
'type': 'boolean',
|
|
219
219
|
'description': ( localize(
|
|
220
|
-
|
|
220
|
+
2241,
|
|
221
221
|
"Controls whether the file and folder sort order, should be reversed."
|
|
222
222
|
)),
|
|
223
223
|
'default': false,
|
|
224
224
|
},
|
|
225
225
|
'explorer.decorations.colors': {
|
|
226
226
|
type: 'boolean',
|
|
227
|
-
description: ( localize(
|
|
227
|
+
description: ( localize(2242, "Controls whether file decorations should use colors.")),
|
|
228
228
|
default: true
|
|
229
229
|
},
|
|
230
230
|
'explorer.decorations.badges': {
|
|
231
231
|
type: 'boolean',
|
|
232
|
-
description: ( localize(
|
|
232
|
+
description: ( localize(2243, "Controls whether file decorations should use badges.")),
|
|
233
233
|
default: true
|
|
234
234
|
},
|
|
235
235
|
'explorer.incrementalNaming': {
|
|
@@ -237,20 +237,20 @@ configurationRegistry.registerConfiguration({
|
|
|
237
237
|
enum: ['simple', 'smart', 'disabled'],
|
|
238
238
|
enumDescriptions: [
|
|
239
239
|
( localize(
|
|
240
|
-
|
|
240
|
+
2244,
|
|
241
241
|
"Appends the word \"copy\" at the end of the duplicated name potentially followed by a number."
|
|
242
242
|
)),
|
|
243
243
|
( localize(
|
|
244
|
-
|
|
244
|
+
2245,
|
|
245
245
|
"Adds a number at the end of the duplicated name. If some number is already part of the name, tries to increase that number."
|
|
246
246
|
)),
|
|
247
247
|
( localize(
|
|
248
|
-
|
|
248
|
+
2246,
|
|
249
249
|
"Disables incremental naming. If two files with the same name exist you will be prompted to overwrite the existing file."
|
|
250
250
|
))
|
|
251
251
|
],
|
|
252
252
|
description: ( localize(
|
|
253
|
-
|
|
253
|
+
2247,
|
|
254
254
|
"Controls which naming strategy to use when giving a new name to a duplicated Explorer item on paste."
|
|
255
255
|
)),
|
|
256
256
|
default: 'simple'
|
|
@@ -258,7 +258,7 @@ configurationRegistry.registerConfiguration({
|
|
|
258
258
|
'explorer.autoOpenDroppedFile': {
|
|
259
259
|
'type': 'boolean',
|
|
260
260
|
'description': ( localize(
|
|
261
|
-
|
|
261
|
+
2248,
|
|
262
262
|
"Controls whether the Explorer should automatically open a file when it is dropped into the explorer"
|
|
263
263
|
)),
|
|
264
264
|
'default': true
|
|
@@ -266,7 +266,7 @@ configurationRegistry.registerConfiguration({
|
|
|
266
266
|
'explorer.compactFolders': {
|
|
267
267
|
'type': 'boolean',
|
|
268
268
|
'description': ( localize(
|
|
269
|
-
|
|
269
|
+
2249,
|
|
270
270
|
"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."
|
|
271
271
|
)),
|
|
272
272
|
'default': true
|
|
@@ -279,12 +279,12 @@ configurationRegistry.registerConfiguration({
|
|
|
279
279
|
'auto'
|
|
280
280
|
],
|
|
281
281
|
'enumDescriptions': [
|
|
282
|
-
( localize(
|
|
283
|
-
( localize(
|
|
284
|
-
( localize(
|
|
282
|
+
( localize(2250, "Use slash as path separation character.")),
|
|
283
|
+
( localize(2251, "Use backslash as path separation character.")),
|
|
284
|
+
( localize(2252, "Uses operating system specific path separation character.")),
|
|
285
285
|
],
|
|
286
286
|
'description': ( localize(
|
|
287
|
-
|
|
287
|
+
2253,
|
|
288
288
|
"The path separation character used when copying relative file paths."
|
|
289
289
|
)),
|
|
290
290
|
'default': 'auto'
|
|
@@ -292,7 +292,7 @@ configurationRegistry.registerConfiguration({
|
|
|
292
292
|
'explorer.excludeGitIgnore': {
|
|
293
293
|
type: 'boolean',
|
|
294
294
|
markdownDescription: ( localize(
|
|
295
|
-
|
|
295
|
+
2254,
|
|
296
296
|
"Controls whether entries in .gitignore should be parsed and excluded from the Explorer. Similar to {0}.",
|
|
297
297
|
'`#files.exclude#`'
|
|
298
298
|
)),
|
|
@@ -303,7 +303,7 @@ configurationRegistry.registerConfiguration({
|
|
|
303
303
|
'type': 'boolean',
|
|
304
304
|
scope: 4 ,
|
|
305
305
|
'markdownDescription': ( localize(
|
|
306
|
-
|
|
306
|
+
2255,
|
|
307
307
|
"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."
|
|
308
308
|
)),
|
|
309
309
|
'default': false,
|
|
@@ -311,7 +311,7 @@ configurationRegistry.registerConfiguration({
|
|
|
311
311
|
'explorer.fileNesting.expand': {
|
|
312
312
|
'type': 'boolean',
|
|
313
313
|
'markdownDescription': ( localize(
|
|
314
|
-
|
|
314
|
+
2256,
|
|
315
315
|
"Controls whether file nests are automatically expanded. {0} must be set for this to take effect.",
|
|
316
316
|
'`#explorer.fileNesting.enabled#`'
|
|
317
317
|
)),
|
|
@@ -321,14 +321,14 @@ configurationRegistry.registerConfiguration({
|
|
|
321
321
|
'type': 'object',
|
|
322
322
|
scope: 4 ,
|
|
323
323
|
'markdownDescription': ( localize(
|
|
324
|
-
|
|
324
|
+
2257,
|
|
325
325
|
"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",
|
|
326
326
|
'`#explorer.fileNesting.enabled#`'
|
|
327
327
|
)),
|
|
328
328
|
patternProperties: {
|
|
329
329
|
'^[^*]*\\*?[^*]*$': {
|
|
330
330
|
markdownDescription: ( localize(
|
|
331
|
-
|
|
331
|
+
2258,
|
|
332
332
|
"Each key pattern may contain a single `*` character which will match any string."
|
|
333
333
|
)),
|
|
334
334
|
type: 'string',
|