@codingame/monaco-vscode-explorer-service-override 9.0.3 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/explorerService.js +12 -15
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +147 -81
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +42 -43
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._explorer.js +66 -68
|
@@ -12,8 +12,8 @@ import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/comma
|
|
|
12
12
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
13
13
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
14
14
|
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
15
|
-
import { KeybindingsRegistry
|
|
16
|
-
import {
|
|
15
|
+
import { KeybindingsRegistry } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
16
|
+
import { KeyChord } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
17
17
|
import { isWindows, isWeb } from 'vscode/vscode/vs/base/common/platform';
|
|
18
18
|
import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
|
|
19
19
|
import { getMultiSelectedResources, getResourceForCommand } from 'vscode/vscode/vs/workbench/contrib/files/browser/files';
|
|
@@ -32,7 +32,6 @@ import { IUriIdentityService } from 'vscode/vscode/vs/platform/uriIdentity/commo
|
|
|
32
32
|
import { EditorResolution, EditorOpenSource } from 'vscode/vscode/vs/platform/editor/common/editor';
|
|
33
33
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
34
34
|
import { IPaneCompositePartService } from 'vscode/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service';
|
|
35
|
-
import { ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
|
|
36
35
|
import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
37
36
|
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, 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';
|
|
38
37
|
import { IFileDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
@@ -61,11 +60,11 @@ const newWindowCommand = (accessor, options) => {
|
|
|
61
60
|
hostService.openWindow(options);
|
|
62
61
|
};
|
|
63
62
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
64
|
-
weight:
|
|
63
|
+
weight: 200 ,
|
|
65
64
|
when: ExplorerFocusCondition,
|
|
66
|
-
primary:
|
|
65
|
+
primary: 2048 | 3 ,
|
|
67
66
|
mac: {
|
|
68
|
-
primary:
|
|
67
|
+
primary: 256 | 3
|
|
69
68
|
},
|
|
70
69
|
id: OPEN_TO_SIDE_COMMAND_ID, handler: async (accessor, resource) => {
|
|
71
70
|
const editorService = accessor.get(IEditorService);
|
|
@@ -94,14 +93,14 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
94
93
|
}
|
|
95
94
|
});
|
|
96
95
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
97
|
-
weight:
|
|
96
|
+
weight: 200 + 10,
|
|
98
97
|
when: ( (ContextKeyExpr.and(
|
|
99
98
|
FilesExplorerFocusCondition,
|
|
100
99
|
(ExplorerFolderContext.toNegated())
|
|
101
100
|
))),
|
|
102
|
-
primary:
|
|
101
|
+
primary: 3 ,
|
|
103
102
|
mac: {
|
|
104
|
-
primary:
|
|
103
|
+
primary: 2048 | 18
|
|
105
104
|
},
|
|
106
105
|
id: 'explorer.openAndPassFocus', handler: async (accessor, _resource) => {
|
|
107
106
|
const editorService = accessor.get(IEditorService);
|
|
@@ -119,8 +118,8 @@ let providerDisposables = [];
|
|
|
119
118
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
120
119
|
id: COMPARE_WITH_SAVED_COMMAND_ID,
|
|
121
120
|
when: undefined,
|
|
122
|
-
weight:
|
|
123
|
-
primary: KeyChord(
|
|
121
|
+
weight: 200 ,
|
|
122
|
+
primary: KeyChord(2048 | 41 , 34 ),
|
|
124
123
|
handler: async (accessor, resource) => {
|
|
125
124
|
const instantiationService = accessor.get(IInstantiationService);
|
|
126
125
|
const textModelService = accessor.get(ITextModelService);
|
|
@@ -137,7 +136,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
137
136
|
const uri = getResourceForCommand(resource, editorService, listService);
|
|
138
137
|
if (uri && fileService.hasProvider(uri)) {
|
|
139
138
|
const name = basename(uri);
|
|
140
|
-
const editorLabel = ( localize(
|
|
139
|
+
const editorLabel = ( localize(2169, "{0} (in file) ↔ {1}", name, name));
|
|
141
140
|
try {
|
|
142
141
|
await TextFileContentProvider.open(uri, COMPARE_WITH_SAVED_SCHEMA, editorLabel, editorService, { pinned: true });
|
|
143
142
|
if (registerEditorListener) {
|
|
@@ -218,21 +217,21 @@ const copyPathCommandHandler = async (accessor, resource) => {
|
|
|
218
217
|
await resourcesToClipboard(resources, false, accessor.get(IClipboardService), accessor.get(ILabelService), accessor.get(IConfigurationService));
|
|
219
218
|
};
|
|
220
219
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
221
|
-
weight:
|
|
220
|
+
weight: 200 ,
|
|
222
221
|
when: ( (EditorContextKeys.focus.toNegated())),
|
|
223
|
-
primary:
|
|
222
|
+
primary: 2048 | 512 | 33 ,
|
|
224
223
|
win: {
|
|
225
|
-
primary:
|
|
224
|
+
primary: 1024 | 512 | 33
|
|
226
225
|
},
|
|
227
226
|
id: COPY_PATH_COMMAND_ID,
|
|
228
227
|
handler: copyPathCommandHandler
|
|
229
228
|
});
|
|
230
229
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
231
|
-
weight:
|
|
230
|
+
weight: 200 ,
|
|
232
231
|
when: EditorContextKeys.focus,
|
|
233
|
-
primary: KeyChord(
|
|
232
|
+
primary: KeyChord(2048 | 41 , 2048 | 512 | 33 ),
|
|
234
233
|
win: {
|
|
235
|
-
primary:
|
|
234
|
+
primary: 1024 | 512 | 33
|
|
236
235
|
},
|
|
237
236
|
id: COPY_PATH_COMMAND_ID,
|
|
238
237
|
handler: copyPathCommandHandler
|
|
@@ -242,29 +241,29 @@ const copyRelativePathCommandHandler = async (accessor, resource) => {
|
|
|
242
241
|
await resourcesToClipboard(resources, true, accessor.get(IClipboardService), accessor.get(ILabelService), accessor.get(IConfigurationService));
|
|
243
242
|
};
|
|
244
243
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
245
|
-
weight:
|
|
244
|
+
weight: 200 ,
|
|
246
245
|
when: ( (EditorContextKeys.focus.toNegated())),
|
|
247
|
-
primary:
|
|
246
|
+
primary: 2048 | 1024 | 512 | 33 ,
|
|
248
247
|
win: {
|
|
249
|
-
primary: KeyChord(
|
|
248
|
+
primary: KeyChord(2048 | 41 , 2048 | 1024 | 33 )
|
|
250
249
|
},
|
|
251
250
|
id: COPY_RELATIVE_PATH_COMMAND_ID,
|
|
252
251
|
handler: copyRelativePathCommandHandler
|
|
253
252
|
});
|
|
254
253
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
255
|
-
weight:
|
|
254
|
+
weight: 200 ,
|
|
256
255
|
when: EditorContextKeys.focus,
|
|
257
|
-
primary: KeyChord(
|
|
256
|
+
primary: KeyChord(2048 | 41 , 2048 | 1024 | 512 | 33 ),
|
|
258
257
|
win: {
|
|
259
|
-
primary: KeyChord(
|
|
258
|
+
primary: KeyChord(2048 | 41 , 2048 | 1024 | 33 )
|
|
260
259
|
},
|
|
261
260
|
id: COPY_RELATIVE_PATH_COMMAND_ID,
|
|
262
261
|
handler: copyRelativePathCommandHandler
|
|
263
262
|
});
|
|
264
263
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
265
|
-
weight:
|
|
264
|
+
weight: 200 ,
|
|
266
265
|
when: undefined,
|
|
267
|
-
primary: KeyChord(
|
|
266
|
+
primary: KeyChord(2048 | 41 , 46 ),
|
|
268
267
|
id: 'workbench.action.files.copyPathOfActiveFile',
|
|
269
268
|
handler: async (accessor) => {
|
|
270
269
|
const editorService = accessor.get(IEditorService);
|
|
@@ -295,7 +294,7 @@ CommandsRegistry.registerCommand({
|
|
|
295
294
|
}
|
|
296
295
|
}
|
|
297
296
|
else {
|
|
298
|
-
const openEditorsView =
|
|
297
|
+
const openEditorsView = viewService.getViewWithId(OpenEditorsView.ID);
|
|
299
298
|
if (openEditorsView) {
|
|
300
299
|
openEditorsView.setExpanded(true);
|
|
301
300
|
openEditorsView.focus();
|
|
@@ -332,17 +331,17 @@ CommandsRegistry.registerCommand({
|
|
|
332
331
|
}
|
|
333
332
|
});
|
|
334
333
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
335
|
-
weight:
|
|
334
|
+
weight: 200 + 10,
|
|
336
335
|
when: ( (ContextKeyExpr.and(
|
|
337
336
|
FilesExplorerFocusCondition,
|
|
338
337
|
ExplorerCompressedFocusContext,
|
|
339
338
|
(ExplorerCompressedFirstFocusContext.negate())
|
|
340
339
|
))),
|
|
341
|
-
primary:
|
|
340
|
+
primary: 15 ,
|
|
342
341
|
id: PREVIOUS_COMPRESSED_FOLDER,
|
|
343
342
|
handler: accessor => {
|
|
344
343
|
const paneCompositeService = accessor.get(IPaneCompositePartService);
|
|
345
|
-
const viewlet = paneCompositeService.getActivePaneComposite(
|
|
344
|
+
const viewlet = paneCompositeService.getActivePaneComposite(0 );
|
|
346
345
|
if (viewlet?.getId() !== VIEWLET_ID) {
|
|
347
346
|
return;
|
|
348
347
|
}
|
|
@@ -352,17 +351,17 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
352
351
|
}
|
|
353
352
|
});
|
|
354
353
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
355
|
-
weight:
|
|
354
|
+
weight: 200 + 10,
|
|
356
355
|
when: ( (ContextKeyExpr.and(
|
|
357
356
|
FilesExplorerFocusCondition,
|
|
358
357
|
ExplorerCompressedFocusContext,
|
|
359
358
|
(ExplorerCompressedLastFocusContext.negate())
|
|
360
359
|
))),
|
|
361
|
-
primary:
|
|
360
|
+
primary: 17 ,
|
|
362
361
|
id: NEXT_COMPRESSED_FOLDER,
|
|
363
362
|
handler: accessor => {
|
|
364
363
|
const paneCompositeService = accessor.get(IPaneCompositePartService);
|
|
365
|
-
const viewlet = paneCompositeService.getActivePaneComposite(
|
|
364
|
+
const viewlet = paneCompositeService.getActivePaneComposite(0 );
|
|
366
365
|
if (viewlet?.getId() !== VIEWLET_ID) {
|
|
367
366
|
return;
|
|
368
367
|
}
|
|
@@ -372,17 +371,17 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
372
371
|
}
|
|
373
372
|
});
|
|
374
373
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
375
|
-
weight:
|
|
374
|
+
weight: 200 + 10,
|
|
376
375
|
when: ( (ContextKeyExpr.and(
|
|
377
376
|
FilesExplorerFocusCondition,
|
|
378
377
|
ExplorerCompressedFocusContext,
|
|
379
378
|
(ExplorerCompressedFirstFocusContext.negate())
|
|
380
379
|
))),
|
|
381
|
-
primary:
|
|
380
|
+
primary: 14 ,
|
|
382
381
|
id: FIRST_COMPRESSED_FOLDER,
|
|
383
382
|
handler: accessor => {
|
|
384
383
|
const paneCompositeService = accessor.get(IPaneCompositePartService);
|
|
385
|
-
const viewlet = paneCompositeService.getActivePaneComposite(
|
|
384
|
+
const viewlet = paneCompositeService.getActivePaneComposite(0 );
|
|
386
385
|
if (viewlet?.getId() !== VIEWLET_ID) {
|
|
387
386
|
return;
|
|
388
387
|
}
|
|
@@ -392,17 +391,17 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
392
391
|
}
|
|
393
392
|
});
|
|
394
393
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
395
|
-
weight:
|
|
394
|
+
weight: 200 + 10,
|
|
396
395
|
when: ( (ContextKeyExpr.and(
|
|
397
396
|
FilesExplorerFocusCondition,
|
|
398
397
|
ExplorerCompressedFocusContext,
|
|
399
398
|
(ExplorerCompressedLastFocusContext.negate())
|
|
400
399
|
))),
|
|
401
|
-
primary:
|
|
400
|
+
primary: 13 ,
|
|
402
401
|
id: LAST_COMPRESSED_FOLDER,
|
|
403
402
|
handler: accessor => {
|
|
404
403
|
const paneCompositeService = accessor.get(IPaneCompositePartService);
|
|
405
|
-
const viewlet = paneCompositeService.getActivePaneComposite(
|
|
404
|
+
const viewlet = paneCompositeService.getActivePaneComposite(0 );
|
|
406
405
|
if (viewlet?.getId() !== VIEWLET_ID) {
|
|
407
406
|
return;
|
|
408
407
|
}
|
|
@@ -412,10 +411,10 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
412
411
|
}
|
|
413
412
|
});
|
|
414
413
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
415
|
-
weight:
|
|
414
|
+
weight: 200 ,
|
|
416
415
|
when: null,
|
|
417
|
-
primary: isWeb ? (isWindows ? KeyChord(
|
|
418
|
-
secondary: isWeb ? [
|
|
416
|
+
primary: isWeb ? ((isWindows ? KeyChord(2048 | 41 , 44 ) : 2048 | 512 | 44) ) : 2048 | 44 ,
|
|
417
|
+
secondary: isWeb ? [2048 | 44 ] : undefined,
|
|
419
418
|
id: NEW_UNTITLED_FILE_COMMAND_ID,
|
|
420
419
|
metadata: {
|
|
421
420
|
description: NEW_UNTITLED_FILE_LABEL,
|
|
@@ -456,7 +455,7 @@ CommandsRegistry.registerCommand({
|
|
|
456
455
|
const editorService = accessor.get(IEditorService);
|
|
457
456
|
const dialogService = accessor.get(IFileDialogService);
|
|
458
457
|
const fileService = accessor.get(IFileService);
|
|
459
|
-
const createFileLocalized = ( localize(
|
|
458
|
+
const createFileLocalized = ( localize(2170, "Create File"));
|
|
460
459
|
const defaultFileUri = joinPath(await dialogService.defaultFilePath(), args?.fileName ?? 'Untitled.txt');
|
|
461
460
|
const saveUri = await dialogService.showSaveDialog({ saveLabel: createFileLocalized, title: createFileLocalized, defaultUri: defaultFileUri });
|
|
462
461
|
if (!saveUri) {
|
|
@@ -1,31 +1,29 @@
|
|
|
1
1
|
import { UndoCommand, RedoCommand } from 'vscode/vscode/vs/editor/browser/editorExtensions';
|
|
2
2
|
import { localize } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
4
|
-
import { Extensions
|
|
5
|
-
import 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
4
|
+
import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
6
5
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
7
6
|
import { IUndoRedoService } from 'vscode/vscode/vs/platform/undoRedo/common/undoRedo.service';
|
|
8
|
-
import { registerWorkbenchContribution2
|
|
7
|
+
import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
9
8
|
import { UNDO_REDO_SOURCE } from './explorerService.js';
|
|
10
9
|
import { ExplorerViewletViewsContribution } from 'vscode/vscode/vs/workbench/contrib/files/browser/explorerViewlet';
|
|
11
10
|
import { IExplorerService } from 'vscode/vscode/vs/workbench/contrib/files/browser/files.service';
|
|
12
|
-
import { UndoConfirmLevel, SortOrder, LexicographicOptions } from 'vscode/vscode/vs/workbench/contrib/files/common/files';
|
|
13
11
|
import 'vscode/vscode/vs/workbench/contrib/files/browser/files.contribution._configuration';
|
|
14
12
|
import 'vscode/vscode/vs/workbench/contrib/files/browser/files.contribution._editorPane';
|
|
15
13
|
import 'vscode/vscode/vs/workbench/contrib/files/browser/files.contribution._fileEditorFactory';
|
|
16
14
|
|
|
17
|
-
registerWorkbenchContribution2(ExplorerViewletViewsContribution.ID, ExplorerViewletViewsContribution,
|
|
15
|
+
registerWorkbenchContribution2(ExplorerViewletViewsContribution.ID, ExplorerViewletViewsContribution, 1 );
|
|
18
16
|
const configurationRegistry = ( (Registry.as(Extensions.Configuration)));
|
|
19
17
|
configurationRegistry.registerConfiguration({
|
|
20
18
|
'id': 'explorer',
|
|
21
19
|
'order': 10,
|
|
22
|
-
'title': ( localize(
|
|
20
|
+
'title': ( localize(2208, "File Explorer")),
|
|
23
21
|
'type': 'object',
|
|
24
22
|
'properties': {
|
|
25
23
|
'explorer.openEditors.visible': {
|
|
26
24
|
'type': 'number',
|
|
27
25
|
'description': ( localize(
|
|
28
|
-
|
|
26
|
+
2209,
|
|
29
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."
|
|
30
28
|
)),
|
|
31
29
|
'default': 9,
|
|
@@ -34,7 +32,7 @@ configurationRegistry.registerConfiguration({
|
|
|
34
32
|
'explorer.openEditors.minVisible': {
|
|
35
33
|
'type': 'number',
|
|
36
34
|
'description': ( localize(
|
|
37
|
-
|
|
35
|
+
2210,
|
|
38
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."
|
|
39
37
|
)),
|
|
40
38
|
'default': 0,
|
|
@@ -43,15 +41,15 @@ configurationRegistry.registerConfiguration({
|
|
|
43
41
|
'explorer.openEditors.sortOrder': {
|
|
44
42
|
'type': 'string',
|
|
45
43
|
'enum': ['editorOrder', 'alphabetical', 'fullPath'],
|
|
46
|
-
'description': ( localize(
|
|
44
|
+
'description': ( localize(2211, "Controls the sorting order of editors in the Open Editors pane.")),
|
|
47
45
|
'enumDescriptions': [
|
|
48
|
-
( localize(
|
|
46
|
+
( localize(2212, 'Editors are ordered in the same order editor tabs are shown.')),
|
|
49
47
|
( localize(
|
|
50
|
-
|
|
48
|
+
2213,
|
|
51
49
|
'Editors are ordered alphabetically by tab name inside each editor group.'
|
|
52
50
|
)),
|
|
53
51
|
( localize(
|
|
54
|
-
|
|
52
|
+
2214,
|
|
55
53
|
'Editors are ordered alphabetically by full path inside each editor group.'
|
|
56
54
|
))
|
|
57
55
|
],
|
|
@@ -62,19 +60,19 @@ configurationRegistry.registerConfiguration({
|
|
|
62
60
|
'enum': [true, false, 'focusNoScroll'],
|
|
63
61
|
'default': true,
|
|
64
62
|
'enumDescriptions': [
|
|
65
|
-
( localize(
|
|
66
|
-
( localize(
|
|
67
|
-
( localize(
|
|
63
|
+
( localize(2215, 'Files will be revealed and selected.')),
|
|
64
|
+
( localize(2216, 'Files will not be revealed and selected.')),
|
|
65
|
+
( localize(2217, 'Files will not be scrolled into view, but will still be focused.')),
|
|
68
66
|
],
|
|
69
67
|
'description': ( localize(
|
|
70
|
-
|
|
68
|
+
2218,
|
|
71
69
|
"Controls whether the Explorer should automatically reveal and select files when opening them."
|
|
72
70
|
))
|
|
73
71
|
},
|
|
74
72
|
'explorer.autoRevealExclude': {
|
|
75
73
|
'type': 'object',
|
|
76
74
|
'markdownDescription': ( localize(
|
|
77
|
-
|
|
75
|
+
2219,
|
|
78
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."
|
|
79
77
|
)),
|
|
80
78
|
'default': { '**/node_modules': true, '**/bower_components': true },
|
|
@@ -83,7 +81,7 @@ configurationRegistry.registerConfiguration({
|
|
|
83
81
|
{
|
|
84
82
|
'type': 'boolean',
|
|
85
83
|
'description': ( localize(
|
|
86
|
-
|
|
84
|
+
2220,
|
|
87
85
|
"The glob pattern to match file paths against. Set to true or false to enable or disable the pattern."
|
|
88
86
|
)),
|
|
89
87
|
},
|
|
@@ -95,7 +93,7 @@ configurationRegistry.registerConfiguration({
|
|
|
95
93
|
pattern: '\\w*\\$\\(basename\\)\\w*',
|
|
96
94
|
default: '$(basename).ext',
|
|
97
95
|
description: ( localize(
|
|
98
|
-
|
|
96
|
+
2221,
|
|
99
97
|
'Additional check on the siblings of a matching file. Use $(basename) as variable for the matching file name.'
|
|
100
98
|
))
|
|
101
99
|
}
|
|
@@ -107,7 +105,7 @@ configurationRegistry.registerConfiguration({
|
|
|
107
105
|
'explorer.enableDragAndDrop': {
|
|
108
106
|
'type': 'boolean',
|
|
109
107
|
'description': ( localize(
|
|
110
|
-
|
|
108
|
+
2222,
|
|
111
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."
|
|
112
110
|
)),
|
|
113
111
|
'default': true
|
|
@@ -115,7 +113,7 @@ configurationRegistry.registerConfiguration({
|
|
|
115
113
|
'explorer.confirmDragAndDrop': {
|
|
116
114
|
'type': 'boolean',
|
|
117
115
|
'description': ( localize(
|
|
118
|
-
|
|
116
|
+
2223,
|
|
119
117
|
"Controls whether the Explorer should ask for confirmation to move files and folders via drag and drop."
|
|
120
118
|
)),
|
|
121
119
|
'default': true
|
|
@@ -123,7 +121,7 @@ configurationRegistry.registerConfiguration({
|
|
|
123
121
|
'explorer.confirmPasteNative': {
|
|
124
122
|
'type': 'boolean',
|
|
125
123
|
'description': ( localize(
|
|
126
|
-
|
|
124
|
+
2224,
|
|
127
125
|
"Controls whether the Explorer should ask for confirmation when pasting native files and folders."
|
|
128
126
|
)),
|
|
129
127
|
'default': true
|
|
@@ -131,7 +129,7 @@ configurationRegistry.registerConfiguration({
|
|
|
131
129
|
'explorer.confirmDelete': {
|
|
132
130
|
'type': 'boolean',
|
|
133
131
|
'description': ( localize(
|
|
134
|
-
|
|
132
|
+
2225,
|
|
135
133
|
"Controls whether the Explorer should ask for confirmation when deleting a file via the trash."
|
|
136
134
|
)),
|
|
137
135
|
'default': true
|
|
@@ -139,99 +137,99 @@ configurationRegistry.registerConfiguration({
|
|
|
139
137
|
'explorer.enableUndo': {
|
|
140
138
|
'type': 'boolean',
|
|
141
139
|
'description': ( localize(
|
|
142
|
-
|
|
140
|
+
2226,
|
|
143
141
|
"Controls whether the Explorer should support undoing file and folder operations."
|
|
144
142
|
)),
|
|
145
143
|
'default': true
|
|
146
144
|
},
|
|
147
145
|
'explorer.confirmUndo': {
|
|
148
146
|
'type': 'string',
|
|
149
|
-
'enum': [
|
|
147
|
+
'enum': ["verbose" , "default" , "light" ],
|
|
150
148
|
'description': ( localize(
|
|
151
|
-
|
|
149
|
+
2227,
|
|
152
150
|
"Controls whether the Explorer should ask for confirmation when undoing."
|
|
153
151
|
)),
|
|
154
|
-
'default':
|
|
152
|
+
'default': "default" ,
|
|
155
153
|
'enumDescriptions': [
|
|
156
|
-
( localize(
|
|
157
|
-
( localize(
|
|
158
|
-
( localize(
|
|
154
|
+
( localize(2228, 'Explorer will prompt before all undo operations.')),
|
|
155
|
+
( localize(2229, 'Explorer will prompt before destructive undo operations.')),
|
|
156
|
+
( localize(2230, 'Explorer will not prompt before undo operations when focused.')),
|
|
159
157
|
],
|
|
160
158
|
},
|
|
161
159
|
'explorer.expandSingleFolderWorkspaces': {
|
|
162
160
|
'type': 'boolean',
|
|
163
161
|
'description': ( localize(
|
|
164
|
-
|
|
162
|
+
2231,
|
|
165
163
|
"Controls whether the Explorer should expand multi-root workspaces containing only one folder during initialization"
|
|
166
164
|
)),
|
|
167
165
|
'default': true
|
|
168
166
|
},
|
|
169
167
|
'explorer.sortOrder': {
|
|
170
168
|
'type': 'string',
|
|
171
|
-
'enum': [
|
|
172
|
-
'default':
|
|
169
|
+
'enum': ["default" , "mixed" , "filesFirst" , "type" , "modified" , "foldersNestsFiles" ],
|
|
170
|
+
'default': "default" ,
|
|
173
171
|
'enumDescriptions': [
|
|
174
172
|
( localize(
|
|
175
|
-
|
|
173
|
+
2232,
|
|
176
174
|
'Files and folders are sorted by their names. Folders are displayed before files.'
|
|
177
175
|
)),
|
|
178
176
|
( localize(
|
|
179
|
-
|
|
177
|
+
2233,
|
|
180
178
|
'Files and folders are sorted by their names. Files are interwoven with folders.'
|
|
181
179
|
)),
|
|
182
180
|
( localize(
|
|
183
|
-
|
|
181
|
+
2234,
|
|
184
182
|
'Files and folders are sorted by their names. Files are displayed before folders.'
|
|
185
183
|
)),
|
|
186
184
|
( localize(
|
|
187
|
-
|
|
185
|
+
2235,
|
|
188
186
|
'Files and folders are grouped by extension type then sorted by their names. Folders are displayed before files.'
|
|
189
187
|
)),
|
|
190
188
|
( localize(
|
|
191
|
-
|
|
189
|
+
2236,
|
|
192
190
|
'Files and folders are sorted by last modified date in descending order. Folders are displayed before files.'
|
|
193
191
|
)),
|
|
194
192
|
( localize(
|
|
195
|
-
|
|
193
|
+
2237,
|
|
196
194
|
'Files and folders are sorted by their names. Folders are displayed before files. Files with nested children are displayed before other files.'
|
|
197
195
|
))
|
|
198
196
|
],
|
|
199
197
|
'markdownDescription': ( localize(
|
|
200
|
-
|
|
198
|
+
2238,
|
|
201
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."
|
|
202
200
|
))
|
|
203
201
|
},
|
|
204
202
|
'explorer.sortOrderLexicographicOptions': {
|
|
205
203
|
'type': 'string',
|
|
206
|
-
'enum': [
|
|
207
|
-
'default':
|
|
204
|
+
'enum': ["default" , "upper" , "lower" , "unicode" ],
|
|
205
|
+
'default': "default" ,
|
|
208
206
|
'enumDescriptions': [
|
|
209
|
-
( localize(
|
|
210
|
-
( localize(
|
|
211
|
-
( localize(
|
|
212
|
-
( localize(
|
|
207
|
+
( localize(2239, 'Uppercase and lowercase names are mixed together.')),
|
|
208
|
+
( localize(2240, 'Uppercase names are grouped together before lowercase names.')),
|
|
209
|
+
( localize(2241, 'Lowercase names are grouped together before uppercase names.')),
|
|
210
|
+
( localize(2242, 'Names are sorted in Unicode order.'))
|
|
213
211
|
],
|
|
214
212
|
'description': ( localize(
|
|
215
|
-
|
|
213
|
+
2243,
|
|
216
214
|
"Controls the lexicographic sorting of file and folder names in the Explorer."
|
|
217
215
|
))
|
|
218
216
|
},
|
|
219
217
|
'explorer.sortOrderReverse': {
|
|
220
218
|
'type': 'boolean',
|
|
221
219
|
'description': ( localize(
|
|
222
|
-
|
|
220
|
+
2244,
|
|
223
221
|
"Controls whether the file and folder sort order, should be reversed."
|
|
224
222
|
)),
|
|
225
223
|
'default': false,
|
|
226
224
|
},
|
|
227
225
|
'explorer.decorations.colors': {
|
|
228
226
|
type: 'boolean',
|
|
229
|
-
description: ( localize(
|
|
227
|
+
description: ( localize(2245, "Controls whether file decorations should use colors.")),
|
|
230
228
|
default: true
|
|
231
229
|
},
|
|
232
230
|
'explorer.decorations.badges': {
|
|
233
231
|
type: 'boolean',
|
|
234
|
-
description: ( localize(
|
|
232
|
+
description: ( localize(2246, "Controls whether file decorations should use badges.")),
|
|
235
233
|
default: true
|
|
236
234
|
},
|
|
237
235
|
'explorer.incrementalNaming': {
|
|
@@ -239,20 +237,20 @@ configurationRegistry.registerConfiguration({
|
|
|
239
237
|
enum: ['simple', 'smart', 'disabled'],
|
|
240
238
|
enumDescriptions: [
|
|
241
239
|
( localize(
|
|
242
|
-
|
|
240
|
+
2247,
|
|
243
241
|
"Appends the word \"copy\" at the end of the duplicated name potentially followed by a number."
|
|
244
242
|
)),
|
|
245
243
|
( localize(
|
|
246
|
-
|
|
244
|
+
2248,
|
|
247
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."
|
|
248
246
|
)),
|
|
249
247
|
( localize(
|
|
250
|
-
|
|
248
|
+
2249,
|
|
251
249
|
"Disables incremental naming. If two files with the same name exist you will be prompted to overwrite the existing file."
|
|
252
250
|
))
|
|
253
251
|
],
|
|
254
252
|
description: ( localize(
|
|
255
|
-
|
|
253
|
+
2250,
|
|
256
254
|
"Controls which naming strategy to use when giving a new name to a duplicated Explorer item on paste."
|
|
257
255
|
)),
|
|
258
256
|
default: 'simple'
|
|
@@ -260,7 +258,7 @@ configurationRegistry.registerConfiguration({
|
|
|
260
258
|
'explorer.autoOpenDroppedFile': {
|
|
261
259
|
'type': 'boolean',
|
|
262
260
|
'description': ( localize(
|
|
263
|
-
|
|
261
|
+
2251,
|
|
264
262
|
"Controls whether the Explorer should automatically open a file when it is dropped into the explorer"
|
|
265
263
|
)),
|
|
266
264
|
'default': true
|
|
@@ -268,7 +266,7 @@ configurationRegistry.registerConfiguration({
|
|
|
268
266
|
'explorer.compactFolders': {
|
|
269
267
|
'type': 'boolean',
|
|
270
268
|
'description': ( localize(
|
|
271
|
-
|
|
269
|
+
2252,
|
|
272
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."
|
|
273
271
|
)),
|
|
274
272
|
'default': true
|
|
@@ -281,12 +279,12 @@ configurationRegistry.registerConfiguration({
|
|
|
281
279
|
'auto'
|
|
282
280
|
],
|
|
283
281
|
'enumDescriptions': [
|
|
284
|
-
( localize(
|
|
285
|
-
( localize(
|
|
286
|
-
( localize(
|
|
282
|
+
( localize(2253, "Use slash as path separation character.")),
|
|
283
|
+
( localize(2254, "Use backslash as path separation character.")),
|
|
284
|
+
( localize(2255, "Uses operating system specific path separation character.")),
|
|
287
285
|
],
|
|
288
286
|
'description': ( localize(
|
|
289
|
-
|
|
287
|
+
2256,
|
|
290
288
|
"The path separation character used when copying relative file paths."
|
|
291
289
|
)),
|
|
292
290
|
'default': 'auto'
|
|
@@ -294,18 +292,18 @@ configurationRegistry.registerConfiguration({
|
|
|
294
292
|
'explorer.excludeGitIgnore': {
|
|
295
293
|
type: 'boolean',
|
|
296
294
|
markdownDescription: ( localize(
|
|
297
|
-
|
|
295
|
+
2257,
|
|
298
296
|
"Controls whether entries in .gitignore should be parsed and excluded from the Explorer. Similar to {0}.",
|
|
299
297
|
'`#files.exclude#`'
|
|
300
298
|
)),
|
|
301
299
|
default: false,
|
|
302
|
-
scope:
|
|
300
|
+
scope: 4
|
|
303
301
|
},
|
|
304
302
|
'explorer.fileNesting.enabled': {
|
|
305
303
|
'type': 'boolean',
|
|
306
|
-
scope:
|
|
304
|
+
scope: 4 ,
|
|
307
305
|
'markdownDescription': ( localize(
|
|
308
|
-
|
|
306
|
+
2258,
|
|
309
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."
|
|
310
308
|
)),
|
|
311
309
|
'default': false,
|
|
@@ -313,7 +311,7 @@ configurationRegistry.registerConfiguration({
|
|
|
313
311
|
'explorer.fileNesting.expand': {
|
|
314
312
|
'type': 'boolean',
|
|
315
313
|
'markdownDescription': ( localize(
|
|
316
|
-
|
|
314
|
+
2259,
|
|
317
315
|
"Controls whether file nests are automatically expanded. {0} must be set for this to take effect.",
|
|
318
316
|
'`#explorer.fileNesting.enabled#`'
|
|
319
317
|
)),
|
|
@@ -321,16 +319,16 @@ configurationRegistry.registerConfiguration({
|
|
|
321
319
|
},
|
|
322
320
|
'explorer.fileNesting.patterns': {
|
|
323
321
|
'type': 'object',
|
|
324
|
-
scope:
|
|
322
|
+
scope: 4 ,
|
|
325
323
|
'markdownDescription': ( localize(
|
|
326
|
-
|
|
324
|
+
2260,
|
|
327
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",
|
|
328
326
|
'`#explorer.fileNesting.enabled#`'
|
|
329
327
|
)),
|
|
330
328
|
patternProperties: {
|
|
331
329
|
'^[^*]*\\*?[^*]*$': {
|
|
332
330
|
markdownDescription: ( localize(
|
|
333
|
-
|
|
331
|
+
2261,
|
|
334
332
|
"Each key pattern may contain a single `*` character which will match any string."
|
|
335
333
|
)),
|
|
336
334
|
type: 'string',
|