@codingame/monaco-vscode-views-service-override 2.1.4 → 2.2.0-next.2

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.
Files changed (107) hide show
  1. package/index.d.ts +11 -9
  2. package/index.js +8 -6
  3. package/package.json +11 -11
  4. package/tools/views.d.ts +102 -0
  5. package/tools/views.js +253 -0
  6. package/views.d.ts +4 -99
  7. package/views.js +52 -280
  8. package/external/rollup-plugin-styles/dist/runtime/inject-css.js +0 -3
  9. package/vscode/src/vs/base/browser/ui/centered/centeredViewLayout.js +0 -180
  10. package/vscode/src/vs/base/browser/ui/grid/grid.js +0 -494
  11. package/vscode/src/vs/base/browser/ui/grid/gridview.css.js +0 -6
  12. package/vscode/src/vs/base/browser/ui/grid/gridview.js +0 -1112
  13. package/vscode/src/vs/base/common/codicons.d.ts +0 -579
  14. package/vscode/src/vs/platform/webview/common/mimeTypes.js +0 -24
  15. package/vscode/src/vs/platform/webview/common/webviewPortMapping.js +0 -64
  16. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +0 -790
  17. package/vscode/src/vs/workbench/browser/actions/listCommands.js +0 -764
  18. package/vscode/src/vs/workbench/browser/layout.d.ts +0 -26
  19. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +0 -612
  20. package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css.js +0 -6
  21. package/vscode/src/vs/workbench/browser/parts/activitybar/media/activitybarpart.css.js +0 -6
  22. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +0 -150
  23. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +0 -6
  24. package/vscode/src/vs/workbench/browser/parts/compositeBar.js +0 -605
  25. package/vscode/src/vs/workbench/browser/parts/compositePart.js +0 -335
  26. package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +0 -223
  27. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +0 -1407
  28. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +0 -186
  29. package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +0 -511
  30. package/vscode/src/vs/workbench/browser/parts/editor/editorPane.d.ts +0 -112
  31. package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +0 -1020
  32. package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +0 -391
  33. package/vscode/src/vs/workbench/browser/parts/editor/media/editordroptarget.css.js +0 -6
  34. package/vscode/src/vs/workbench/browser/parts/media/compositepart.css.js +0 -6
  35. package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +0 -6
  36. package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +0 -645
  37. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +0 -379
  38. package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +0 -68
  39. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +0 -146
  40. package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +0 -6
  41. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +0 -222
  42. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +0 -299
  43. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +0 -365
  44. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +0 -135
  45. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +0 -6
  46. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +0 -17
  47. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +0 -145
  48. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +0 -214
  49. package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css.js +0 -6
  50. package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +0 -78
  51. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +0 -63
  52. package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +0 -119
  53. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +0 -6
  54. package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +0 -79
  55. package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorHandler.js +0 -74
  56. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +0 -256
  57. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditorTracker.js +0 -99
  58. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +0 -444
  59. package/vscode/src/vs/workbench/contrib/files/browser/explorerService.js +0 -432
  60. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +0 -786
  61. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +0 -488
  62. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +0 -522
  63. package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +0 -152
  64. package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +0 -63
  65. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +0 -409
  66. package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +0 -6
  67. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +0 -693
  68. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +0 -240
  69. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +0 -77
  70. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.js +0 -42
  71. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +0 -71
  72. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +0 -348
  73. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +0 -98
  74. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +0 -146
  75. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +0 -105
  76. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +0 -401
  77. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +0 -197
  78. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/fixedZoneWidget.js +0 -41
  79. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +0 -128
  80. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/media/mergeEditor.css.js +0 -6
  81. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +0 -612
  82. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +0 -158
  83. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +0 -264
  84. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +0 -173
  85. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css.js +0 -6
  86. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +0 -282
  87. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +0 -360
  88. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +0 -133
  89. package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +0 -290
  90. package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +0 -96
  91. package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +0 -88
  92. package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +0 -79
  93. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +0 -648
  94. package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +0 -65
  95. package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.js +0 -59
  96. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +0 -142
  97. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +0 -121
  98. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +0 -68
  99. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +0 -235
  100. package/vscode/src/vs/workbench/services/activity/browser/activityService.js +0 -145
  101. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +0 -670
  102. package/vscode/src/vs/workbench/services/history/browser/historyService.js +0 -1484
  103. package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css.js +0 -6
  104. package/vscode/src/vs/workbench/services/progress/browser/progressService.js +0 -523
  105. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +0 -101
  106. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +0 -713
  107. package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +0 -598
@@ -1,522 +0,0 @@
1
- import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
- import { Schemas } from 'vscode/vscode/vs/base/common/network';
3
- import { sep } from 'vscode/vscode/vs/base/common/path';
4
- import { isWindows } from 'vscode/vscode/vs/base/common/platform';
5
- import { UndoCommand, RedoCommand } from 'vscode/vscode/vs/editor/browser/editorExtensions';
6
- import { ModesRegistry } from 'vscode/vscode/vs/editor/common/languages/modesRegistry';
7
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
8
- import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
9
- import { Extensions as Extensions$1 } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
10
- import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
11
- import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label';
12
- import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
13
- import { IUndoRedoService } from 'vscode/vscode/vs/platform/undoRedo/common/undoRedo';
14
- import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
15
- import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
16
- import { EditorExtensions } from 'vscode/vscode/vs/workbench/common/editor';
17
- import { BinaryFileEditor } from './editors/binaryFileEditor.js';
18
- import { FileEditorInputSerializer, FileEditorWorkingCopyEditorHandler } from './editors/fileEditorHandler.js';
19
- import { FileEditorInput } from 'vscode/vscode/vs/workbench/contrib/files/browser/editors/fileEditorInput';
20
- import { TextFileEditor } from './editors/textFileEditor.js';
21
- import { TextFileEditorTracker } from './editors/textFileEditorTracker.js';
22
- import { TextFileSaveErrorHandler } from './editors/textFileSaveErrorHandler.js';
23
- import { UNDO_REDO_SOURCE } from './explorerService.js';
24
- import { ExplorerViewletViewsContribution } from 'vscode/vscode/vs/workbench/contrib/files/browser/explorerViewlet';
25
- import { IExplorerService } from 'vscode/vscode/vs/workbench/contrib/files/browser/files';
26
- import { WorkspaceWatcher } from './workspaceWatcher.js';
27
- import { DirtyFilesIndicator } from '../common/dirtyFilesIndicator.js';
28
- import { FILE_EDITOR_INPUT_ID, BINARY_TEXT_FILE_MODE } from 'vscode/vscode/vs/workbench/contrib/files/common/files';
29
- import 'vscode/vscode/vs/workbench/contrib/files/browser/files.configuration.contribution';
30
- import 'vscode/vscode/vs/workbench/contrib/files/browser/files.fileEditorFactory.contribution';
31
-
32
- let FileUriLabelContribution = class FileUriLabelContribution {
33
- constructor(labelService) {
34
- labelService.registerFormatter({
35
- scheme: Schemas.file,
36
- formatting: {
37
- label: '${authority}${path}',
38
- separator: sep,
39
- tildify: !isWindows,
40
- normalizeDriveLetter: isWindows,
41
- authorityPrefix: sep + sep,
42
- workspaceSuffix: ''
43
- }
44
- });
45
- }
46
- };
47
- FileUriLabelContribution = ( __decorate([
48
- ( __param(0, ILabelService))
49
- ], FileUriLabelContribution));
50
- ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(TextFileEditor, TextFileEditor.ID, ( localizeWithPath(
51
- 'vs/workbench/contrib/files/browser/files.contribution',
52
- 'textFileEditor',
53
- "Text File Editor"
54
- ))), [
55
- ( new SyncDescriptor(FileEditorInput))
56
- ]);
57
- ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(BinaryFileEditor, BinaryFileEditor.ID, ( localizeWithPath(
58
- 'vs/workbench/contrib/files/browser/files.contribution',
59
- 'binaryFileEditor',
60
- "Binary File Editor"
61
- ))), [
62
- ( new SyncDescriptor(FileEditorInput))
63
- ]);
64
- ( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(FILE_EDITOR_INPUT_ID, FileEditorInputSerializer);
65
- ( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(FileEditorWorkingCopyEditorHandler, 2 );
66
- ( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(ExplorerViewletViewsContribution, 1 );
67
- ( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(TextFileEditorTracker, 1 );
68
- ( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(TextFileSaveErrorHandler, 1 );
69
- ( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(FileUriLabelContribution, 1 );
70
- ( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(WorkspaceWatcher, 3 );
71
- ( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(DirtyFilesIndicator, 1 );
72
- const configurationRegistry = ( Registry.as(Extensions$1.Configuration));
73
- configurationRegistry.registerConfiguration({
74
- 'id': 'explorer',
75
- 'order': 10,
76
- 'title': ( localizeWithPath(
77
- 'vs/workbench/contrib/files/browser/files.contribution',
78
- 'explorerConfigurationTitle',
79
- "File Explorer"
80
- )),
81
- 'type': 'object',
82
- 'properties': {
83
- 'explorer.openEditors.visible': {
84
- 'type': 'number',
85
- 'description': ( localizeWithPath(
86
- 'vs/workbench/contrib/files/browser/files.contribution',
87
- { key: 'openEditorsVisible', comment: ['Open is an adjective'] },
88
- "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."
89
- )),
90
- 'default': 9,
91
- 'minimum': 1
92
- },
93
- 'explorer.openEditors.minVisible': {
94
- 'type': 'number',
95
- 'description': ( localizeWithPath(
96
- 'vs/workbench/contrib/files/browser/files.contribution',
97
- { key: 'openEditorsVisibleMin', comment: ['Open is an adjective'] },
98
- "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."
99
- )),
100
- 'default': 0,
101
- 'minimum': 0
102
- },
103
- 'explorer.openEditors.sortOrder': {
104
- 'type': 'string',
105
- 'enum': ['editorOrder', 'alphabetical', 'fullPath'],
106
- 'description': ( localizeWithPath(
107
- 'vs/workbench/contrib/files/browser/files.contribution',
108
- { key: 'openEditorsSortOrder', comment: ['Open is an adjective'] },
109
- "Controls the sorting order of editors in the Open Editors pane."
110
- )),
111
- 'enumDescriptions': [
112
- ( localizeWithPath(
113
- 'vs/workbench/contrib/files/browser/files.contribution',
114
- 'sortOrder.editorOrder',
115
- 'Editors are ordered in the same order editor tabs are shown.'
116
- )),
117
- ( localizeWithPath(
118
- 'vs/workbench/contrib/files/browser/files.contribution',
119
- 'sortOrder.alphabetical',
120
- 'Editors are ordered alphabetically by tab name inside each editor group.'
121
- )),
122
- ( localizeWithPath(
123
- 'vs/workbench/contrib/files/browser/files.contribution',
124
- 'sortOrder.fullPath',
125
- 'Editors are ordered alphabetically by full path inside each editor group.'
126
- ))
127
- ],
128
- 'default': 'editorOrder'
129
- },
130
- 'explorer.autoReveal': {
131
- 'type': ['boolean', 'string'],
132
- 'enum': [true, false, 'focusNoScroll'],
133
- 'default': true,
134
- 'enumDescriptions': [
135
- ( localizeWithPath(
136
- 'vs/workbench/contrib/files/browser/files.contribution',
137
- 'autoReveal.on',
138
- 'Files will be revealed and selected.'
139
- )),
140
- ( localizeWithPath(
141
- 'vs/workbench/contrib/files/browser/files.contribution',
142
- 'autoReveal.off',
143
- 'Files will not be revealed and selected.'
144
- )),
145
- ( localizeWithPath(
146
- 'vs/workbench/contrib/files/browser/files.contribution',
147
- 'autoReveal.focusNoScroll',
148
- 'Files will not be scrolled into view, but will still be focused.'
149
- )),
150
- ],
151
- 'description': ( localizeWithPath(
152
- 'vs/workbench/contrib/files/browser/files.contribution',
153
- 'autoReveal',
154
- "Controls whether the Explorer should automatically reveal and select files when opening them."
155
- ))
156
- },
157
- 'explorer.autoRevealExclude': {
158
- 'type': 'object',
159
- 'markdownDescription': ( localizeWithPath(
160
- 'vs/workbench/contrib/files/browser/files.contribution',
161
- 'autoRevealExclude',
162
- "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."
163
- )),
164
- 'default': { '**/node_modules': true, '**/bower_components': true },
165
- 'additionalProperties': {
166
- 'anyOf': [
167
- {
168
- 'type': 'boolean',
169
- 'description': ( localizeWithPath(
170
- 'vs/workbench/contrib/files/browser/files.contribution',
171
- 'explorer.autoRevealExclude.boolean',
172
- "The glob pattern to match file paths against. Set to true or false to enable or disable the pattern."
173
- )),
174
- },
175
- {
176
- type: 'object',
177
- properties: {
178
- when: {
179
- type: 'string',
180
- pattern: '\\w*\\$\\(basename\\)\\w*',
181
- default: '$(basename).ext',
182
- description: ( localizeWithPath(
183
- 'vs/workbench/contrib/files/browser/files.contribution',
184
- 'explorer.autoRevealExclude.when',
185
- 'Additional check on the siblings of a matching file. Use $(basename) as variable for the matching file name.'
186
- ))
187
- }
188
- }
189
- }
190
- ]
191
- }
192
- },
193
- 'explorer.enableDragAndDrop': {
194
- 'type': 'boolean',
195
- 'description': ( localizeWithPath(
196
- 'vs/workbench/contrib/files/browser/files.contribution',
197
- 'enableDragAndDrop',
198
- "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."
199
- )),
200
- 'default': true
201
- },
202
- 'explorer.confirmDragAndDrop': {
203
- 'type': 'boolean',
204
- 'description': ( localizeWithPath(
205
- 'vs/workbench/contrib/files/browser/files.contribution',
206
- 'confirmDragAndDrop',
207
- "Controls whether the Explorer should ask for confirmation to move files and folders via drag and drop."
208
- )),
209
- 'default': true
210
- },
211
- 'explorer.confirmPasteNative': {
212
- 'type': 'boolean',
213
- 'description': ( localizeWithPath(
214
- 'vs/workbench/contrib/files/browser/files.contribution',
215
- 'confirmPasteNative',
216
- "Controls whether the Explorer should ask for confirmation when pasting native files and folders."
217
- )),
218
- 'default': true
219
- },
220
- 'explorer.confirmDelete': {
221
- 'type': 'boolean',
222
- 'description': ( localizeWithPath(
223
- 'vs/workbench/contrib/files/browser/files.contribution',
224
- 'confirmDelete',
225
- "Controls whether the Explorer should ask for confirmation when deleting a file via the trash."
226
- )),
227
- 'default': true
228
- },
229
- 'explorer.enableUndo': {
230
- 'type': 'boolean',
231
- 'description': ( localizeWithPath(
232
- 'vs/workbench/contrib/files/browser/files.contribution',
233
- 'enableUndo',
234
- "Controls whether the Explorer should support undoing file and folder operations."
235
- )),
236
- 'default': true
237
- },
238
- 'explorer.confirmUndo': {
239
- 'type': 'string',
240
- 'enum': ["verbose" , "default" , "light" ],
241
- 'description': ( localizeWithPath(
242
- 'vs/workbench/contrib/files/browser/files.contribution',
243
- 'confirmUndo',
244
- "Controls whether the Explorer should ask for confirmation when undoing."
245
- )),
246
- 'default': "default" ,
247
- 'enumDescriptions': [
248
- ( localizeWithPath(
249
- 'vs/workbench/contrib/files/browser/files.contribution',
250
- 'enableUndo.verbose',
251
- 'Explorer will prompt before all undo operations.'
252
- )),
253
- ( localizeWithPath(
254
- 'vs/workbench/contrib/files/browser/files.contribution',
255
- 'enableUndo.default',
256
- 'Explorer will prompt before destructive undo operations.'
257
- )),
258
- ( localizeWithPath(
259
- 'vs/workbench/contrib/files/browser/files.contribution',
260
- 'enableUndo.light',
261
- 'Explorer will not prompt before undo operations when focused.'
262
- )),
263
- ],
264
- },
265
- 'explorer.expandSingleFolderWorkspaces': {
266
- 'type': 'boolean',
267
- 'description': ( localizeWithPath(
268
- 'vs/workbench/contrib/files/browser/files.contribution',
269
- 'expandSingleFolderWorkspaces',
270
- "Controls whether the Explorer should expand multi-root workspaces containing only one folder during initialization"
271
- )),
272
- 'default': true
273
- },
274
- 'explorer.sortOrder': {
275
- 'type': 'string',
276
- 'enum': ["default" , "mixed" , "filesFirst" , "type" , "modified" , "foldersNestsFiles" ],
277
- 'default': "default" ,
278
- 'enumDescriptions': [
279
- ( localizeWithPath(
280
- 'vs/workbench/contrib/files/browser/files.contribution',
281
- 'sortOrder.default',
282
- 'Files and folders are sorted by their names. Folders are displayed before files.'
283
- )),
284
- ( localizeWithPath(
285
- 'vs/workbench/contrib/files/browser/files.contribution',
286
- 'sortOrder.mixed',
287
- 'Files and folders are sorted by their names. Files are interwoven with folders.'
288
- )),
289
- ( localizeWithPath(
290
- 'vs/workbench/contrib/files/browser/files.contribution',
291
- 'sortOrder.filesFirst',
292
- 'Files and folders are sorted by their names. Files are displayed before folders.'
293
- )),
294
- ( localizeWithPath(
295
- 'vs/workbench/contrib/files/browser/files.contribution',
296
- 'sortOrder.type',
297
- 'Files and folders are grouped by extension type then sorted by their names. Folders are displayed before files.'
298
- )),
299
- ( localizeWithPath(
300
- 'vs/workbench/contrib/files/browser/files.contribution',
301
- 'sortOrder.modified',
302
- 'Files and folders are sorted by last modified date in descending order. Folders are displayed before files.'
303
- )),
304
- ( localizeWithPath(
305
- 'vs/workbench/contrib/files/browser/files.contribution',
306
- 'sortOrder.foldersNestsFiles',
307
- 'Files and folders are sorted by their names. Folders are displayed before files. Files with nested children are displayed before other files.'
308
- ))
309
- ],
310
- 'markdownDescription': ( localizeWithPath(
311
- 'vs/workbench/contrib/files/browser/files.contribution',
312
- 'sortOrder',
313
- "Controls the property-based sorting of files and folders in the Explorer. When `#explorer.fileNesting.enabled#` is enabled, also controls sorting of nested files."
314
- ))
315
- },
316
- 'explorer.sortOrderLexicographicOptions': {
317
- 'type': 'string',
318
- 'enum': ["default" , "upper" , "lower" , "unicode" ],
319
- 'default': "default" ,
320
- 'enumDescriptions': [
321
- ( localizeWithPath(
322
- 'vs/workbench/contrib/files/browser/files.contribution',
323
- 'sortOrderLexicographicOptions.default',
324
- 'Uppercase and lowercase names are mixed together.'
325
- )),
326
- ( localizeWithPath(
327
- 'vs/workbench/contrib/files/browser/files.contribution',
328
- 'sortOrderLexicographicOptions.upper',
329
- 'Uppercase names are grouped together before lowercase names.'
330
- )),
331
- ( localizeWithPath(
332
- 'vs/workbench/contrib/files/browser/files.contribution',
333
- 'sortOrderLexicographicOptions.lower',
334
- 'Lowercase names are grouped together before uppercase names.'
335
- )),
336
- ( localizeWithPath(
337
- 'vs/workbench/contrib/files/browser/files.contribution',
338
- 'sortOrderLexicographicOptions.unicode',
339
- 'Names are sorted in Unicode order.'
340
- ))
341
- ],
342
- 'description': ( localizeWithPath(
343
- 'vs/workbench/contrib/files/browser/files.contribution',
344
- 'sortOrderLexicographicOptions',
345
- "Controls the lexicographic sorting of file and folder names in the Explorer."
346
- ))
347
- },
348
- 'explorer.decorations.colors': {
349
- type: 'boolean',
350
- description: ( localizeWithPath(
351
- 'vs/workbench/contrib/files/browser/files.contribution',
352
- 'explorer.decorations.colors',
353
- "Controls whether file decorations should use colors."
354
- )),
355
- default: true
356
- },
357
- 'explorer.decorations.badges': {
358
- type: 'boolean',
359
- description: ( localizeWithPath(
360
- 'vs/workbench/contrib/files/browser/files.contribution',
361
- 'explorer.decorations.badges',
362
- "Controls whether file decorations should use badges."
363
- )),
364
- default: true
365
- },
366
- 'explorer.incrementalNaming': {
367
- 'type': 'string',
368
- enum: ['simple', 'smart', 'disabled'],
369
- enumDescriptions: [
370
- ( localizeWithPath(
371
- 'vs/workbench/contrib/files/browser/files.contribution',
372
- 'simple',
373
- "Appends the word \"copy\" at the end of the duplicated name potentially followed by a number."
374
- )),
375
- ( localizeWithPath(
376
- 'vs/workbench/contrib/files/browser/files.contribution',
377
- 'smart',
378
- "Adds a number at the end of the duplicated name. If some number is already part of the name, tries to increase that number."
379
- )),
380
- ( localizeWithPath(
381
- 'vs/workbench/contrib/files/browser/files.contribution',
382
- 'disabled',
383
- "Disables incremental naming. If two files with the same name exist you will be prompted to overwrite the existing file."
384
- ))
385
- ],
386
- description: ( localizeWithPath(
387
- 'vs/workbench/contrib/files/browser/files.contribution',
388
- 'explorer.incrementalNaming',
389
- "Controls which naming strategy to use when giving a new name to a duplicated Explorer item on paste."
390
- )),
391
- default: 'simple'
392
- },
393
- 'explorer.compactFolders': {
394
- 'type': 'boolean',
395
- 'description': ( localizeWithPath(
396
- 'vs/workbench/contrib/files/browser/files.contribution',
397
- 'compressSingleChildFolders',
398
- "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."
399
- )),
400
- 'default': true
401
- },
402
- 'explorer.copyRelativePathSeparator': {
403
- 'type': 'string',
404
- 'enum': [
405
- '/',
406
- '\\',
407
- 'auto'
408
- ],
409
- 'enumDescriptions': [
410
- ( localizeWithPath(
411
- 'vs/workbench/contrib/files/browser/files.contribution',
412
- 'copyRelativePathSeparator.slash',
413
- "Use slash as path separation character."
414
- )),
415
- ( localizeWithPath(
416
- 'vs/workbench/contrib/files/browser/files.contribution',
417
- 'copyRelativePathSeparator.backslash',
418
- "Use backslash as path separation character."
419
- )),
420
- ( localizeWithPath(
421
- 'vs/workbench/contrib/files/browser/files.contribution',
422
- 'copyRelativePathSeparator.auto',
423
- "Uses operating system specific path separation character."
424
- )),
425
- ],
426
- 'description': ( localizeWithPath(
427
- 'vs/workbench/contrib/files/browser/files.contribution',
428
- 'copyRelativePathSeparator',
429
- "The path separation character used when copying relative file paths."
430
- )),
431
- 'default': 'auto'
432
- },
433
- 'explorer.excludeGitIgnore': {
434
- type: 'boolean',
435
- markdownDescription: ( localizeWithPath(
436
- 'vs/workbench/contrib/files/browser/files.contribution',
437
- 'excludeGitignore',
438
- "Controls whether entries in .gitignore should be parsed and excluded from the Explorer. Similar to {0}.",
439
- '`#files.exclude#`'
440
- )),
441
- default: false,
442
- scope: 4
443
- },
444
- 'explorer.fileNesting.enabled': {
445
- 'type': 'boolean',
446
- scope: 4 ,
447
- 'markdownDescription': ( localizeWithPath(
448
- 'vs/workbench/contrib/files/browser/files.contribution',
449
- 'fileNestingEnabled',
450
- "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."
451
- )),
452
- 'default': false,
453
- },
454
- 'explorer.fileNesting.expand': {
455
- 'type': 'boolean',
456
- 'markdownDescription': ( localizeWithPath(
457
- 'vs/workbench/contrib/files/browser/files.contribution',
458
- 'fileNestingExpand',
459
- "Controls whether file nests are automatically expanded. {0} must be set for this to take effect.",
460
- '`#explorer.fileNesting.enabled#`'
461
- )),
462
- 'default': true,
463
- },
464
- 'explorer.fileNesting.patterns': {
465
- 'type': 'object',
466
- scope: 4 ,
467
- 'markdownDescription': ( localizeWithPath(
468
- 'vs/workbench/contrib/files/browser/files.contribution',
469
- 'fileNestingPatterns',
470
- "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",
471
- '`#explorer.fileNesting.enabled#`'
472
- )),
473
- patternProperties: {
474
- '^[^*]*\\*?[^*]*$': {
475
- markdownDescription: ( localizeWithPath(
476
- 'vs/workbench/contrib/files/browser/files.contribution',
477
- 'fileNesting.description',
478
- "Each key pattern may contain a single `*` character which will match any string."
479
- )),
480
- type: 'string',
481
- pattern: '^([^,*]*\\*?[^,*]*)(, ?[^,*]*\\*?[^,*]*)*$',
482
- }
483
- },
484
- additionalProperties: false,
485
- 'default': {
486
- '*.ts': '${capture}.js',
487
- '*.js': '${capture}.js.map, ${capture}.min.js, ${capture}.d.ts',
488
- '*.jsx': '${capture}.js',
489
- '*.tsx': '${capture}.ts',
490
- 'tsconfig.json': 'tsconfig.*.json',
491
- 'package.json': 'package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb',
492
- }
493
- }
494
- }
495
- });
496
- UndoCommand.addImplementation(110, 'explorer', (accessor) => {
497
- const undoRedoService = accessor.get(IUndoRedoService);
498
- const explorerService = accessor.get(IExplorerService);
499
- const configurationService = accessor.get(IConfigurationService);
500
- const explorerCanUndo = configurationService.getValue().explorer.enableUndo;
501
- if (explorerService.hasViewFocus() && undoRedoService.canUndo(UNDO_REDO_SOURCE) && explorerCanUndo) {
502
- undoRedoService.undo(UNDO_REDO_SOURCE);
503
- return true;
504
- }
505
- return false;
506
- });
507
- RedoCommand.addImplementation(110, 'explorer', (accessor) => {
508
- const undoRedoService = accessor.get(IUndoRedoService);
509
- const explorerService = accessor.get(IExplorerService);
510
- const configurationService = accessor.get(IConfigurationService);
511
- const explorerCanUndo = configurationService.getValue().explorer.enableUndo;
512
- if (explorerService.hasViewFocus() && undoRedoService.canRedo(UNDO_REDO_SOURCE) && explorerCanUndo) {
513
- undoRedoService.redo(UNDO_REDO_SOURCE);
514
- return true;
515
- }
516
- return false;
517
- });
518
- ModesRegistry.registerLanguage({
519
- id: BINARY_TEXT_FILE_MODE,
520
- aliases: ['Binary'],
521
- mimetypes: ['text/x-code-binary']
522
- });