@codingame/monaco-vscode-explorer-service-override 11.1.2 → 12.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.
@@ -1,29 +1,32 @@
1
+
1
2
  import { UndoCommand, RedoCommand } from 'vscode/vscode/vs/editor/browser/editorExtensions';
2
3
  import { localize } from 'vscode/vscode/vs/nls';
3
4
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
4
- import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
5
+ import { Extensions, ConfigurationScope } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
6
+ import 'vscode/vscode/vs/platform/instantiation/common/extensions';
5
7
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
6
8
  import { IUndoRedoService } from 'vscode/vscode/vs/platform/undoRedo/common/undoRedo.service';
7
- import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
9
+ import { registerWorkbenchContribution2, WorkbenchPhase } from 'vscode/vscode/vs/workbench/common/contributions';
8
10
  import { UNDO_REDO_SOURCE } from './explorerService.js';
9
- import { ExplorerViewletViewsContribution } from 'vscode/vscode/vs/workbench/contrib/files/browser/explorerViewlet';
11
+ import { ExplorerViewletViewsContribution } from '@codingame/monaco-vscode-b71b5434-ce96-5581-8993-e8da380bd63f-common/vscode/vs/workbench/contrib/files/browser/explorerViewlet';
10
12
  import { IExplorerService } from 'vscode/vscode/vs/workbench/contrib/files/browser/files.service';
11
- import 'vscode/vscode/vs/workbench/contrib/files/browser/files.contribution._configuration';
12
- import 'vscode/vscode/vs/workbench/contrib/files/browser/files.contribution._editorPane';
13
- import 'vscode/vscode/vs/workbench/contrib/files/browser/files.contribution._fileEditorFactory';
13
+ import { UndoConfirmLevel, SortOrder, LexicographicOptions } from '@codingame/monaco-vscode-cc9ccbec-e2a1-599d-84ae-46f5efc666e3-common/vscode/vs/workbench/contrib/files/common/files';
14
+ import '@codingame/monaco-vscode-15626ec7-b165-51e1-8caf-7bcc2ae9b95a-common/vscode/vs/workbench/contrib/files/browser/files.contribution._configuration';
15
+ import '@codingame/monaco-vscode-d481a59e-259c-524e-bee1-76483d75d3a1-common/vscode/vs/workbench/contrib/files/browser/files.contribution._editorPane';
16
+ import '@codingame/monaco-vscode-b1e8558d-1726-5299-bc75-e43ee6d1a124-common/vscode/vs/workbench/contrib/files/browser/files.contribution._fileEditorFactory';
14
17
 
15
- registerWorkbenchContribution2(ExplorerViewletViewsContribution.ID, ExplorerViewletViewsContribution, 1 );
16
- const configurationRegistry = ( (Registry.as(Extensions.Configuration)));
18
+ registerWorkbenchContribution2(ExplorerViewletViewsContribution.ID, ExplorerViewletViewsContribution, WorkbenchPhase.BlockStartup);
19
+ const configurationRegistry = ( Registry.as(Extensions.Configuration));
17
20
  configurationRegistry.registerConfiguration({
18
21
  'id': 'explorer',
19
22
  'order': 10,
20
- 'title': ( localize(2193, "File Explorer")),
23
+ 'title': ( localize(6599, "File Explorer")),
21
24
  'type': 'object',
22
25
  'properties': {
23
26
  'explorer.openEditors.visible': {
24
27
  'type': 'number',
25
28
  'description': ( localize(
26
- 2194,
29
+ 6600,
27
30
  "The initial maximum number of editors shown in the Open Editors pane. Exceeding this limit will show a scroll bar and allow resizing the pane to display more items."
28
31
  )),
29
32
  'default': 9,
@@ -32,7 +35,7 @@ configurationRegistry.registerConfiguration({
32
35
  'explorer.openEditors.minVisible': {
33
36
  'type': 'number',
34
37
  'description': ( localize(
35
- 2195,
38
+ 6601,
36
39
  "The minimum number of editor slots pre-allocated in the Open Editors pane. If set to 0 the Open Editors pane will dynamically resize based on the number of editors."
37
40
  )),
38
41
  'default': 0,
@@ -41,17 +44,17 @@ configurationRegistry.registerConfiguration({
41
44
  'explorer.openEditors.sortOrder': {
42
45
  'type': 'string',
43
46
  'enum': ['editorOrder', 'alphabetical', 'fullPath'],
44
- 'description': ( localize(2196, "Controls the sorting order of editors in the Open Editors pane.")),
47
+ 'description': ( localize(6602, "Controls the sorting order of editors in the Open Editors pane.")),
45
48
  'enumDescriptions': [
46
- ( localize(2197, 'Editors are ordered in the same order editor tabs are shown.')),
49
+ ( localize(6603, 'Editors are ordered in the same order editor tabs are shown.')),
47
50
  ( localize(
48
- 2198,
49
- 'Editors are ordered alphabetically by tab name inside each editor group.'
50
- )),
51
+ 6604,
52
+ 'Editors are ordered alphabetically by tab name inside each editor group.'
53
+ )),
51
54
  ( localize(
52
- 2199,
53
- 'Editors are ordered alphabetically by full path inside each editor group.'
54
- ))
55
+ 6605,
56
+ 'Editors are ordered alphabetically by full path inside each editor group.'
57
+ ))
55
58
  ],
56
59
  'default': 'editorOrder'
57
60
  },
@@ -60,19 +63,19 @@ configurationRegistry.registerConfiguration({
60
63
  'enum': [true, false, 'focusNoScroll'],
61
64
  'default': true,
62
65
  'enumDescriptions': [
63
- ( localize(2200, 'Files will be revealed and selected.')),
64
- ( localize(2201, 'Files will not be revealed and selected.')),
65
- ( localize(2202, 'Files will not be scrolled into view, but will still be focused.')),
66
+ ( localize(6606, 'Files will be revealed and selected.')),
67
+ ( localize(6607, 'Files will not be revealed and selected.')),
68
+ ( localize(6608, 'Files will not be scrolled into view, but will still be focused.')),
66
69
  ],
67
70
  'description': ( localize(
68
- 2203,
71
+ 6609,
69
72
  "Controls whether the Explorer should automatically reveal and select files when opening them."
70
73
  ))
71
74
  },
72
75
  'explorer.autoRevealExclude': {
73
76
  'type': 'object',
74
77
  'markdownDescription': ( localize(
75
- 2204,
78
+ 6610,
76
79
  "Configure paths or [glob patterns](https://aka.ms/vscode-glob-patterns) for excluding files and folders from being revealed and selected in the Explorer when they are opened. Glob patterns are always evaluated relative to the path of the workspace folder unless they are absolute paths."
77
80
  )),
78
81
  'default': { '**/node_modules': true, '**/bower_components': true },
@@ -81,7 +84,7 @@ configurationRegistry.registerConfiguration({
81
84
  {
82
85
  'type': 'boolean',
83
86
  'description': ( localize(
84
- 2205,
87
+ 6611,
85
88
  "The glob pattern to match file paths against. Set to true or false to enable or disable the pattern."
86
89
  )),
87
90
  },
@@ -93,7 +96,7 @@ configurationRegistry.registerConfiguration({
93
96
  pattern: '\\w*\\$\\(basename\\)\\w*',
94
97
  default: '$(basename).ext',
95
98
  description: ( localize(
96
- 2206,
99
+ 6612,
97
100
  'Additional check on the siblings of a matching file. Use $(basename) as variable for the matching file name.'
98
101
  ))
99
102
  }
@@ -105,7 +108,7 @@ configurationRegistry.registerConfiguration({
105
108
  'explorer.enableDragAndDrop': {
106
109
  'type': 'boolean',
107
110
  'description': ( localize(
108
- 2207,
111
+ 6613,
109
112
  "Controls whether the Explorer should allow to move files and folders via drag and drop. This setting only effects drag and drop from inside the Explorer."
110
113
  )),
111
114
  'default': true
@@ -113,7 +116,7 @@ configurationRegistry.registerConfiguration({
113
116
  'explorer.confirmDragAndDrop': {
114
117
  'type': 'boolean',
115
118
  'description': ( localize(
116
- 2208,
119
+ 6614,
117
120
  "Controls whether the Explorer should ask for confirmation to move files and folders via drag and drop."
118
121
  )),
119
122
  'default': true
@@ -121,7 +124,7 @@ configurationRegistry.registerConfiguration({
121
124
  'explorer.confirmPasteNative': {
122
125
  'type': 'boolean',
123
126
  'description': ( localize(
124
- 2209,
127
+ 6615,
125
128
  "Controls whether the Explorer should ask for confirmation when pasting native files and folders."
126
129
  )),
127
130
  'default': true
@@ -129,7 +132,7 @@ configurationRegistry.registerConfiguration({
129
132
  'explorer.confirmDelete': {
130
133
  'type': 'boolean',
131
134
  'description': ( localize(
132
- 2210,
135
+ 6616,
133
136
  "Controls whether the Explorer should ask for confirmation when deleting a file via the trash."
134
137
  )),
135
138
  'default': true
@@ -137,99 +140,99 @@ configurationRegistry.registerConfiguration({
137
140
  'explorer.enableUndo': {
138
141
  'type': 'boolean',
139
142
  'description': ( localize(
140
- 2211,
143
+ 6617,
141
144
  "Controls whether the Explorer should support undoing file and folder operations."
142
145
  )),
143
146
  'default': true
144
147
  },
145
148
  'explorer.confirmUndo': {
146
149
  'type': 'string',
147
- 'enum': ["verbose" , "default" , "light" ],
150
+ 'enum': [UndoConfirmLevel.Verbose, UndoConfirmLevel.Default, UndoConfirmLevel.Light],
148
151
  'description': ( localize(
149
- 2212,
152
+ 6618,
150
153
  "Controls whether the Explorer should ask for confirmation when undoing."
151
154
  )),
152
- 'default': "default" ,
155
+ 'default': UndoConfirmLevel.Default,
153
156
  'enumDescriptions': [
154
- ( localize(2213, 'Explorer will prompt before all undo operations.')),
155
- ( localize(2214, 'Explorer will prompt before destructive undo operations.')),
156
- ( localize(2215, 'Explorer will not prompt before undo operations when focused.')),
157
+ ( localize(6619, 'Explorer will prompt before all undo operations.')),
158
+ ( localize(6620, 'Explorer will prompt before destructive undo operations.')),
159
+ ( localize(6621, 'Explorer will not prompt before undo operations when focused.')),
157
160
  ],
158
161
  },
159
162
  'explorer.expandSingleFolderWorkspaces': {
160
163
  'type': 'boolean',
161
164
  'description': ( localize(
162
- 2216,
165
+ 6622,
163
166
  "Controls whether the Explorer should expand multi-root workspaces containing only one folder during initialization"
164
167
  )),
165
168
  'default': true
166
169
  },
167
170
  'explorer.sortOrder': {
168
171
  'type': 'string',
169
- 'enum': ["default" , "mixed" , "filesFirst" , "type" , "modified" , "foldersNestsFiles" ],
170
- 'default': "default" ,
172
+ 'enum': [SortOrder.Default, SortOrder.Mixed, SortOrder.FilesFirst, SortOrder.Type, SortOrder.Modified, SortOrder.FoldersNestsFiles],
173
+ 'default': SortOrder.Default,
171
174
  'enumDescriptions': [
172
175
  ( localize(
173
- 2217,
174
- 'Files and folders are sorted by their names. Folders are displayed before files.'
175
- )),
176
+ 6623,
177
+ 'Files and folders are sorted by their names. Folders are displayed before files.'
178
+ )),
176
179
  ( localize(
177
- 2218,
178
- 'Files and folders are sorted by their names. Files are interwoven with folders.'
179
- )),
180
+ 6624,
181
+ 'Files and folders are sorted by their names. Files are interwoven with folders.'
182
+ )),
180
183
  ( localize(
181
- 2219,
182
- 'Files and folders are sorted by their names. Files are displayed before folders.'
183
- )),
184
+ 6625,
185
+ 'Files and folders are sorted by their names. Files are displayed before folders.'
186
+ )),
184
187
  ( localize(
185
- 2220,
186
- 'Files and folders are grouped by extension type then sorted by their names. Folders are displayed before files.'
187
- )),
188
+ 6626,
189
+ 'Files and folders are grouped by extension type then sorted by their names. Folders are displayed before files.'
190
+ )),
188
191
  ( localize(
189
- 2221,
190
- 'Files and folders are sorted by last modified date in descending order. Folders are displayed before files.'
191
- )),
192
+ 6627,
193
+ 'Files and folders are sorted by last modified date in descending order. Folders are displayed before files.'
194
+ )),
192
195
  ( localize(
193
- 2222,
194
- 'Files and folders are sorted by their names. Folders are displayed before files. Files with nested children are displayed before other files.'
195
- ))
196
+ 6628,
197
+ 'Files and folders are sorted by their names. Folders are displayed before files. Files with nested children are displayed before other files.'
198
+ ))
196
199
  ],
197
200
  'markdownDescription': ( localize(
198
- 2223,
201
+ 6629,
199
202
  "Controls the property-based sorting of files and folders in the Explorer. When `#explorer.fileNesting.enabled#` is enabled, also controls sorting of nested files."
200
203
  ))
201
204
  },
202
205
  'explorer.sortOrderLexicographicOptions': {
203
206
  'type': 'string',
204
- 'enum': ["default" , "upper" , "lower" , "unicode" ],
205
- 'default': "default" ,
207
+ 'enum': [LexicographicOptions.Default, LexicographicOptions.Upper, LexicographicOptions.Lower, LexicographicOptions.Unicode],
208
+ 'default': LexicographicOptions.Default,
206
209
  'enumDescriptions': [
207
- ( localize(2224, 'Uppercase and lowercase names are mixed together.')),
208
- ( localize(2225, 'Uppercase names are grouped together before lowercase names.')),
209
- ( localize(2226, 'Lowercase names are grouped together before uppercase names.')),
210
- ( localize(2227, 'Names are sorted in Unicode order.'))
210
+ ( localize(6630, 'Uppercase and lowercase names are mixed together.')),
211
+ ( localize(6631, 'Uppercase names are grouped together before lowercase names.')),
212
+ ( localize(6632, 'Lowercase names are grouped together before uppercase names.')),
213
+ ( localize(6633, 'Names are sorted in Unicode order.'))
211
214
  ],
212
215
  'description': ( localize(
213
- 2228,
216
+ 6634,
214
217
  "Controls the lexicographic sorting of file and folder names in the Explorer."
215
218
  ))
216
219
  },
217
220
  'explorer.sortOrderReverse': {
218
221
  'type': 'boolean',
219
222
  'description': ( localize(
220
- 2229,
223
+ 6635,
221
224
  "Controls whether the file and folder sort order, should be reversed."
222
225
  )),
223
226
  'default': false,
224
227
  },
225
228
  'explorer.decorations.colors': {
226
229
  type: 'boolean',
227
- description: ( localize(2230, "Controls whether file decorations should use colors.")),
230
+ description: ( localize(6636, "Controls whether file decorations should use colors.")),
228
231
  default: true
229
232
  },
230
233
  'explorer.decorations.badges': {
231
234
  type: 'boolean',
232
- description: ( localize(2231, "Controls whether file decorations should use badges.")),
235
+ description: ( localize(6637, "Controls whether file decorations should use badges.")),
233
236
  default: true
234
237
  },
235
238
  'explorer.incrementalNaming': {
@@ -237,20 +240,20 @@ configurationRegistry.registerConfiguration({
237
240
  enum: ['simple', 'smart', 'disabled'],
238
241
  enumDescriptions: [
239
242
  ( localize(
240
- 2232,
241
- "Appends the word \"copy\" at the end of the duplicated name potentially followed by a number."
242
- )),
243
+ 6638,
244
+ "Appends the word \"copy\" at the end of the duplicated name potentially followed by a number."
245
+ )),
243
246
  ( localize(
244
- 2233,
245
- "Adds a number at the end of the duplicated name. If some number is already part of the name, tries to increase that number."
246
- )),
247
+ 6639,
248
+ "Adds a number at the end of the duplicated name. If some number is already part of the name, tries to increase that number."
249
+ )),
247
250
  ( localize(
248
- 2234,
249
- "Disables incremental naming. If two files with the same name exist you will be prompted to overwrite the existing file."
250
- ))
251
+ 6640,
252
+ "Disables incremental naming. If two files with the same name exist you will be prompted to overwrite the existing file."
253
+ ))
251
254
  ],
252
255
  description: ( localize(
253
- 2235,
256
+ 6641,
254
257
  "Controls which naming strategy to use when giving a new name to a duplicated Explorer item on paste."
255
258
  )),
256
259
  default: 'simple'
@@ -258,7 +261,7 @@ configurationRegistry.registerConfiguration({
258
261
  'explorer.autoOpenDroppedFile': {
259
262
  'type': 'boolean',
260
263
  'description': ( localize(
261
- 2236,
264
+ 6642,
262
265
  "Controls whether the Explorer should automatically open a file when it is dropped into the explorer"
263
266
  )),
264
267
  'default': true
@@ -266,7 +269,7 @@ configurationRegistry.registerConfiguration({
266
269
  'explorer.compactFolders': {
267
270
  'type': 'boolean',
268
271
  'description': ( localize(
269
- 2237,
272
+ 6643,
270
273
  "Controls whether the Explorer should render folders in a compact form. In such a form, single child folders will be compressed in a combined tree element. Useful for Java package structures, for example."
271
274
  )),
272
275
  'default': true
@@ -279,12 +282,12 @@ configurationRegistry.registerConfiguration({
279
282
  'auto'
280
283
  ],
281
284
  'enumDescriptions': [
282
- ( localize(2238, "Use slash as path separation character.")),
283
- ( localize(2239, "Use backslash as path separation character.")),
284
- ( localize(2240, "Uses operating system specific path separation character.")),
285
+ ( localize(6644, "Use slash as path separation character.")),
286
+ ( localize(6645, "Use backslash as path separation character.")),
287
+ ( localize(6646, "Uses operating system specific path separation character.")),
285
288
  ],
286
289
  'description': ( localize(
287
- 2241,
290
+ 6647,
288
291
  "The path separation character used when copying relative file paths."
289
292
  )),
290
293
  'default': 'auto'
@@ -292,18 +295,18 @@ configurationRegistry.registerConfiguration({
292
295
  'explorer.excludeGitIgnore': {
293
296
  type: 'boolean',
294
297
  markdownDescription: ( localize(
295
- 2242,
298
+ 6648,
296
299
  "Controls whether entries in .gitignore should be parsed and excluded from the Explorer. Similar to {0}.",
297
300
  '`#files.exclude#`'
298
301
  )),
299
302
  default: false,
300
- scope: 4
303
+ scope: ConfigurationScope.RESOURCE
301
304
  },
302
305
  'explorer.fileNesting.enabled': {
303
306
  'type': 'boolean',
304
- scope: 4 ,
307
+ scope: ConfigurationScope.RESOURCE,
305
308
  'markdownDescription': ( localize(
306
- 2243,
309
+ 6649,
307
310
  "Controls whether file nesting is enabled in the Explorer. File nesting allows for related files in a directory to be visually grouped together under a single parent file."
308
311
  )),
309
312
  'default': false,
@@ -311,7 +314,7 @@ configurationRegistry.registerConfiguration({
311
314
  'explorer.fileNesting.expand': {
312
315
  'type': 'boolean',
313
316
  'markdownDescription': ( localize(
314
- 2244,
317
+ 6650,
315
318
  "Controls whether file nests are automatically expanded. {0} must be set for this to take effect.",
316
319
  '`#explorer.fileNesting.enabled#`'
317
320
  )),
@@ -319,16 +322,16 @@ configurationRegistry.registerConfiguration({
319
322
  },
320
323
  'explorer.fileNesting.patterns': {
321
324
  'type': 'object',
322
- scope: 4 ,
325
+ scope: ConfigurationScope.RESOURCE,
323
326
  'markdownDescription': ( localize(
324
- 2245,
327
+ 6651,
325
328
  "Controls nesting of files in the Explorer. {0} must be set for this to take effect. Each __Item__ represents a parent pattern and may contain a single `*` character that matches any string. Each __Value__ represents a comma separated list of the child patterns that should be shown nested under a given parent. Child patterns may contain several special tokens:\n- `${capture}`: Matches the resolved value of the `*` from the parent pattern\n- `${basename}`: Matches the parent file's basename, the `file` in `file.ts`\n- `${extname}`: Matches the parent file's extension, the `ts` in `file.ts`\n- `${dirname}`: Matches the parent file's directory name, the `src` in `src/file.ts`\n- `*`: Matches any string, may only be used once per child pattern",
326
329
  '`#explorer.fileNesting.enabled#`'
327
330
  )),
328
331
  patternProperties: {
329
332
  '^[^*]*\\*?[^*]*$': {
330
333
  markdownDescription: ( localize(
331
- 2246,
334
+ 6652,
332
335
  "Each key pattern may contain a single `*` character which will match any string."
333
336
  )),
334
337
  type: 'string',
package/explorer.js DELETED
@@ -1,14 +0,0 @@
1
- import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
2
- import { ExplorerService } from './vscode/src/vs/workbench/contrib/files/browser/explorerService.js';
3
- import { IExplorerService } from 'vscode/vscode/vs/workbench/contrib/files/browser/files.service';
4
- import './vscode/src/vs/workbench/contrib/files/browser/fileCommands.js';
5
- import './vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js';
6
- import './vscode/src/vs/workbench/contrib/files/browser/files.contribution._explorer.js';
7
-
8
- function getServiceOverride() {
9
- return {
10
- [( IExplorerService.toString())]: new SyncDescriptor(ExplorerService, [], true)
11
- };
12
- }
13
-
14
- export { getServiceOverride as default };