@codingame/monaco-vscode-explorer-service-override 26.2.2 → 28.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-explorer-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "28.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - explorer service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "28.0.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -64,7 +64,7 @@ let ExplorerService = class ExplorerService {
|
|
|
64
64
|
));
|
|
65
65
|
this.disposables.add(this.model);
|
|
66
66
|
this.disposables.add(this.fileService.onDidRunOperation(e => this.onDidRunOperation(e)));
|
|
67
|
-
this.onFileChangesScheduler = ( new RunOnceScheduler(async () => {
|
|
67
|
+
this.onFileChangesScheduler = this.disposables.add(( new RunOnceScheduler(async () => {
|
|
68
68
|
const events = this.fileChangeEvents;
|
|
69
69
|
this.fileChangeEvents = [];
|
|
70
70
|
const types = [FileChangeType.DELETED];
|
|
@@ -91,7 +91,7 @@ let ExplorerService = class ExplorerService {
|
|
|
91
91
|
if (shouldRefresh) {
|
|
92
92
|
await this.refresh(false);
|
|
93
93
|
}
|
|
94
|
-
}, ExplorerService_1.EXPLORER_FILE_CHANGES_REACT_DELAY));
|
|
94
|
+
}, ExplorerService_1.EXPLORER_FILE_CHANGES_REACT_DELAY)));
|
|
95
95
|
this.disposables.add(this.fileService.onDidFilesChange(e => {
|
|
96
96
|
this.fileChangeEvents.push(e);
|
|
97
97
|
if (this.editable) {
|
|
@@ -24,13 +24,13 @@ const configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
|
24
24
|
configurationRegistry.registerConfiguration({
|
|
25
25
|
"id": "explorer",
|
|
26
26
|
"order": 10,
|
|
27
|
-
"title": ( localize(
|
|
27
|
+
"title": ( localize(9489, "File Explorer")),
|
|
28
28
|
"type": "object",
|
|
29
29
|
"properties": {
|
|
30
30
|
"explorer.openEditors.visible": {
|
|
31
31
|
"type": "number",
|
|
32
32
|
"description": ( localize(
|
|
33
|
-
|
|
33
|
+
9490,
|
|
34
34
|
"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."
|
|
35
35
|
)),
|
|
36
36
|
"default": 9,
|
|
@@ -39,7 +39,7 @@ configurationRegistry.registerConfiguration({
|
|
|
39
39
|
"explorer.openEditors.minVisible": {
|
|
40
40
|
"type": "number",
|
|
41
41
|
"description": ( localize(
|
|
42
|
-
|
|
42
|
+
9491,
|
|
43
43
|
"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."
|
|
44
44
|
)),
|
|
45
45
|
"default": 0,
|
|
@@ -48,12 +48,12 @@ configurationRegistry.registerConfiguration({
|
|
|
48
48
|
"explorer.openEditors.sortOrder": {
|
|
49
49
|
"type": "string",
|
|
50
50
|
"enum": ["editorOrder", "alphabetical", "fullPath"],
|
|
51
|
-
"description": ( localize(
|
|
52
|
-
"enumDescriptions": [( localize(
|
|
53
|
-
|
|
51
|
+
"description": ( localize(9492, "Controls the sorting order of editors in the Open Editors pane.")),
|
|
52
|
+
"enumDescriptions": [( localize(9493, "Editors are ordered in the same order editor tabs are shown.")), ( localize(
|
|
53
|
+
9494,
|
|
54
54
|
"Editors are ordered alphabetically by tab name inside each editor group."
|
|
55
55
|
)), ( localize(
|
|
56
|
-
|
|
56
|
+
9495,
|
|
57
57
|
"Editors are ordered alphabetically by full path inside each editor group."
|
|
58
58
|
))],
|
|
59
59
|
"default": "editorOrder"
|
|
@@ -62,16 +62,16 @@ configurationRegistry.registerConfiguration({
|
|
|
62
62
|
"type": ["boolean", "string"],
|
|
63
63
|
"enum": [true, false, "focusNoScroll"],
|
|
64
64
|
"default": true,
|
|
65
|
-
"enumDescriptions": [( localize(
|
|
65
|
+
"enumDescriptions": [( localize(9496, "Files will be revealed and selected.")), ( localize(9497, "Files will not be revealed and selected.")), ( localize(9498, "Files will not be scrolled into view, but will still be focused."))],
|
|
66
66
|
"description": ( localize(
|
|
67
|
-
|
|
67
|
+
9499,
|
|
68
68
|
"Controls whether the Explorer should automatically reveal and select files when opening them."
|
|
69
69
|
))
|
|
70
70
|
},
|
|
71
71
|
"explorer.autoRevealExclude": {
|
|
72
72
|
"type": "object",
|
|
73
73
|
"markdownDescription": ( localize(
|
|
74
|
-
|
|
74
|
+
9500,
|
|
75
75
|
"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."
|
|
76
76
|
)),
|
|
77
77
|
"default": {
|
|
@@ -82,7 +82,7 @@ configurationRegistry.registerConfiguration({
|
|
|
82
82
|
"anyOf": [{
|
|
83
83
|
"type": "boolean",
|
|
84
84
|
"description": ( localize(
|
|
85
|
-
|
|
85
|
+
9501,
|
|
86
86
|
"The glob pattern to match file paths against. Set to true or false to enable or disable the pattern."
|
|
87
87
|
))
|
|
88
88
|
}, {
|
|
@@ -93,7 +93,7 @@ configurationRegistry.registerConfiguration({
|
|
|
93
93
|
pattern: "\\w*\\$\\(basename\\)\\w*",
|
|
94
94
|
default: "$(basename).ext",
|
|
95
95
|
description: ( localize(
|
|
96
|
-
|
|
96
|
+
9502,
|
|
97
97
|
"Additional check on the siblings of a matching file. Use $(basename) as variable for the matching file name."
|
|
98
98
|
))
|
|
99
99
|
}
|
|
@@ -104,7 +104,7 @@ configurationRegistry.registerConfiguration({
|
|
|
104
104
|
"explorer.enableDragAndDrop": {
|
|
105
105
|
"type": "boolean",
|
|
106
106
|
"description": ( localize(
|
|
107
|
-
|
|
107
|
+
9503,
|
|
108
108
|
"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."
|
|
109
109
|
)),
|
|
110
110
|
"default": true
|
|
@@ -112,7 +112,7 @@ configurationRegistry.registerConfiguration({
|
|
|
112
112
|
"explorer.confirmDragAndDrop": {
|
|
113
113
|
"type": "boolean",
|
|
114
114
|
"description": ( localize(
|
|
115
|
-
|
|
115
|
+
9504,
|
|
116
116
|
"Controls whether the Explorer should ask for confirmation to move files and folders via drag and drop."
|
|
117
117
|
)),
|
|
118
118
|
"default": true
|
|
@@ -120,7 +120,7 @@ configurationRegistry.registerConfiguration({
|
|
|
120
120
|
"explorer.confirmPasteNative": {
|
|
121
121
|
"type": "boolean",
|
|
122
122
|
"description": ( localize(
|
|
123
|
-
|
|
123
|
+
9505,
|
|
124
124
|
"Controls whether the Explorer should ask for confirmation when pasting native files and folders."
|
|
125
125
|
)),
|
|
126
126
|
"default": true
|
|
@@ -128,7 +128,7 @@ configurationRegistry.registerConfiguration({
|
|
|
128
128
|
"explorer.confirmDelete": {
|
|
129
129
|
"type": "boolean",
|
|
130
130
|
"description": ( localize(
|
|
131
|
-
|
|
131
|
+
9506,
|
|
132
132
|
"Controls whether the Explorer should ask for confirmation when deleting files and folders."
|
|
133
133
|
)),
|
|
134
134
|
"default": true
|
|
@@ -136,7 +136,7 @@ configurationRegistry.registerConfiguration({
|
|
|
136
136
|
"explorer.enableUndo": {
|
|
137
137
|
"type": "boolean",
|
|
138
138
|
"description": ( localize(
|
|
139
|
-
|
|
139
|
+
9507,
|
|
140
140
|
"Controls whether the Explorer should support undoing file and folder operations."
|
|
141
141
|
)),
|
|
142
142
|
"default": true
|
|
@@ -145,16 +145,16 @@ configurationRegistry.registerConfiguration({
|
|
|
145
145
|
"type": "string",
|
|
146
146
|
"enum": [UndoConfirmLevel.Verbose, UndoConfirmLevel.Default, UndoConfirmLevel.Light],
|
|
147
147
|
"description": ( localize(
|
|
148
|
-
|
|
148
|
+
9508,
|
|
149
149
|
"Controls whether the Explorer should ask for confirmation when undoing."
|
|
150
150
|
)),
|
|
151
151
|
"default": UndoConfirmLevel.Default,
|
|
152
|
-
"enumDescriptions": [( localize(
|
|
152
|
+
"enumDescriptions": [( localize(9509, "Explorer will prompt before all undo operations.")), ( localize(9510, "Explorer will prompt before destructive undo operations.")), ( localize(9511, "Explorer will not prompt before undo operations when focused."))]
|
|
153
153
|
},
|
|
154
154
|
"explorer.expandSingleFolderWorkspaces": {
|
|
155
155
|
"type": "boolean",
|
|
156
156
|
"description": ( localize(
|
|
157
|
-
|
|
157
|
+
9512,
|
|
158
158
|
"Controls whether the Explorer should expand multi-root workspaces containing only one folder during initialization"
|
|
159
159
|
)),
|
|
160
160
|
"default": true
|
|
@@ -171,26 +171,26 @@ configurationRegistry.registerConfiguration({
|
|
|
171
171
|
],
|
|
172
172
|
"default": SortOrder.Default,
|
|
173
173
|
"enumDescriptions": [( localize(
|
|
174
|
-
|
|
174
|
+
9513,
|
|
175
175
|
"Files and folders are sorted by their names. Folders are displayed before files."
|
|
176
176
|
)), ( localize(
|
|
177
|
-
|
|
177
|
+
9514,
|
|
178
178
|
"Files and folders are sorted by their names. Files are interwoven with folders."
|
|
179
179
|
)), ( localize(
|
|
180
|
-
|
|
180
|
+
9515,
|
|
181
181
|
"Files and folders are sorted by their names. Files are displayed before folders."
|
|
182
182
|
)), ( localize(
|
|
183
|
-
|
|
183
|
+
9516,
|
|
184
184
|
"Files and folders are grouped by extension type then sorted by their names. Folders are displayed before files."
|
|
185
185
|
)), ( localize(
|
|
186
|
-
|
|
186
|
+
9517,
|
|
187
187
|
"Files and folders are sorted by last modified date in descending order. Folders are displayed before files."
|
|
188
188
|
)), ( localize(
|
|
189
|
-
|
|
189
|
+
9518,
|
|
190
190
|
"Files and folders are sorted by their names. Folders are displayed before files. Files with nested children are displayed before other files."
|
|
191
191
|
))],
|
|
192
192
|
"markdownDescription": ( localize(
|
|
193
|
-
|
|
193
|
+
9519,
|
|
194
194
|
"Controls the property-based sorting of files and folders in the Explorer. When `#explorer.fileNesting.enabled#` is enabled, also controls sorting of nested files."
|
|
195
195
|
))
|
|
196
196
|
},
|
|
@@ -203,45 +203,45 @@ configurationRegistry.registerConfiguration({
|
|
|
203
203
|
LexicographicOptions.Unicode
|
|
204
204
|
],
|
|
205
205
|
"default": LexicographicOptions.Default,
|
|
206
|
-
"enumDescriptions": [( localize(
|
|
206
|
+
"enumDescriptions": [( localize(9520, "Uppercase and lowercase names are mixed together.")), ( localize(9521, "Uppercase names are grouped together before lowercase names.")), ( localize(9522, "Lowercase names are grouped together before uppercase names.")), ( localize(9523, "Names are sorted in Unicode order."))],
|
|
207
207
|
"description": ( localize(
|
|
208
|
-
|
|
208
|
+
9524,
|
|
209
209
|
"Controls the lexicographic sorting of file and folder names in the Explorer."
|
|
210
210
|
))
|
|
211
211
|
},
|
|
212
212
|
"explorer.sortOrderReverse": {
|
|
213
213
|
"type": "boolean",
|
|
214
214
|
"description": ( localize(
|
|
215
|
-
|
|
215
|
+
9525,
|
|
216
216
|
"Controls whether the file and folder sort order, should be reversed."
|
|
217
217
|
)),
|
|
218
218
|
"default": false
|
|
219
219
|
},
|
|
220
220
|
"explorer.decorations.colors": {
|
|
221
221
|
type: "boolean",
|
|
222
|
-
description: ( localize(
|
|
222
|
+
description: ( localize(9526, "Controls whether file decorations should use colors.")),
|
|
223
223
|
default: true
|
|
224
224
|
},
|
|
225
225
|
"explorer.decorations.badges": {
|
|
226
226
|
type: "boolean",
|
|
227
|
-
description: ( localize(
|
|
227
|
+
description: ( localize(9527, "Controls whether file decorations should use badges.")),
|
|
228
228
|
default: true
|
|
229
229
|
},
|
|
230
230
|
"explorer.incrementalNaming": {
|
|
231
231
|
"type": "string",
|
|
232
232
|
enum: ["simple", "smart", "disabled"],
|
|
233
233
|
enumDescriptions: [( localize(
|
|
234
|
-
|
|
234
|
+
9528,
|
|
235
235
|
"Appends the word \"copy\" at the end of the duplicated name potentially followed by a number."
|
|
236
236
|
)), ( localize(
|
|
237
|
-
|
|
237
|
+
9529,
|
|
238
238
|
"Adds a number at the end of the duplicated name. If some number is already part of the name, tries to increase that number."
|
|
239
239
|
)), ( localize(
|
|
240
|
-
|
|
240
|
+
9530,
|
|
241
241
|
"Disables incremental naming. If two files with the same name exist you will be prompted to overwrite the existing file."
|
|
242
242
|
))],
|
|
243
243
|
description: ( localize(
|
|
244
|
-
|
|
244
|
+
9531,
|
|
245
245
|
"Controls which naming strategy to use when giving a new name to a duplicated Explorer item on paste."
|
|
246
246
|
)),
|
|
247
247
|
default: "simple"
|
|
@@ -249,7 +249,7 @@ configurationRegistry.registerConfiguration({
|
|
|
249
249
|
"explorer.autoOpenDroppedFile": {
|
|
250
250
|
"type": "boolean",
|
|
251
251
|
"description": ( localize(
|
|
252
|
-
|
|
252
|
+
9532,
|
|
253
253
|
"Controls whether the Explorer should automatically open a file when it is dropped into the explorer"
|
|
254
254
|
)),
|
|
255
255
|
"default": true
|
|
@@ -257,7 +257,7 @@ configurationRegistry.registerConfiguration({
|
|
|
257
257
|
"explorer.compactFolders": {
|
|
258
258
|
"type": "boolean",
|
|
259
259
|
"description": ( localize(
|
|
260
|
-
|
|
260
|
+
9533,
|
|
261
261
|
"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."
|
|
262
262
|
)),
|
|
263
263
|
"default": true
|
|
@@ -265,9 +265,9 @@ configurationRegistry.registerConfiguration({
|
|
|
265
265
|
"explorer.copyRelativePathSeparator": {
|
|
266
266
|
"type": "string",
|
|
267
267
|
"enum": ["/", "\\", "auto"],
|
|
268
|
-
"enumDescriptions": [( localize(
|
|
268
|
+
"enumDescriptions": [( localize(9534, "Use slash as path separation character.")), ( localize(9535, "Use backslash as path separation character.")), ( localize(9536, "Uses operating system specific path separation character."))],
|
|
269
269
|
"description": ( localize(
|
|
270
|
-
|
|
270
|
+
9537,
|
|
271
271
|
"The path separation character used when copying relative file paths."
|
|
272
272
|
)),
|
|
273
273
|
"default": "auto"
|
|
@@ -275,14 +275,14 @@ configurationRegistry.registerConfiguration({
|
|
|
275
275
|
"explorer.copyPathSeparator": {
|
|
276
276
|
"type": "string",
|
|
277
277
|
"enum": ["/", "\\", "auto"],
|
|
278
|
-
"enumDescriptions": [( localize(
|
|
279
|
-
"description": ( localize(
|
|
278
|
+
"enumDescriptions": [( localize(9538, "Use slash as path separation character.")), ( localize(9539, "Use backslash as path separation character.")), ( localize(9540, "Uses operating system specific path separation character."))],
|
|
279
|
+
"description": ( localize(9541, "The path separation character used when copying file paths.")),
|
|
280
280
|
"default": "auto"
|
|
281
281
|
},
|
|
282
282
|
"explorer.excludeGitIgnore": {
|
|
283
283
|
type: "boolean",
|
|
284
284
|
markdownDescription: ( localize(
|
|
285
|
-
|
|
285
|
+
9542,
|
|
286
286
|
"Controls whether entries in .gitignore should be parsed and excluded from the Explorer. Similar to {0}.",
|
|
287
287
|
"`#files.exclude#`"
|
|
288
288
|
)),
|
|
@@ -293,7 +293,7 @@ configurationRegistry.registerConfiguration({
|
|
|
293
293
|
"type": "boolean",
|
|
294
294
|
scope: ConfigurationScope.RESOURCE,
|
|
295
295
|
"markdownDescription": ( localize(
|
|
296
|
-
|
|
296
|
+
9543,
|
|
297
297
|
"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."
|
|
298
298
|
)),
|
|
299
299
|
"default": false
|
|
@@ -301,7 +301,7 @@ configurationRegistry.registerConfiguration({
|
|
|
301
301
|
"explorer.fileNesting.expand": {
|
|
302
302
|
"type": "boolean",
|
|
303
303
|
"markdownDescription": ( localize(
|
|
304
|
-
|
|
304
|
+
9544,
|
|
305
305
|
"Controls whether file nests are automatically expanded. {0} must be set for this to take effect.",
|
|
306
306
|
"`#explorer.fileNesting.enabled#`"
|
|
307
307
|
)),
|
|
@@ -311,14 +311,14 @@ configurationRegistry.registerConfiguration({
|
|
|
311
311
|
"type": "object",
|
|
312
312
|
scope: ConfigurationScope.RESOURCE,
|
|
313
313
|
"markdownDescription": ( localize(
|
|
314
|
-
|
|
314
|
+
9545,
|
|
315
315
|
"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",
|
|
316
316
|
"`#explorer.fileNesting.enabled#`"
|
|
317
317
|
)),
|
|
318
318
|
patternProperties: {
|
|
319
319
|
"^[^*]*\\*?[^*]*$": {
|
|
320
320
|
markdownDescription: ( localize(
|
|
321
|
-
|
|
321
|
+
9546,
|
|
322
322
|
"Each key pattern may contain a single `*` character which will match any string."
|
|
323
323
|
)),
|
|
324
324
|
type: "string",
|