@codingame/monaco-vscode-explorer-service-override 9.0.2 → 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.
@@ -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, KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
16
- import { KeyMod, KeyCode, KeyChord } from 'vscode/vscode/vs/base/common/keyCodes';
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: KeybindingWeight.WorkbenchContrib,
63
+ weight: 200 ,
65
64
  when: ExplorerFocusCondition,
66
- primary: KeyMod.CtrlCmd | KeyCode.Enter,
65
+ primary: 2048 | 3 ,
67
66
  mac: {
68
- primary: KeyMod.WinCtrl | KeyCode.Enter
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: KeybindingWeight.WorkbenchContrib + 10,
96
+ weight: 200 + 10,
98
97
  when: ( (ContextKeyExpr.and(
99
98
  FilesExplorerFocusCondition,
100
99
  (ExplorerFolderContext.toNegated())
101
100
  ))),
102
- primary: KeyCode.Enter,
101
+ primary: 3 ,
103
102
  mac: {
104
- primary: KeyMod.CtrlCmd | KeyCode.DownArrow
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: KeybindingWeight.WorkbenchContrib,
123
- primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyCode.KeyD),
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(2151, "{0} (in file) ↔ {1}", name, name));
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: KeybindingWeight.WorkbenchContrib,
220
+ weight: 200 ,
222
221
  when: ( (EditorContextKeys.focus.toNegated())),
223
- primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.KeyC,
222
+ primary: 2048 | 512 | 33 ,
224
223
  win: {
225
- primary: KeyMod.Shift | KeyMod.Alt | KeyCode.KeyC
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: KeybindingWeight.WorkbenchContrib,
230
+ weight: 200 ,
232
231
  when: EditorContextKeys.focus,
233
- primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.KeyC),
232
+ primary: KeyChord(2048 | 41 , 2048 | 512 | 33 ),
234
233
  win: {
235
- primary: KeyMod.Shift | KeyMod.Alt | KeyCode.KeyC
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: KeybindingWeight.WorkbenchContrib,
244
+ weight: 200 ,
246
245
  when: ( (EditorContextKeys.focus.toNegated())),
247
- primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyMod.Alt | KeyCode.KeyC,
246
+ primary: 2048 | 1024 | 512 | 33 ,
248
247
  win: {
249
- primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyC)
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: KeybindingWeight.WorkbenchContrib,
254
+ weight: 200 ,
256
255
  when: EditorContextKeys.focus,
257
- primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyMod.CtrlCmd | KeyMod.Shift | KeyMod.Alt | KeyCode.KeyC),
256
+ primary: KeyChord(2048 | 41 , 2048 | 1024 | 512 | 33 ),
258
257
  win: {
259
- primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyC)
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: KeybindingWeight.WorkbenchContrib,
264
+ weight: 200 ,
266
265
  when: undefined,
267
- primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyCode.KeyP),
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 = await viewService.openView(OpenEditorsView.ID, false);
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: KeybindingWeight.WorkbenchContrib + 10,
334
+ weight: 200 + 10,
336
335
  when: ( (ContextKeyExpr.and(
337
336
  FilesExplorerFocusCondition,
338
337
  ExplorerCompressedFocusContext,
339
338
  (ExplorerCompressedFirstFocusContext.negate())
340
339
  ))),
341
- primary: KeyCode.LeftArrow,
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(ViewContainerLocation.Sidebar);
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: KeybindingWeight.WorkbenchContrib + 10,
354
+ weight: 200 + 10,
356
355
  when: ( (ContextKeyExpr.and(
357
356
  FilesExplorerFocusCondition,
358
357
  ExplorerCompressedFocusContext,
359
358
  (ExplorerCompressedLastFocusContext.negate())
360
359
  ))),
361
- primary: KeyCode.RightArrow,
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(ViewContainerLocation.Sidebar);
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: KeybindingWeight.WorkbenchContrib + 10,
374
+ weight: 200 + 10,
376
375
  when: ( (ContextKeyExpr.and(
377
376
  FilesExplorerFocusCondition,
378
377
  ExplorerCompressedFocusContext,
379
378
  (ExplorerCompressedFirstFocusContext.negate())
380
379
  ))),
381
- primary: KeyCode.Home,
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(ViewContainerLocation.Sidebar);
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: KeybindingWeight.WorkbenchContrib + 10,
394
+ weight: 200 + 10,
396
395
  when: ( (ContextKeyExpr.and(
397
396
  FilesExplorerFocusCondition,
398
397
  ExplorerCompressedFocusContext,
399
398
  (ExplorerCompressedLastFocusContext.negate())
400
399
  ))),
401
- primary: KeyCode.End,
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(ViewContainerLocation.Sidebar);
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: KeybindingWeight.WorkbenchContrib,
414
+ weight: 200 ,
416
415
  when: null,
417
- primary: isWeb ? (isWindows ? KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyCode.KeyN) : KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.KeyN) : KeyMod.CtrlCmd | KeyCode.KeyN,
418
- secondary: isWeb ? [KeyMod.CtrlCmd | KeyCode.KeyN] : undefined,
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(2152, "Create File"));
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, ConfigurationScope } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
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, WorkbenchPhase } from 'vscode/vscode/vs/workbench/common/contributions';
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, WorkbenchPhase.BlockStartup);
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(2190, "File Explorer")),
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
- 2191,
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
- 2192,
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(2193, "Controls the sorting order of editors in the Open Editors pane.")),
44
+ 'description': ( localize(2211, "Controls the sorting order of editors in the Open Editors pane.")),
47
45
  'enumDescriptions': [
48
- ( localize(2194, 'Editors are ordered in the same order editor tabs are shown.')),
46
+ ( localize(2212, 'Editors are ordered in the same order editor tabs are shown.')),
49
47
  ( localize(
50
- 2195,
48
+ 2213,
51
49
  'Editors are ordered alphabetically by tab name inside each editor group.'
52
50
  )),
53
51
  ( localize(
54
- 2196,
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(2197, 'Files will be revealed and selected.')),
66
- ( localize(2198, 'Files will not be revealed and selected.')),
67
- ( localize(2199, 'Files will not be scrolled into view, but will still be focused.')),
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
- 2200,
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
- 2201,
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
- 2202,
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
- 2203,
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
- 2204,
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
- 2205,
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
- 2206,
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
- 2207,
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
- 2208,
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': [UndoConfirmLevel.Verbose, UndoConfirmLevel.Default, UndoConfirmLevel.Light],
147
+ 'enum': ["verbose" , "default" , "light" ],
150
148
  'description': ( localize(
151
- 2209,
149
+ 2227,
152
150
  "Controls whether the Explorer should ask for confirmation when undoing."
153
151
  )),
154
- 'default': UndoConfirmLevel.Default,
152
+ 'default': "default" ,
155
153
  'enumDescriptions': [
156
- ( localize(2210, 'Explorer will prompt before all undo operations.')),
157
- ( localize(2211, 'Explorer will prompt before destructive undo operations.')),
158
- ( localize(2212, 'Explorer will not prompt before undo operations when focused.')),
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
- 2213,
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': [SortOrder.Default, SortOrder.Mixed, SortOrder.FilesFirst, SortOrder.Type, SortOrder.Modified, SortOrder.FoldersNestsFiles],
172
- 'default': SortOrder.Default,
169
+ 'enum': ["default" , "mixed" , "filesFirst" , "type" , "modified" , "foldersNestsFiles" ],
170
+ 'default': "default" ,
173
171
  'enumDescriptions': [
174
172
  ( localize(
175
- 2214,
173
+ 2232,
176
174
  'Files and folders are sorted by their names. Folders are displayed before files.'
177
175
  )),
178
176
  ( localize(
179
- 2215,
177
+ 2233,
180
178
  'Files and folders are sorted by their names. Files are interwoven with folders.'
181
179
  )),
182
180
  ( localize(
183
- 2216,
181
+ 2234,
184
182
  'Files and folders are sorted by their names. Files are displayed before folders.'
185
183
  )),
186
184
  ( localize(
187
- 2217,
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
- 2218,
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
- 2219,
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
- 2220,
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': [LexicographicOptions.Default, LexicographicOptions.Upper, LexicographicOptions.Lower, LexicographicOptions.Unicode],
207
- 'default': LexicographicOptions.Default,
204
+ 'enum': ["default" , "upper" , "lower" , "unicode" ],
205
+ 'default': "default" ,
208
206
  'enumDescriptions': [
209
- ( localize(2221, 'Uppercase and lowercase names are mixed together.')),
210
- ( localize(2222, 'Uppercase names are grouped together before lowercase names.')),
211
- ( localize(2223, 'Lowercase names are grouped together before uppercase names.')),
212
- ( localize(2224, 'Names are sorted in Unicode order.'))
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
- 2225,
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
- 2226,
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(2227, "Controls whether file decorations should use colors.")),
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(2228, "Controls whether file decorations should use badges.")),
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
- 2229,
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
- 2230,
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
- 2231,
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
- 2232,
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
- 2233,
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
- 2234,
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(2235, "Use slash as path separation character.")),
285
- ( localize(2236, "Use backslash as path separation character.")),
286
- ( localize(2237, "Uses operating system specific path separation character.")),
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
- 2238,
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
- 2239,
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: ConfigurationScope.RESOURCE
300
+ scope: 4
303
301
  },
304
302
  'explorer.fileNesting.enabled': {
305
303
  'type': 'boolean',
306
- scope: ConfigurationScope.RESOURCE,
304
+ scope: 4 ,
307
305
  'markdownDescription': ( localize(
308
- 2240,
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
- 2241,
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: ConfigurationScope.RESOURCE,
322
+ scope: 4 ,
325
323
  'markdownDescription': ( localize(
326
- 2242,
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
- 2243,
331
+ 2261,
334
332
  "Each key pattern may contain a single `*` character which will match any string."
335
333
  )),
336
334
  type: 'string',