@codingame/monaco-vscode-explorer-service-override 15.0.2 → 16.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": "16.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - explorer service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-15626ec7-b165-51e1-8caf-7bcc2ae9b95a-common": "
|
|
19
|
-
"@codingame/monaco-vscode-
|
|
20
|
-
"@codingame/monaco-vscode-
|
|
21
|
-
"@codingame/monaco-vscode-
|
|
22
|
-
"@codingame/monaco-vscode-api": "
|
|
23
|
-
"@codingame/monaco-vscode-b1e8558d-1726-5299-bc75-e43ee6d1a124-common": "
|
|
24
|
-
"@codingame/monaco-vscode-b71b5434-ce96-5581-8993-e8da380bd63f-common": "
|
|
25
|
-
"@codingame/monaco-vscode-c4e2825a-b5b1-5f0e-b547-068c32e06d50-common": "
|
|
26
|
-
"@codingame/monaco-vscode-d481a59e-259c-524e-bee1-76483d75d3a1-common": "
|
|
18
|
+
"@codingame/monaco-vscode-15626ec7-b165-51e1-8caf-7bcc2ae9b95a-common": "16.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-68b3311c-eb96-5711-8f72-f5f4b2e31932-common": "16.0.0",
|
|
20
|
+
"@codingame/monaco-vscode-86d65fc6-30f9-5dca-9501-e249de688591-common": "16.0.0",
|
|
21
|
+
"@codingame/monaco-vscode-9b5a5e82-d649-5455-b4bf-ef90d6afd294-common": "16.0.0",
|
|
22
|
+
"@codingame/monaco-vscode-api": "16.0.0",
|
|
23
|
+
"@codingame/monaco-vscode-b1e8558d-1726-5299-bc75-e43ee6d1a124-common": "16.0.0",
|
|
24
|
+
"@codingame/monaco-vscode-b71b5434-ce96-5581-8993-e8da380bd63f-common": "16.0.0",
|
|
25
|
+
"@codingame/monaco-vscode-c4e2825a-b5b1-5f0e-b547-068c32e06d50-common": "16.0.0",
|
|
26
|
+
"@codingame/monaco-vscode-d481a59e-259c-524e-bee1-76483d75d3a1-common": "16.0.0"
|
|
27
27
|
},
|
|
28
28
|
"main": "index.js",
|
|
29
29
|
"module": "index.js",
|
|
@@ -32,6 +32,9 @@
|
|
|
32
32
|
".": {
|
|
33
33
|
"default": "./index.js"
|
|
34
34
|
},
|
|
35
|
+
"./vscode/*.css": {
|
|
36
|
+
"default": "./vscode/src/*.css"
|
|
37
|
+
},
|
|
35
38
|
"./vscode/*": {
|
|
36
39
|
"types": "./vscode/src/*.d.ts",
|
|
37
40
|
"default": "./vscode/src/*.js"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|
|
2
|
-
import { ISortOrderConfiguration } from "@codingame/monaco-vscode-
|
|
2
|
+
import { ISortOrderConfiguration } from "@codingame/monaco-vscode-68b3311c-eb96-5711-8f72-f5f4b2e31932-common/vscode/vs/workbench/contrib/files/common/files";
|
|
3
3
|
import { ExplorerItem } from "@codingame/monaco-vscode-c4e2825a-b5b1-5f0e-b547-068c32e06d50-common/vscode/vs/workbench/contrib/files/common/explorerModel";
|
|
4
4
|
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
5
5
|
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
@@ -17,7 +17,6 @@ import { ProgressLocation } from "@codingame/monaco-vscode-api/vscode/vs/platfor
|
|
|
17
17
|
import { IProgressService } from "@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress.service";
|
|
18
18
|
import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service";
|
|
19
19
|
import { IFilesConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service";
|
|
20
|
-
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
21
20
|
export declare const UNDO_REDO_SOURCE: UndoRedoSource;
|
|
22
21
|
export declare class ExplorerService implements IExplorerService {
|
|
23
22
|
private fileService;
|
|
@@ -29,7 +28,6 @@ export declare class ExplorerService implements IExplorerService {
|
|
|
29
28
|
private readonly bulkEditService;
|
|
30
29
|
private readonly progressService;
|
|
31
30
|
private readonly filesConfigurationService;
|
|
32
|
-
private readonly telemetryService;
|
|
33
31
|
readonly _serviceBrand: undefined;
|
|
34
32
|
private static readonly EXPLORER_FILE_CHANGES_REACT_DELAY;
|
|
35
33
|
private readonly disposables;
|
|
@@ -41,7 +39,7 @@ export declare class ExplorerService implements IExplorerService {
|
|
|
41
39
|
private onFileChangesScheduler;
|
|
42
40
|
private fileChangeEvents;
|
|
43
41
|
private revealExcludeMatcher;
|
|
44
|
-
constructor(fileService: IFileService, configurationService: IConfigurationService, contextService: IWorkspaceContextService, clipboardService: IClipboardService, editorService: IEditorService, uriIdentityService: IUriIdentityService, bulkEditService: IBulkEditService, progressService: IProgressService, hostService: IHostService, filesConfigurationService: IFilesConfigurationService
|
|
42
|
+
constructor(fileService: IFileService, configurationService: IConfigurationService, contextService: IWorkspaceContextService, clipboardService: IClipboardService, editorService: IEditorService, uriIdentityService: IUriIdentityService, bulkEditService: IBulkEditService, progressService: IProgressService, hostService: IHostService, filesConfigurationService: IFilesConfigurationService);
|
|
45
43
|
get roots(): ExplorerItem[];
|
|
46
44
|
get sortOrderConfiguration(): ISortOrderConfiguration;
|
|
47
45
|
registerView(contextProvider: IExplorerView): void;
|
|
@@ -3,7 +3,7 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
|
|
|
3
3
|
import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
4
4
|
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
|
5
5
|
import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
|
-
import { SortOrder, LexicographicOptions } from '@codingame/monaco-vscode-
|
|
6
|
+
import { SortOrder, LexicographicOptions } from '@codingame/monaco-vscode-68b3311c-eb96-5711-8f72-f5f4b2e31932-common/vscode/vs/workbench/contrib/files/common/files';
|
|
7
7
|
import { ExplorerModel, ExplorerItem } from '@codingame/monaco-vscode-c4e2825a-b5b1-5f0e-b547-068c32e06d50-common/vscode/vs/workbench/contrib/files/common/explorerModel';
|
|
8
8
|
import { FileChangeType, FileOperation } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
|
|
9
9
|
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
@@ -21,14 +21,13 @@ import { RunOnceScheduler } from '@codingame/monaco-vscode-api/vscode/vs/base/co
|
|
|
21
21
|
import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service';
|
|
22
22
|
import { ResourceGlobMatcher } from '@codingame/monaco-vscode-86d65fc6-30f9-5dca-9501-e249de688591-common/vscode/vs/workbench/common/resources';
|
|
23
23
|
import { IFilesConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service';
|
|
24
|
-
import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
25
24
|
|
|
26
25
|
var ExplorerService_1;
|
|
27
26
|
const UNDO_REDO_SOURCE = ( new UndoRedoSource());
|
|
28
27
|
let ExplorerService = class ExplorerService {
|
|
29
28
|
static { ExplorerService_1 = this; }
|
|
30
29
|
static { this.EXPLORER_FILE_CHANGES_REACT_DELAY = 500; }
|
|
31
|
-
constructor(fileService, configurationService, contextService, clipboardService, editorService, uriIdentityService, bulkEditService, progressService, hostService, filesConfigurationService
|
|
30
|
+
constructor(fileService, configurationService, contextService, clipboardService, editorService, uriIdentityService, bulkEditService, progressService, hostService, filesConfigurationService) {
|
|
32
31
|
this.fileService = fileService;
|
|
33
32
|
this.configurationService = configurationService;
|
|
34
33
|
this.contextService = contextService;
|
|
@@ -38,7 +37,6 @@ let ExplorerService = class ExplorerService {
|
|
|
38
37
|
this.bulkEditService = bulkEditService;
|
|
39
38
|
this.progressService = progressService;
|
|
40
39
|
this.filesConfigurationService = filesConfigurationService;
|
|
41
|
-
this.telemetryService = telemetryService;
|
|
42
40
|
this.disposables = ( new DisposableStore());
|
|
43
41
|
this.fileChangeEvents = [];
|
|
44
42
|
this.config = this.configurationService.getValue('explorer');
|
|
@@ -209,20 +207,6 @@ let ExplorerService = class ExplorerService {
|
|
|
209
207
|
await this.view.setEditable(stat, isEditing);
|
|
210
208
|
}
|
|
211
209
|
catch {
|
|
212
|
-
const parent = stat.parent;
|
|
213
|
-
const errorData = {
|
|
214
|
-
parentIsDirectory: parent?.isDirectory,
|
|
215
|
-
isDirectory: stat.isDirectory,
|
|
216
|
-
isReadonly: !!stat.isReadonly,
|
|
217
|
-
parentIsReadonly: !!parent?.isReadonly,
|
|
218
|
-
parentIsExcluded: parent?.isExcluded,
|
|
219
|
-
isExcluded: stat.isExcluded,
|
|
220
|
-
parentIsRoot: parent?.isRoot,
|
|
221
|
-
isRoot: stat.isRoot,
|
|
222
|
-
parentHasNests: parent?.hasNests,
|
|
223
|
-
hasNests: stat.hasNests,
|
|
224
|
-
};
|
|
225
|
-
this.telemetryService.publicLogError2('explorerView.setEditableError', errorData);
|
|
226
210
|
return;
|
|
227
211
|
}
|
|
228
212
|
if (!this.editable && this.fileChangeEvents.length && !this.onFileChangesScheduler.isScheduled()) {
|
|
@@ -427,8 +411,7 @@ ExplorerService = ExplorerService_1 = ( __decorate([
|
|
|
427
411
|
( __param(6, IBulkEditService)),
|
|
428
412
|
( __param(7, IProgressService)),
|
|
429
413
|
( __param(8, IHostService)),
|
|
430
|
-
( __param(9, IFilesConfigurationService))
|
|
431
|
-
( __param(10, ITelemetryService))
|
|
414
|
+
( __param(9, IFilesConfigurationService))
|
|
432
415
|
], ExplorerService));
|
|
433
416
|
function doesFileEventAffect(item, view, events, types) {
|
|
434
417
|
for (const [_name, child] of item.children) {
|
|
@@ -7,7 +7,7 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/ext
|
|
|
7
7
|
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
8
8
|
import { IUndoRedoService } from '@codingame/monaco-vscode-api/vscode/vs/platform/undoRedo/common/undoRedo.service';
|
|
9
9
|
import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
10
|
-
import { LexicographicOptions, SortOrder, UndoConfirmLevel } from '@codingame/monaco-vscode-
|
|
10
|
+
import { LexicographicOptions, SortOrder, UndoConfirmLevel } from '@codingame/monaco-vscode-68b3311c-eb96-5711-8f72-f5f4b2e31932-common/vscode/vs/workbench/contrib/files/common/files';
|
|
11
11
|
import { UNDO_REDO_SOURCE } from './explorerService.js';
|
|
12
12
|
import { ExplorerViewletViewsContribution } from '@codingame/monaco-vscode-b71b5434-ce96-5581-8993-e8da380bd63f-common/vscode/vs/workbench/contrib/files/browser/explorerViewlet';
|
|
13
13
|
import '@codingame/monaco-vscode-15626ec7-b165-51e1-8caf-7bcc2ae9b95a-common/vscode/vs/workbench/contrib/files/browser/files.contribution._configuration';
|
|
@@ -20,13 +20,13 @@ const configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
|
20
20
|
configurationRegistry.registerConfiguration({
|
|
21
21
|
'id': 'explorer',
|
|
22
22
|
'order': 10,
|
|
23
|
-
'title': ( localize(
|
|
23
|
+
'title': ( localize(7006, "File Explorer")),
|
|
24
24
|
'type': 'object',
|
|
25
25
|
'properties': {
|
|
26
26
|
'explorer.openEditors.visible': {
|
|
27
27
|
'type': 'number',
|
|
28
28
|
'description': ( localize(
|
|
29
|
-
|
|
29
|
+
7007,
|
|
30
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."
|
|
31
31
|
)),
|
|
32
32
|
'default': 9,
|
|
@@ -35,7 +35,7 @@ configurationRegistry.registerConfiguration({
|
|
|
35
35
|
'explorer.openEditors.minVisible': {
|
|
36
36
|
'type': 'number',
|
|
37
37
|
'description': ( localize(
|
|
38
|
-
|
|
38
|
+
7008,
|
|
39
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."
|
|
40
40
|
)),
|
|
41
41
|
'default': 0,
|
|
@@ -44,15 +44,15 @@ configurationRegistry.registerConfiguration({
|
|
|
44
44
|
'explorer.openEditors.sortOrder': {
|
|
45
45
|
'type': 'string',
|
|
46
46
|
'enum': ['editorOrder', 'alphabetical', 'fullPath'],
|
|
47
|
-
'description': ( localize(
|
|
47
|
+
'description': ( localize(7009, "Controls the sorting order of editors in the Open Editors pane.")),
|
|
48
48
|
'enumDescriptions': [
|
|
49
|
-
( localize(
|
|
49
|
+
( localize(7010, 'Editors are ordered in the same order editor tabs are shown.')),
|
|
50
50
|
( localize(
|
|
51
|
-
|
|
51
|
+
7011,
|
|
52
52
|
'Editors are ordered alphabetically by tab name inside each editor group.'
|
|
53
53
|
)),
|
|
54
54
|
( localize(
|
|
55
|
-
|
|
55
|
+
7012,
|
|
56
56
|
'Editors are ordered alphabetically by full path inside each editor group.'
|
|
57
57
|
))
|
|
58
58
|
],
|
|
@@ -63,19 +63,19 @@ configurationRegistry.registerConfiguration({
|
|
|
63
63
|
'enum': [true, false, 'focusNoScroll'],
|
|
64
64
|
'default': true,
|
|
65
65
|
'enumDescriptions': [
|
|
66
|
-
( localize(
|
|
67
|
-
( localize(
|
|
68
|
-
( localize(
|
|
66
|
+
( localize(7013, 'Files will be revealed and selected.')),
|
|
67
|
+
( localize(7014, 'Files will not be revealed and selected.')),
|
|
68
|
+
( localize(7015, 'Files will not be scrolled into view, but will still be focused.')),
|
|
69
69
|
],
|
|
70
70
|
'description': ( localize(
|
|
71
|
-
|
|
71
|
+
7016,
|
|
72
72
|
"Controls whether the Explorer should automatically reveal and select files when opening them."
|
|
73
73
|
))
|
|
74
74
|
},
|
|
75
75
|
'explorer.autoRevealExclude': {
|
|
76
76
|
'type': 'object',
|
|
77
77
|
'markdownDescription': ( localize(
|
|
78
|
-
|
|
78
|
+
7017,
|
|
79
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."
|
|
80
80
|
)),
|
|
81
81
|
'default': { '**/node_modules': true, '**/bower_components': true },
|
|
@@ -84,7 +84,7 @@ configurationRegistry.registerConfiguration({
|
|
|
84
84
|
{
|
|
85
85
|
'type': 'boolean',
|
|
86
86
|
'description': ( localize(
|
|
87
|
-
|
|
87
|
+
7018,
|
|
88
88
|
"The glob pattern to match file paths against. Set to true or false to enable or disable the pattern."
|
|
89
89
|
)),
|
|
90
90
|
},
|
|
@@ -96,7 +96,7 @@ configurationRegistry.registerConfiguration({
|
|
|
96
96
|
pattern: '\\w*\\$\\(basename\\)\\w*',
|
|
97
97
|
default: '$(basename).ext',
|
|
98
98
|
description: ( localize(
|
|
99
|
-
|
|
99
|
+
7019,
|
|
100
100
|
'Additional check on the siblings of a matching file. Use $(basename) as variable for the matching file name.'
|
|
101
101
|
))
|
|
102
102
|
}
|
|
@@ -108,7 +108,7 @@ configurationRegistry.registerConfiguration({
|
|
|
108
108
|
'explorer.enableDragAndDrop': {
|
|
109
109
|
'type': 'boolean',
|
|
110
110
|
'description': ( localize(
|
|
111
|
-
|
|
111
|
+
7020,
|
|
112
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."
|
|
113
113
|
)),
|
|
114
114
|
'default': true
|
|
@@ -116,7 +116,7 @@ configurationRegistry.registerConfiguration({
|
|
|
116
116
|
'explorer.confirmDragAndDrop': {
|
|
117
117
|
'type': 'boolean',
|
|
118
118
|
'description': ( localize(
|
|
119
|
-
|
|
119
|
+
7021,
|
|
120
120
|
"Controls whether the Explorer should ask for confirmation to move files and folders via drag and drop."
|
|
121
121
|
)),
|
|
122
122
|
'default': true
|
|
@@ -124,7 +124,7 @@ configurationRegistry.registerConfiguration({
|
|
|
124
124
|
'explorer.confirmPasteNative': {
|
|
125
125
|
'type': 'boolean',
|
|
126
126
|
'description': ( localize(
|
|
127
|
-
|
|
127
|
+
7022,
|
|
128
128
|
"Controls whether the Explorer should ask for confirmation when pasting native files and folders."
|
|
129
129
|
)),
|
|
130
130
|
'default': true
|
|
@@ -132,7 +132,7 @@ configurationRegistry.registerConfiguration({
|
|
|
132
132
|
'explorer.confirmDelete': {
|
|
133
133
|
'type': 'boolean',
|
|
134
134
|
'description': ( localize(
|
|
135
|
-
|
|
135
|
+
7023,
|
|
136
136
|
"Controls whether the Explorer should ask for confirmation when deleting a file via the trash."
|
|
137
137
|
)),
|
|
138
138
|
'default': true
|
|
@@ -140,7 +140,7 @@ configurationRegistry.registerConfiguration({
|
|
|
140
140
|
'explorer.enableUndo': {
|
|
141
141
|
'type': 'boolean',
|
|
142
142
|
'description': ( localize(
|
|
143
|
-
|
|
143
|
+
7024,
|
|
144
144
|
"Controls whether the Explorer should support undoing file and folder operations."
|
|
145
145
|
)),
|
|
146
146
|
'default': true
|
|
@@ -149,20 +149,20 @@ configurationRegistry.registerConfiguration({
|
|
|
149
149
|
'type': 'string',
|
|
150
150
|
'enum': [UndoConfirmLevel.Verbose, UndoConfirmLevel.Default, UndoConfirmLevel.Light],
|
|
151
151
|
'description': ( localize(
|
|
152
|
-
|
|
152
|
+
7025,
|
|
153
153
|
"Controls whether the Explorer should ask for confirmation when undoing."
|
|
154
154
|
)),
|
|
155
155
|
'default': UndoConfirmLevel.Default,
|
|
156
156
|
'enumDescriptions': [
|
|
157
|
-
( localize(
|
|
158
|
-
( localize(
|
|
159
|
-
( localize(
|
|
157
|
+
( localize(7026, 'Explorer will prompt before all undo operations.')),
|
|
158
|
+
( localize(7027, 'Explorer will prompt before destructive undo operations.')),
|
|
159
|
+
( localize(7028, 'Explorer will not prompt before undo operations when focused.')),
|
|
160
160
|
],
|
|
161
161
|
},
|
|
162
162
|
'explorer.expandSingleFolderWorkspaces': {
|
|
163
163
|
'type': 'boolean',
|
|
164
164
|
'description': ( localize(
|
|
165
|
-
|
|
165
|
+
7029,
|
|
166
166
|
"Controls whether the Explorer should expand multi-root workspaces containing only one folder during initialization"
|
|
167
167
|
)),
|
|
168
168
|
'default': true
|
|
@@ -173,32 +173,32 @@ configurationRegistry.registerConfiguration({
|
|
|
173
173
|
'default': SortOrder.Default,
|
|
174
174
|
'enumDescriptions': [
|
|
175
175
|
( localize(
|
|
176
|
-
|
|
176
|
+
7030,
|
|
177
177
|
'Files and folders are sorted by their names. Folders are displayed before files.'
|
|
178
178
|
)),
|
|
179
179
|
( localize(
|
|
180
|
-
|
|
180
|
+
7031,
|
|
181
181
|
'Files and folders are sorted by their names. Files are interwoven with folders.'
|
|
182
182
|
)),
|
|
183
183
|
( localize(
|
|
184
|
-
|
|
184
|
+
7032,
|
|
185
185
|
'Files and folders are sorted by their names. Files are displayed before folders.'
|
|
186
186
|
)),
|
|
187
187
|
( localize(
|
|
188
|
-
|
|
188
|
+
7033,
|
|
189
189
|
'Files and folders are grouped by extension type then sorted by their names. Folders are displayed before files.'
|
|
190
190
|
)),
|
|
191
191
|
( localize(
|
|
192
|
-
|
|
192
|
+
7034,
|
|
193
193
|
'Files and folders are sorted by last modified date in descending order. Folders are displayed before files.'
|
|
194
194
|
)),
|
|
195
195
|
( localize(
|
|
196
|
-
|
|
196
|
+
7035,
|
|
197
197
|
'Files and folders are sorted by their names. Folders are displayed before files. Files with nested children are displayed before other files.'
|
|
198
198
|
))
|
|
199
199
|
],
|
|
200
200
|
'markdownDescription': ( localize(
|
|
201
|
-
|
|
201
|
+
7036,
|
|
202
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."
|
|
203
203
|
))
|
|
204
204
|
},
|
|
@@ -207,32 +207,32 @@ configurationRegistry.registerConfiguration({
|
|
|
207
207
|
'enum': [LexicographicOptions.Default, LexicographicOptions.Upper, LexicographicOptions.Lower, LexicographicOptions.Unicode],
|
|
208
208
|
'default': LexicographicOptions.Default,
|
|
209
209
|
'enumDescriptions': [
|
|
210
|
-
( localize(
|
|
211
|
-
( localize(
|
|
212
|
-
( localize(
|
|
213
|
-
( localize(
|
|
210
|
+
( localize(7037, 'Uppercase and lowercase names are mixed together.')),
|
|
211
|
+
( localize(7038, 'Uppercase names are grouped together before lowercase names.')),
|
|
212
|
+
( localize(7039, 'Lowercase names are grouped together before uppercase names.')),
|
|
213
|
+
( localize(7040, 'Names are sorted in Unicode order.'))
|
|
214
214
|
],
|
|
215
215
|
'description': ( localize(
|
|
216
|
-
|
|
216
|
+
7041,
|
|
217
217
|
"Controls the lexicographic sorting of file and folder names in the Explorer."
|
|
218
218
|
))
|
|
219
219
|
},
|
|
220
220
|
'explorer.sortOrderReverse': {
|
|
221
221
|
'type': 'boolean',
|
|
222
222
|
'description': ( localize(
|
|
223
|
-
|
|
223
|
+
7042,
|
|
224
224
|
"Controls whether the file and folder sort order, should be reversed."
|
|
225
225
|
)),
|
|
226
226
|
'default': false,
|
|
227
227
|
},
|
|
228
228
|
'explorer.decorations.colors': {
|
|
229
229
|
type: 'boolean',
|
|
230
|
-
description: ( localize(
|
|
230
|
+
description: ( localize(7043, "Controls whether file decorations should use colors.")),
|
|
231
231
|
default: true
|
|
232
232
|
},
|
|
233
233
|
'explorer.decorations.badges': {
|
|
234
234
|
type: 'boolean',
|
|
235
|
-
description: ( localize(
|
|
235
|
+
description: ( localize(7044, "Controls whether file decorations should use badges.")),
|
|
236
236
|
default: true
|
|
237
237
|
},
|
|
238
238
|
'explorer.incrementalNaming': {
|
|
@@ -240,20 +240,20 @@ configurationRegistry.registerConfiguration({
|
|
|
240
240
|
enum: ['simple', 'smart', 'disabled'],
|
|
241
241
|
enumDescriptions: [
|
|
242
242
|
( localize(
|
|
243
|
-
|
|
243
|
+
7045,
|
|
244
244
|
"Appends the word \"copy\" at the end of the duplicated name potentially followed by a number."
|
|
245
245
|
)),
|
|
246
246
|
( localize(
|
|
247
|
-
|
|
247
|
+
7046,
|
|
248
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
249
|
)),
|
|
250
250
|
( localize(
|
|
251
|
-
|
|
251
|
+
7047,
|
|
252
252
|
"Disables incremental naming. If two files with the same name exist you will be prompted to overwrite the existing file."
|
|
253
253
|
))
|
|
254
254
|
],
|
|
255
255
|
description: ( localize(
|
|
256
|
-
|
|
256
|
+
7048,
|
|
257
257
|
"Controls which naming strategy to use when giving a new name to a duplicated Explorer item on paste."
|
|
258
258
|
)),
|
|
259
259
|
default: 'simple'
|
|
@@ -261,7 +261,7 @@ configurationRegistry.registerConfiguration({
|
|
|
261
261
|
'explorer.autoOpenDroppedFile': {
|
|
262
262
|
'type': 'boolean',
|
|
263
263
|
'description': ( localize(
|
|
264
|
-
|
|
264
|
+
7049,
|
|
265
265
|
"Controls whether the Explorer should automatically open a file when it is dropped into the explorer"
|
|
266
266
|
)),
|
|
267
267
|
'default': true
|
|
@@ -269,7 +269,7 @@ configurationRegistry.registerConfiguration({
|
|
|
269
269
|
'explorer.compactFolders': {
|
|
270
270
|
'type': 'boolean',
|
|
271
271
|
'description': ( localize(
|
|
272
|
-
|
|
272
|
+
7050,
|
|
273
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."
|
|
274
274
|
)),
|
|
275
275
|
'default': true
|
|
@@ -282,20 +282,35 @@ configurationRegistry.registerConfiguration({
|
|
|
282
282
|
'auto'
|
|
283
283
|
],
|
|
284
284
|
'enumDescriptions': [
|
|
285
|
-
( localize(
|
|
286
|
-
( localize(
|
|
287
|
-
( localize(
|
|
285
|
+
( localize(7051, "Use slash as path separation character.")),
|
|
286
|
+
( localize(7052, "Use backslash as path separation character.")),
|
|
287
|
+
( localize(7053, "Uses operating system specific path separation character.")),
|
|
288
288
|
],
|
|
289
289
|
'description': ( localize(
|
|
290
|
-
|
|
290
|
+
7054,
|
|
291
291
|
"The path separation character used when copying relative file paths."
|
|
292
292
|
)),
|
|
293
293
|
'default': 'auto'
|
|
294
294
|
},
|
|
295
|
+
'explorer.copyPathSeparator': {
|
|
296
|
+
'type': 'string',
|
|
297
|
+
'enum': [
|
|
298
|
+
'/',
|
|
299
|
+
'\\',
|
|
300
|
+
'auto'
|
|
301
|
+
],
|
|
302
|
+
'enumDescriptions': [
|
|
303
|
+
( localize(7055, "Use slash as path separation character.")),
|
|
304
|
+
( localize(7056, "Use backslash as path separation character.")),
|
|
305
|
+
( localize(7057, "Uses operating system specific path separation character.")),
|
|
306
|
+
],
|
|
307
|
+
'description': ( localize(7058, "The path separation character used when copying file paths.")),
|
|
308
|
+
'default': 'auto'
|
|
309
|
+
},
|
|
295
310
|
'explorer.excludeGitIgnore': {
|
|
296
311
|
type: 'boolean',
|
|
297
312
|
markdownDescription: ( localize(
|
|
298
|
-
|
|
313
|
+
7059,
|
|
299
314
|
"Controls whether entries in .gitignore should be parsed and excluded from the Explorer. Similar to {0}.",
|
|
300
315
|
'`#files.exclude#`'
|
|
301
316
|
)),
|
|
@@ -306,7 +321,7 @@ configurationRegistry.registerConfiguration({
|
|
|
306
321
|
'type': 'boolean',
|
|
307
322
|
scope: ConfigurationScope.RESOURCE,
|
|
308
323
|
'markdownDescription': ( localize(
|
|
309
|
-
|
|
324
|
+
7060,
|
|
310
325
|
"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."
|
|
311
326
|
)),
|
|
312
327
|
'default': false,
|
|
@@ -314,7 +329,7 @@ configurationRegistry.registerConfiguration({
|
|
|
314
329
|
'explorer.fileNesting.expand': {
|
|
315
330
|
'type': 'boolean',
|
|
316
331
|
'markdownDescription': ( localize(
|
|
317
|
-
|
|
332
|
+
7061,
|
|
318
333
|
"Controls whether file nests are automatically expanded. {0} must be set for this to take effect.",
|
|
319
334
|
'`#explorer.fileNesting.enabled#`'
|
|
320
335
|
)),
|
|
@@ -324,14 +339,14 @@ configurationRegistry.registerConfiguration({
|
|
|
324
339
|
'type': 'object',
|
|
325
340
|
scope: ConfigurationScope.RESOURCE,
|
|
326
341
|
'markdownDescription': ( localize(
|
|
327
|
-
|
|
342
|
+
7062,
|
|
328
343
|
"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",
|
|
329
344
|
'`#explorer.fileNesting.enabled#`'
|
|
330
345
|
)),
|
|
331
346
|
patternProperties: {
|
|
332
347
|
'^[^*]*\\*?[^*]*$': {
|
|
333
348
|
markdownDescription: ( localize(
|
|
334
|
-
|
|
349
|
+
7063,
|
|
335
350
|
"Each key pattern may contain a single `*` character which will match any string."
|
|
336
351
|
)),
|
|
337
352
|
type: 'string',
|