@codingame/monaco-vscode-explorer-service-override 4.5.2 → 5.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/explorer.js +1 -1
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +34 -27
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/{files.explorer.contribution.js → files.contribution._explorer.js} +56 -56
package/explorer.js
CHANGED
|
@@ -3,7 +3,7 @@ import { ExplorerService } from './vscode/src/vs/workbench/contrib/files/browser
|
|
|
3
3
|
import { IExplorerService } from 'vscode/vscode/vs/workbench/contrib/files/browser/files.service';
|
|
4
4
|
import './vscode/src/vs/workbench/contrib/files/browser/fileCommands.js';
|
|
5
5
|
import './vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js';
|
|
6
|
-
import './vscode/src/vs/workbench/contrib/files/browser/files.
|
|
6
|
+
import './vscode/src/vs/workbench/contrib/files/browser/files.contribution._explorer.js';
|
|
7
7
|
|
|
8
8
|
function getServiceOverride() {
|
|
9
9
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-explorer-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.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@
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@5.0.0"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -220,7 +220,14 @@ appendToCommandPalette({
|
|
|
220
220
|
appendToCommandPalette({
|
|
221
221
|
id: COMPARE_WITH_SAVED_COMMAND_ID,
|
|
222
222
|
title: ( localize2WithPath(_moduleId, 10, "Compare Active File with Saved")),
|
|
223
|
-
category: Categories.File
|
|
223
|
+
category: Categories.File,
|
|
224
|
+
metadata: {
|
|
225
|
+
description: ( localize2WithPath(
|
|
226
|
+
_moduleId,
|
|
227
|
+
11,
|
|
228
|
+
"Opens a new diff editor to compare the active file with the version on disk."
|
|
229
|
+
))
|
|
230
|
+
}
|
|
224
231
|
});
|
|
225
232
|
appendToCommandPalette({
|
|
226
233
|
id: SAVE_FILE_AS_COMMAND_ID,
|
|
@@ -236,7 +243,7 @@ appendToCommandPalette({
|
|
|
236
243
|
id: NEW_FOLDER_COMMAND_ID,
|
|
237
244
|
title: NEW_FOLDER_LABEL,
|
|
238
245
|
category: Categories.File,
|
|
239
|
-
metadata: { description: ( localize2WithPath(_moduleId,
|
|
246
|
+
metadata: { description: ( localize2WithPath(_moduleId, 12, "Create a new folder or directory")) }
|
|
240
247
|
}, ( (WorkspaceFolderCountContext.notEqualsTo('0'))));
|
|
241
248
|
appendToCommandPalette({
|
|
242
249
|
id: NEW_UNTITLED_FILE_COMMAND_ID,
|
|
@@ -249,7 +256,7 @@ const isFileOrUntitledResourceContextKey = ( (ContextKeyExpr.or(
|
|
|
249
256
|
)));
|
|
250
257
|
const openToSideCommand = {
|
|
251
258
|
id: OPEN_TO_SIDE_COMMAND_ID,
|
|
252
|
-
title: ( localizeWithPath(_moduleId,
|
|
259
|
+
title: ( localizeWithPath(_moduleId, 13, "Open to the Side"))
|
|
253
260
|
};
|
|
254
261
|
MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
255
262
|
group: 'navigation',
|
|
@@ -262,7 +269,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
262
269
|
order: 10,
|
|
263
270
|
command: {
|
|
264
271
|
id: REOPEN_WITH_COMMAND_ID,
|
|
265
|
-
title: ( localizeWithPath(_moduleId,
|
|
272
|
+
title: ( localizeWithPath(_moduleId, 14, "Reopen Editor With..."))
|
|
266
273
|
},
|
|
267
274
|
when: ActiveEditorAvailableEditorIdsContext
|
|
268
275
|
});
|
|
@@ -312,7 +319,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
312
319
|
order: 30,
|
|
313
320
|
command: {
|
|
314
321
|
id: SAVE_ALL_IN_GROUP_COMMAND_ID,
|
|
315
|
-
title: ( localizeWithPath(_moduleId,
|
|
322
|
+
title: ( localizeWithPath(_moduleId, 15, "Save All")),
|
|
316
323
|
precondition: DirtyWorkingCopiesContext
|
|
317
324
|
},
|
|
318
325
|
when: OpenEditorsGroupContext
|
|
@@ -322,7 +329,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
322
329
|
order: 10,
|
|
323
330
|
command: {
|
|
324
331
|
id: COMPARE_WITH_SAVED_COMMAND_ID,
|
|
325
|
-
title: ( localizeWithPath(_moduleId,
|
|
332
|
+
title: ( localizeWithPath(_moduleId, 16, "Compare with Saved")),
|
|
326
333
|
precondition: OpenEditorsDirtyEditorContext
|
|
327
334
|
},
|
|
328
335
|
when: ( (ContextKeyExpr.and(
|
|
@@ -333,7 +340,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
333
340
|
});
|
|
334
341
|
const compareResourceCommand = {
|
|
335
342
|
id: COMPARE_RESOURCE_COMMAND_ID,
|
|
336
|
-
title: ( localizeWithPath(_moduleId,
|
|
343
|
+
title: ( localizeWithPath(_moduleId, 17, "Compare with Selected"))
|
|
337
344
|
};
|
|
338
345
|
MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
339
346
|
group: '3_compare',
|
|
@@ -348,7 +355,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
348
355
|
});
|
|
349
356
|
const selectForCompareCommand = {
|
|
350
357
|
id: SELECT_FOR_COMPARE_COMMAND_ID,
|
|
351
|
-
title: ( localizeWithPath(_moduleId,
|
|
358
|
+
title: ( localizeWithPath(_moduleId, 18, "Select for Compare"))
|
|
352
359
|
};
|
|
353
360
|
MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
354
361
|
group: '3_compare',
|
|
@@ -362,7 +369,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
362
369
|
});
|
|
363
370
|
const compareSelectedCommand = {
|
|
364
371
|
id: COMPARE_SELECTED_COMMAND_ID,
|
|
365
|
-
title: ( localizeWithPath(_moduleId,
|
|
372
|
+
title: ( localizeWithPath(_moduleId, 19, "Compare Selected"))
|
|
366
373
|
};
|
|
367
374
|
MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
368
375
|
group: '3_compare',
|
|
@@ -379,7 +386,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
379
386
|
order: 10,
|
|
380
387
|
command: {
|
|
381
388
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
382
|
-
title: ( localizeWithPath(_moduleId,
|
|
389
|
+
title: ( localizeWithPath(_moduleId, 20, "Close"))
|
|
383
390
|
},
|
|
384
391
|
when: ( (OpenEditorsGroupContext.toNegated()))
|
|
385
392
|
});
|
|
@@ -388,7 +395,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
388
395
|
order: 20,
|
|
389
396
|
command: {
|
|
390
397
|
id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID,
|
|
391
|
-
title: ( localizeWithPath(_moduleId,
|
|
398
|
+
title: ( localizeWithPath(_moduleId, 21, "Close Others"))
|
|
392
399
|
},
|
|
393
400
|
when: ( (OpenEditorsGroupContext.toNegated()))
|
|
394
401
|
});
|
|
@@ -397,7 +404,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
397
404
|
order: 30,
|
|
398
405
|
command: {
|
|
399
406
|
id: CLOSE_SAVED_EDITORS_COMMAND_ID,
|
|
400
|
-
title: ( localizeWithPath(_moduleId,
|
|
407
|
+
title: ( localizeWithPath(_moduleId, 22, "Close Saved"))
|
|
401
408
|
}
|
|
402
409
|
});
|
|
403
410
|
MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
@@ -405,7 +412,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
|
|
|
405
412
|
order: 40,
|
|
406
413
|
command: {
|
|
407
414
|
id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID,
|
|
408
|
-
title: ( localizeWithPath(_moduleId,
|
|
415
|
+
title: ( localizeWithPath(_moduleId, 23, "Close All"))
|
|
409
416
|
}
|
|
410
417
|
});
|
|
411
418
|
MenuRegistry.appendMenuItem(MenuId.ExplorerContext, {
|
|
@@ -442,7 +449,7 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerContext, {
|
|
|
442
449
|
order: 20,
|
|
443
450
|
command: {
|
|
444
451
|
id: OPEN_WITH_EXPLORER_COMMAND_ID,
|
|
445
|
-
title: ( localizeWithPath(_moduleId,
|
|
452
|
+
title: ( localizeWithPath(_moduleId, 24, "Open With...")),
|
|
446
453
|
},
|
|
447
454
|
when: ( (ContextKeyExpr.and(
|
|
448
455
|
(ExplorerFolderContext.toNegated()),
|
|
@@ -485,7 +492,7 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerContext, {
|
|
|
485
492
|
order: 8,
|
|
486
493
|
command: {
|
|
487
494
|
id: CUT_FILE_ID,
|
|
488
|
-
title: ( localizeWithPath(_moduleId,
|
|
495
|
+
title: ( localizeWithPath(_moduleId, 25, "Cut"))
|
|
489
496
|
},
|
|
490
497
|
when: ( (ContextKeyExpr.and(
|
|
491
498
|
(ExplorerRootContext.toNegated()),
|
|
@@ -605,7 +612,7 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerContext, {
|
|
|
605
612
|
},
|
|
606
613
|
alt: {
|
|
607
614
|
id: DELETE_FILE_ID,
|
|
608
|
-
title: ( localizeWithPath(_moduleId,
|
|
615
|
+
title: ( localizeWithPath(_moduleId, 26, "Delete Permanently")),
|
|
609
616
|
precondition: ExplorerResourceNotReadonlyContext
|
|
610
617
|
},
|
|
611
618
|
when: ( (ContextKeyExpr.and(
|
|
@@ -618,7 +625,7 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerContext, {
|
|
|
618
625
|
order: 20,
|
|
619
626
|
command: {
|
|
620
627
|
id: DELETE_FILE_ID,
|
|
621
|
-
title: ( localizeWithPath(_moduleId,
|
|
628
|
+
title: ( localizeWithPath(_moduleId, 26, "Delete Permanently")),
|
|
622
629
|
precondition: ExplorerResourceNotReadonlyContext
|
|
623
630
|
},
|
|
624
631
|
when: ( (ContextKeyExpr.and(
|
|
@@ -627,14 +634,14 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerContext, {
|
|
|
627
634
|
)))
|
|
628
635
|
});
|
|
629
636
|
for (const menuId of [MenuId.EmptyEditorGroupContext, MenuId.EditorTabsBarContext]) {
|
|
630
|
-
MenuRegistry.appendMenuItem(menuId, { command: { id: NEW_UNTITLED_FILE_COMMAND_ID, title: ( localizeWithPath(_moduleId,
|
|
631
|
-
MenuRegistry.appendMenuItem(menuId, { command: { id: 'workbench.action.quickOpen', title: ( localizeWithPath(_moduleId,
|
|
637
|
+
MenuRegistry.appendMenuItem(menuId, { command: { id: NEW_UNTITLED_FILE_COMMAND_ID, title: ( localizeWithPath(_moduleId, 27, "New Text File")) }, group: '1_file', order: 10 });
|
|
638
|
+
MenuRegistry.appendMenuItem(menuId, { command: { id: 'workbench.action.quickOpen', title: ( localizeWithPath(_moduleId, 28, "Open File...")) }, group: '1_file', order: 20 });
|
|
632
639
|
}
|
|
633
640
|
MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
634
641
|
group: '1_new',
|
|
635
642
|
command: {
|
|
636
643
|
id: NEW_UNTITLED_FILE_COMMAND_ID,
|
|
637
|
-
title: ( localizeWithPath(_moduleId,
|
|
644
|
+
title: ( localizeWithPath(_moduleId, 29, "&&New Text File"))
|
|
638
645
|
},
|
|
639
646
|
order: 1
|
|
640
647
|
});
|
|
@@ -642,7 +649,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
642
649
|
group: '4_save',
|
|
643
650
|
command: {
|
|
644
651
|
id: SAVE_FILE_COMMAND_ID,
|
|
645
|
-
title: ( localizeWithPath(_moduleId,
|
|
652
|
+
title: ( localizeWithPath(_moduleId, 30, "&&Save")),
|
|
646
653
|
precondition: ( (ContextKeyExpr.or(
|
|
647
654
|
ActiveEditorContext,
|
|
648
655
|
(ContextKeyExpr.and(FoldersViewVisibleContext, SidebarFocusContext))
|
|
@@ -654,7 +661,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
654
661
|
group: '4_save',
|
|
655
662
|
command: {
|
|
656
663
|
id: SAVE_FILE_AS_COMMAND_ID,
|
|
657
|
-
title: ( localizeWithPath(_moduleId,
|
|
664
|
+
title: ( localizeWithPath(_moduleId, 31, "Save &&As...")),
|
|
658
665
|
precondition: ( (ContextKeyExpr.or(
|
|
659
666
|
ActiveEditorContext,
|
|
660
667
|
(ContextKeyExpr.and(FoldersViewVisibleContext, SidebarFocusContext))
|
|
@@ -666,7 +673,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
666
673
|
group: '4_save',
|
|
667
674
|
command: {
|
|
668
675
|
id: SAVE_ALL_COMMAND_ID,
|
|
669
|
-
title: ( localizeWithPath(_moduleId,
|
|
676
|
+
title: ( localizeWithPath(_moduleId, 32, "Save A&&ll")),
|
|
670
677
|
precondition: DirtyWorkingCopiesContext
|
|
671
678
|
},
|
|
672
679
|
order: 3
|
|
@@ -675,7 +682,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
675
682
|
group: '5_autosave',
|
|
676
683
|
command: {
|
|
677
684
|
id: ToggleAutoSaveAction.ID,
|
|
678
|
-
title: ( localizeWithPath(_moduleId,
|
|
685
|
+
title: ( localizeWithPath(_moduleId, 33, "A&&uto Save")),
|
|
679
686
|
toggled: ( (ContextKeyExpr.notEquals('config.files.autoSave', 'off')))
|
|
680
687
|
},
|
|
681
688
|
order: 1
|
|
@@ -684,7 +691,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
684
691
|
group: '6_close',
|
|
685
692
|
command: {
|
|
686
693
|
id: REVERT_FILE_COMMAND_ID,
|
|
687
|
-
title: ( localizeWithPath(_moduleId,
|
|
694
|
+
title: ( localizeWithPath(_moduleId, 34, "Re&&vert File")),
|
|
688
695
|
precondition: ( (ContextKeyExpr.or(
|
|
689
696
|
(ContextKeyExpr.and(ActiveEditorCanRevertContext)),
|
|
690
697
|
(ContextKeyExpr.and(
|
|
@@ -699,7 +706,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
699
706
|
group: '6_close',
|
|
700
707
|
command: {
|
|
701
708
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
702
|
-
title: ( localizeWithPath(_moduleId,
|
|
709
|
+
title: ( localizeWithPath(_moduleId, 35, "&&Close Editor")),
|
|
703
710
|
precondition: ( (ContextKeyExpr.or(
|
|
704
711
|
ActiveEditorContext,
|
|
705
712
|
(ContextKeyExpr.and(FoldersViewVisibleContext, SidebarFocusContext))
|
|
@@ -711,7 +718,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
711
718
|
group: '3_global_nav',
|
|
712
719
|
command: {
|
|
713
720
|
id: 'workbench.action.quickOpen',
|
|
714
|
-
title: ( localizeWithPath(_moduleId,
|
|
721
|
+
title: ( localizeWithPath(_moduleId, 36, "Go to &&File..."))
|
|
715
722
|
},
|
|
716
723
|
order: 1
|
|
717
724
|
});
|
|
@@ -40,7 +40,7 @@ import { IPaneCompositePartService } from 'vscode/vscode/vs/workbench/services/p
|
|
|
40
40
|
import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
41
41
|
import { IWorkspaceEditingService } from 'vscode/vscode/vs/workbench/services/workspaces/common/workspaceEditing.service';
|
|
42
42
|
import { OPEN_TO_SIDE_COMMAND_ID, COMPARE_WITH_SAVED_COMMAND_ID, SELECT_FOR_COMPARE_COMMAND_ID, ResourceSelectedForCompareContext, COMPARE_SELECTED_COMMAND_ID, COMPARE_RESOURCE_COMMAND_ID, COPY_PATH_COMMAND_ID, COPY_RELATIVE_PATH_COMMAND_ID, REVEAL_IN_EXPLORER_COMMAND_ID, OPEN_WITH_EXPLORER_COMMAND_ID, REVERT_FILE_COMMAND_ID, REMOVE_ROOT_FOLDER_COMMAND_ID, PREVIOUS_COMPRESSED_FOLDER, NEXT_COMPRESSED_FOLDER, FIRST_COMPRESSED_FOLDER, LAST_COMPRESSED_FOLDER, NEW_UNTITLED_FILE_COMMAND_ID, NEW_UNTITLED_FILE_LABEL, NEW_FILE_COMMAND_ID } from 'vscode/vscode/vs/workbench/contrib/files/browser/fileConstants';
|
|
43
|
-
import 'vscode/vscode/vs/workbench/contrib/files/browser/fileCommands.
|
|
43
|
+
import 'vscode/vscode/vs/workbench/contrib/files/browser/fileCommands._save';
|
|
44
44
|
|
|
45
45
|
const _moduleId = "vs/workbench/contrib/files/browser/fileCommands";
|
|
46
46
|
const openWindowCommand = (accessor, toOpen, options) => {
|
|
@@ -8,24 +8,24 @@ import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/commo
|
|
|
8
8
|
import { UNDO_REDO_SOURCE } from './explorerService.js';
|
|
9
9
|
import { ExplorerViewletViewsContribution } from 'vscode/vscode/vs/workbench/contrib/files/browser/explorerViewlet';
|
|
10
10
|
import { IExplorerService } from 'vscode/vscode/vs/workbench/contrib/files/browser/files.service';
|
|
11
|
-
import 'vscode/vscode/vs/workbench/contrib/files/browser/files.
|
|
12
|
-
import 'vscode/vscode/vs/workbench/contrib/files/browser/files.
|
|
13
|
-
import 'vscode/vscode/vs/workbench/contrib/files/browser/files.
|
|
11
|
+
import 'vscode/vscode/vs/workbench/contrib/files/browser/files.contribution._configuration';
|
|
12
|
+
import 'vscode/vscode/vs/workbench/contrib/files/browser/files.contribution._editorPane';
|
|
13
|
+
import 'vscode/vscode/vs/workbench/contrib/files/browser/files.contribution._fileEditorFactory';
|
|
14
14
|
|
|
15
|
-
const _moduleId = "vs/workbench/contrib/files/browser/files.
|
|
15
|
+
const _moduleId = "vs/workbench/contrib/files/browser/files.contribution";
|
|
16
16
|
registerWorkbenchContribution2(ExplorerViewletViewsContribution.ID, ExplorerViewletViewsContribution, 1 );
|
|
17
17
|
const configurationRegistry = ( (Registry.as(Extensions.Configuration)));
|
|
18
18
|
configurationRegistry.registerConfiguration({
|
|
19
19
|
'id': 'explorer',
|
|
20
20
|
'order': 10,
|
|
21
|
-
'title': ( localizeWithPath(_moduleId,
|
|
21
|
+
'title': ( localizeWithPath(_moduleId, 50, "File Explorer")),
|
|
22
22
|
'type': 'object',
|
|
23
23
|
'properties': {
|
|
24
24
|
'explorer.openEditors.visible': {
|
|
25
25
|
'type': 'number',
|
|
26
26
|
'description': ( localizeWithPath(
|
|
27
27
|
_moduleId,
|
|
28
|
-
|
|
28
|
+
51,
|
|
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,
|
|
@@ -35,7 +35,7 @@ configurationRegistry.registerConfiguration({
|
|
|
35
35
|
'type': 'number',
|
|
36
36
|
'description': ( localizeWithPath(
|
|
37
37
|
_moduleId,
|
|
38
|
-
|
|
38
|
+
52,
|
|
39
39
|
"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."
|
|
40
40
|
)),
|
|
41
41
|
'default': 0,
|
|
@@ -46,23 +46,23 @@ configurationRegistry.registerConfiguration({
|
|
|
46
46
|
'enum': ['editorOrder', 'alphabetical', 'fullPath'],
|
|
47
47
|
'description': ( localizeWithPath(
|
|
48
48
|
_moduleId,
|
|
49
|
-
|
|
49
|
+
53,
|
|
50
50
|
"Controls the sorting order of editors in the Open Editors pane."
|
|
51
51
|
)),
|
|
52
52
|
'enumDescriptions': [
|
|
53
53
|
( localizeWithPath(
|
|
54
54
|
_moduleId,
|
|
55
|
-
|
|
55
|
+
54,
|
|
56
56
|
'Editors are ordered in the same order editor tabs are shown.'
|
|
57
57
|
)),
|
|
58
58
|
( localizeWithPath(
|
|
59
59
|
_moduleId,
|
|
60
|
-
|
|
60
|
+
55,
|
|
61
61
|
'Editors are ordered alphabetically by tab name inside each editor group.'
|
|
62
62
|
)),
|
|
63
63
|
( localizeWithPath(
|
|
64
64
|
_moduleId,
|
|
65
|
-
|
|
65
|
+
56,
|
|
66
66
|
'Editors are ordered alphabetically by full path inside each editor group.'
|
|
67
67
|
))
|
|
68
68
|
],
|
|
@@ -73,17 +73,17 @@ configurationRegistry.registerConfiguration({
|
|
|
73
73
|
'enum': [true, false, 'focusNoScroll'],
|
|
74
74
|
'default': true,
|
|
75
75
|
'enumDescriptions': [
|
|
76
|
-
( localizeWithPath(_moduleId,
|
|
77
|
-
( localizeWithPath(_moduleId,
|
|
76
|
+
( localizeWithPath(_moduleId, 57, 'Files will be revealed and selected.')),
|
|
77
|
+
( localizeWithPath(_moduleId, 58, 'Files will not be revealed and selected.')),
|
|
78
78
|
( localizeWithPath(
|
|
79
79
|
_moduleId,
|
|
80
|
-
|
|
80
|
+
59,
|
|
81
81
|
'Files will not be scrolled into view, but will still be focused.'
|
|
82
82
|
)),
|
|
83
83
|
],
|
|
84
84
|
'description': ( localizeWithPath(
|
|
85
85
|
_moduleId,
|
|
86
|
-
|
|
86
|
+
60,
|
|
87
87
|
"Controls whether the Explorer should automatically reveal and select files when opening them."
|
|
88
88
|
))
|
|
89
89
|
},
|
|
@@ -91,7 +91,7 @@ configurationRegistry.registerConfiguration({
|
|
|
91
91
|
'type': 'object',
|
|
92
92
|
'markdownDescription': ( localizeWithPath(
|
|
93
93
|
_moduleId,
|
|
94
|
-
|
|
94
|
+
61,
|
|
95
95
|
"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."
|
|
96
96
|
)),
|
|
97
97
|
'default': { '**/node_modules': true, '**/bower_components': true },
|
|
@@ -101,7 +101,7 @@ configurationRegistry.registerConfiguration({
|
|
|
101
101
|
'type': 'boolean',
|
|
102
102
|
'description': ( localizeWithPath(
|
|
103
103
|
_moduleId,
|
|
104
|
-
|
|
104
|
+
62,
|
|
105
105
|
"The glob pattern to match file paths against. Set to true or false to enable or disable the pattern."
|
|
106
106
|
)),
|
|
107
107
|
},
|
|
@@ -114,7 +114,7 @@ configurationRegistry.registerConfiguration({
|
|
|
114
114
|
default: '$(basename).ext',
|
|
115
115
|
description: ( localizeWithPath(
|
|
116
116
|
_moduleId,
|
|
117
|
-
|
|
117
|
+
63,
|
|
118
118
|
'Additional check on the siblings of a matching file. Use $(basename) as variable for the matching file name.'
|
|
119
119
|
))
|
|
120
120
|
}
|
|
@@ -127,7 +127,7 @@ configurationRegistry.registerConfiguration({
|
|
|
127
127
|
'type': 'boolean',
|
|
128
128
|
'description': ( localizeWithPath(
|
|
129
129
|
_moduleId,
|
|
130
|
-
|
|
130
|
+
64,
|
|
131
131
|
"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."
|
|
132
132
|
)),
|
|
133
133
|
'default': true
|
|
@@ -136,7 +136,7 @@ configurationRegistry.registerConfiguration({
|
|
|
136
136
|
'type': 'boolean',
|
|
137
137
|
'description': ( localizeWithPath(
|
|
138
138
|
_moduleId,
|
|
139
|
-
|
|
139
|
+
65,
|
|
140
140
|
"Controls whether the Explorer should ask for confirmation to move files and folders via drag and drop."
|
|
141
141
|
)),
|
|
142
142
|
'default': true
|
|
@@ -145,7 +145,7 @@ configurationRegistry.registerConfiguration({
|
|
|
145
145
|
'type': 'boolean',
|
|
146
146
|
'description': ( localizeWithPath(
|
|
147
147
|
_moduleId,
|
|
148
|
-
|
|
148
|
+
66,
|
|
149
149
|
"Controls whether the Explorer should ask for confirmation when pasting native files and folders."
|
|
150
150
|
)),
|
|
151
151
|
'default': true
|
|
@@ -154,7 +154,7 @@ configurationRegistry.registerConfiguration({
|
|
|
154
154
|
'type': 'boolean',
|
|
155
155
|
'description': ( localizeWithPath(
|
|
156
156
|
_moduleId,
|
|
157
|
-
|
|
157
|
+
67,
|
|
158
158
|
"Controls whether the Explorer should ask for confirmation when deleting a file via the trash."
|
|
159
159
|
)),
|
|
160
160
|
'default': true
|
|
@@ -163,7 +163,7 @@ configurationRegistry.registerConfiguration({
|
|
|
163
163
|
'type': 'boolean',
|
|
164
164
|
'description': ( localizeWithPath(
|
|
165
165
|
_moduleId,
|
|
166
|
-
|
|
166
|
+
68,
|
|
167
167
|
"Controls whether the Explorer should support undoing file and folder operations."
|
|
168
168
|
)),
|
|
169
169
|
'default': true
|
|
@@ -173,16 +173,16 @@ configurationRegistry.registerConfiguration({
|
|
|
173
173
|
'enum': ["verbose" , "default" , "light" ],
|
|
174
174
|
'description': ( localizeWithPath(
|
|
175
175
|
_moduleId,
|
|
176
|
-
|
|
176
|
+
69,
|
|
177
177
|
"Controls whether the Explorer should ask for confirmation when undoing."
|
|
178
178
|
)),
|
|
179
179
|
'default': "default" ,
|
|
180
180
|
'enumDescriptions': [
|
|
181
|
-
( localizeWithPath(_moduleId,
|
|
182
|
-
( localizeWithPath(_moduleId,
|
|
181
|
+
( localizeWithPath(_moduleId, 70, 'Explorer will prompt before all undo operations.')),
|
|
182
|
+
( localizeWithPath(_moduleId, 71, 'Explorer will prompt before destructive undo operations.')),
|
|
183
183
|
( localizeWithPath(
|
|
184
184
|
_moduleId,
|
|
185
|
-
|
|
185
|
+
72,
|
|
186
186
|
'Explorer will not prompt before undo operations when focused.'
|
|
187
187
|
)),
|
|
188
188
|
],
|
|
@@ -191,7 +191,7 @@ configurationRegistry.registerConfiguration({
|
|
|
191
191
|
'type': 'boolean',
|
|
192
192
|
'description': ( localizeWithPath(
|
|
193
193
|
_moduleId,
|
|
194
|
-
|
|
194
|
+
73,
|
|
195
195
|
"Controls whether the Explorer should expand multi-root workspaces containing only one folder during initialization"
|
|
196
196
|
)),
|
|
197
197
|
'default': true
|
|
@@ -203,38 +203,38 @@ configurationRegistry.registerConfiguration({
|
|
|
203
203
|
'enumDescriptions': [
|
|
204
204
|
( localizeWithPath(
|
|
205
205
|
_moduleId,
|
|
206
|
-
|
|
206
|
+
74,
|
|
207
207
|
'Files and folders are sorted by their names. Folders are displayed before files.'
|
|
208
208
|
)),
|
|
209
209
|
( localizeWithPath(
|
|
210
210
|
_moduleId,
|
|
211
|
-
|
|
211
|
+
75,
|
|
212
212
|
'Files and folders are sorted by their names. Files are interwoven with folders.'
|
|
213
213
|
)),
|
|
214
214
|
( localizeWithPath(
|
|
215
215
|
_moduleId,
|
|
216
|
-
|
|
216
|
+
76,
|
|
217
217
|
'Files and folders are sorted by their names. Files are displayed before folders.'
|
|
218
218
|
)),
|
|
219
219
|
( localizeWithPath(
|
|
220
220
|
_moduleId,
|
|
221
|
-
|
|
221
|
+
77,
|
|
222
222
|
'Files and folders are grouped by extension type then sorted by their names. Folders are displayed before files.'
|
|
223
223
|
)),
|
|
224
224
|
( localizeWithPath(
|
|
225
225
|
_moduleId,
|
|
226
|
-
|
|
226
|
+
78,
|
|
227
227
|
'Files and folders are sorted by last modified date in descending order. Folders are displayed before files.'
|
|
228
228
|
)),
|
|
229
229
|
( localizeWithPath(
|
|
230
230
|
_moduleId,
|
|
231
|
-
|
|
231
|
+
79,
|
|
232
232
|
'Files and folders are sorted by their names. Folders are displayed before files. Files with nested children are displayed before other files.'
|
|
233
233
|
))
|
|
234
234
|
],
|
|
235
235
|
'markdownDescription': ( localizeWithPath(
|
|
236
236
|
_moduleId,
|
|
237
|
-
|
|
237
|
+
80,
|
|
238
238
|
"Controls the property-based sorting of files and folders in the Explorer. When `#explorer.fileNesting.enabled#` is enabled, also controls sorting of nested files."
|
|
239
239
|
))
|
|
240
240
|
},
|
|
@@ -243,33 +243,33 @@ configurationRegistry.registerConfiguration({
|
|
|
243
243
|
'enum': ["default" , "upper" , "lower" , "unicode" ],
|
|
244
244
|
'default': "default" ,
|
|
245
245
|
'enumDescriptions': [
|
|
246
|
-
( localizeWithPath(_moduleId,
|
|
246
|
+
( localizeWithPath(_moduleId, 81, 'Uppercase and lowercase names are mixed together.')),
|
|
247
247
|
( localizeWithPath(
|
|
248
248
|
_moduleId,
|
|
249
|
-
|
|
249
|
+
82,
|
|
250
250
|
'Uppercase names are grouped together before lowercase names.'
|
|
251
251
|
)),
|
|
252
252
|
( localizeWithPath(
|
|
253
253
|
_moduleId,
|
|
254
|
-
|
|
254
|
+
83,
|
|
255
255
|
'Lowercase names are grouped together before uppercase names.'
|
|
256
256
|
)),
|
|
257
|
-
( localizeWithPath(_moduleId,
|
|
257
|
+
( localizeWithPath(_moduleId, 84, 'Names are sorted in Unicode order.'))
|
|
258
258
|
],
|
|
259
259
|
'description': ( localizeWithPath(
|
|
260
260
|
_moduleId,
|
|
261
|
-
|
|
261
|
+
85,
|
|
262
262
|
"Controls the lexicographic sorting of file and folder names in the Explorer."
|
|
263
263
|
))
|
|
264
264
|
},
|
|
265
265
|
'explorer.decorations.colors': {
|
|
266
266
|
type: 'boolean',
|
|
267
|
-
description: ( localizeWithPath(_moduleId,
|
|
267
|
+
description: ( localizeWithPath(_moduleId, 86, "Controls whether file decorations should use colors.")),
|
|
268
268
|
default: true
|
|
269
269
|
},
|
|
270
270
|
'explorer.decorations.badges': {
|
|
271
271
|
type: 'boolean',
|
|
272
|
-
description: ( localizeWithPath(_moduleId,
|
|
272
|
+
description: ( localizeWithPath(_moduleId, 87, "Controls whether file decorations should use badges.")),
|
|
273
273
|
default: true
|
|
274
274
|
},
|
|
275
275
|
'explorer.incrementalNaming': {
|
|
@@ -278,23 +278,23 @@ configurationRegistry.registerConfiguration({
|
|
|
278
278
|
enumDescriptions: [
|
|
279
279
|
( localizeWithPath(
|
|
280
280
|
_moduleId,
|
|
281
|
-
|
|
281
|
+
88,
|
|
282
282
|
"Appends the word \"copy\" at the end of the duplicated name potentially followed by a number."
|
|
283
283
|
)),
|
|
284
284
|
( localizeWithPath(
|
|
285
285
|
_moduleId,
|
|
286
|
-
|
|
286
|
+
89,
|
|
287
287
|
"Adds a number at the end of the duplicated name. If some number is already part of the name, tries to increase that number."
|
|
288
288
|
)),
|
|
289
289
|
( localizeWithPath(
|
|
290
290
|
_moduleId,
|
|
291
|
-
|
|
291
|
+
90,
|
|
292
292
|
"Disables incremental naming. If two files with the same name exist you will be prompted to overwrite the existing file."
|
|
293
293
|
))
|
|
294
294
|
],
|
|
295
295
|
description: ( localizeWithPath(
|
|
296
296
|
_moduleId,
|
|
297
|
-
|
|
297
|
+
91,
|
|
298
298
|
"Controls which naming strategy to use when giving a new name to a duplicated Explorer item on paste."
|
|
299
299
|
)),
|
|
300
300
|
default: 'simple'
|
|
@@ -303,7 +303,7 @@ configurationRegistry.registerConfiguration({
|
|
|
303
303
|
'type': 'boolean',
|
|
304
304
|
'description': ( localizeWithPath(
|
|
305
305
|
_moduleId,
|
|
306
|
-
|
|
306
|
+
92,
|
|
307
307
|
"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."
|
|
308
308
|
)),
|
|
309
309
|
'default': true
|
|
@@ -316,13 +316,13 @@ configurationRegistry.registerConfiguration({
|
|
|
316
316
|
'auto'
|
|
317
317
|
],
|
|
318
318
|
'enumDescriptions': [
|
|
319
|
-
( localizeWithPath(_moduleId,
|
|
320
|
-
( localizeWithPath(_moduleId,
|
|
321
|
-
( localizeWithPath(_moduleId,
|
|
319
|
+
( localizeWithPath(_moduleId, 93, "Use slash as path separation character.")),
|
|
320
|
+
( localizeWithPath(_moduleId, 94, "Use backslash as path separation character.")),
|
|
321
|
+
( localizeWithPath(_moduleId, 95, "Uses operating system specific path separation character.")),
|
|
322
322
|
],
|
|
323
323
|
'description': ( localizeWithPath(
|
|
324
324
|
_moduleId,
|
|
325
|
-
|
|
325
|
+
96,
|
|
326
326
|
"The path separation character used when copying relative file paths."
|
|
327
327
|
)),
|
|
328
328
|
'default': 'auto'
|
|
@@ -331,7 +331,7 @@ configurationRegistry.registerConfiguration({
|
|
|
331
331
|
type: 'boolean',
|
|
332
332
|
markdownDescription: ( localizeWithPath(
|
|
333
333
|
_moduleId,
|
|
334
|
-
|
|
334
|
+
97,
|
|
335
335
|
"Controls whether entries in .gitignore should be parsed and excluded from the Explorer. Similar to {0}.",
|
|
336
336
|
'`#files.exclude#`'
|
|
337
337
|
)),
|
|
@@ -343,7 +343,7 @@ configurationRegistry.registerConfiguration({
|
|
|
343
343
|
scope: 4 ,
|
|
344
344
|
'markdownDescription': ( localizeWithPath(
|
|
345
345
|
_moduleId,
|
|
346
|
-
|
|
346
|
+
98,
|
|
347
347
|
"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."
|
|
348
348
|
)),
|
|
349
349
|
'default': false,
|
|
@@ -352,7 +352,7 @@ configurationRegistry.registerConfiguration({
|
|
|
352
352
|
'type': 'boolean',
|
|
353
353
|
'markdownDescription': ( localizeWithPath(
|
|
354
354
|
_moduleId,
|
|
355
|
-
|
|
355
|
+
99,
|
|
356
356
|
"Controls whether file nests are automatically expanded. {0} must be set for this to take effect.",
|
|
357
357
|
'`#explorer.fileNesting.enabled#`'
|
|
358
358
|
)),
|
|
@@ -363,7 +363,7 @@ configurationRegistry.registerConfiguration({
|
|
|
363
363
|
scope: 4 ,
|
|
364
364
|
'markdownDescription': ( localizeWithPath(
|
|
365
365
|
_moduleId,
|
|
366
|
-
|
|
366
|
+
100,
|
|
367
367
|
"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",
|
|
368
368
|
'`#explorer.fileNesting.enabled#`'
|
|
369
369
|
)),
|
|
@@ -371,7 +371,7 @@ configurationRegistry.registerConfiguration({
|
|
|
371
371
|
'^[^*]*\\*?[^*]*$': {
|
|
372
372
|
markdownDescription: ( localizeWithPath(
|
|
373
373
|
_moduleId,
|
|
374
|
-
|
|
374
|
+
101,
|
|
375
375
|
"Each key pattern may contain a single `*` character which will match any string."
|
|
376
376
|
)),
|
|
377
377
|
type: 'string',
|