@codingame/monaco-vscode-views-service-override 1.83.4 → 1.83.6
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/index.d.ts +8 -3
- package/index.js +7 -1
- package/l10n.js +8 -0
- package/missing-services.js +2141 -0
- package/package.json +2 -2
- package/services.js +95 -0
- package/views.d.ts +51 -15
- package/views.js +124 -96
- package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +1 -1
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +262 -49
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarActions.js +57 -42
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +51 -11
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +14 -2
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +5 -1
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +18 -3
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +52 -20
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +5 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +6 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +23 -4
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +60 -12
- package/vscode/src/vs/workbench/browser/parts/editor/editorPane.d.ts +112 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +11 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +12 -2
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +5 -4
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +27 -15
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +32 -19
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +58 -18
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +29 -5
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +17 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +55 -10
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsOutline.js +5 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.js +22 -3
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +5 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +40 -8
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +5 -1
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +36 -10
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +111 -16
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +153 -97
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +28 -6
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution2.js +11 -463
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +16 -4
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +10 -4
- package/vscode/src/vs/workbench/contrib/languageDetection/browser/languageDetection.contribution.js +27 -5
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +53 -28
- package/vscode/src/vs/workbench/contrib/outline/browser/outline.contribution.js +180 -36
- package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.js +17 -3
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +29 -5
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +85 -17
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +301 -62
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +48 -16
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +29 -5
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +17 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +6 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +25 -5
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +5 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +49 -9
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +36 -36
- package/vscode/src/vs/workbench/services/hover/browser/hoverWidget.js +6 -1
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +5 -1
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +14 -5
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +5 -1
|
@@ -117,7 +117,13 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
117
117
|
const uri = getResourceForCommand(resource, accessor.get(IListService), editorService);
|
|
118
118
|
if (uri && fileService.hasProvider(uri)) {
|
|
119
119
|
const name = basename(uri);
|
|
120
|
-
const editorLabel = nls.localizeWithPath(
|
|
120
|
+
const editorLabel = ( nls.localizeWithPath(
|
|
121
|
+
'vs/workbench/contrib/files/browser/fileCommands',
|
|
122
|
+
'modifiedLabel',
|
|
123
|
+
"{0} (in file) ↔ {1}",
|
|
124
|
+
name,
|
|
125
|
+
name
|
|
126
|
+
));
|
|
121
127
|
try {
|
|
122
128
|
await TextFileContentProvider.open(uri, COMPARE_WITH_SAVED_SCHEMA, editorLabel, editorService, { pinned: true });
|
|
123
129
|
if (registerEditorListener) {
|
|
@@ -353,11 +359,17 @@ async function doSaveEditors(accessor, editors, options) {
|
|
|
353
359
|
notificationService.notify({
|
|
354
360
|
id: ( editors.map(({ editor }) => hash(editor.resource?.toString()))).join(),
|
|
355
361
|
severity: Severity.Error,
|
|
356
|
-
message: nls.localizeWithPath(
|
|
362
|
+
message: ( nls.localizeWithPath(
|
|
363
|
+
'vs/workbench/contrib/files/browser/fileCommands',
|
|
364
|
+
{ key: 'genericSaveError', comment: ['{0} is the resource that failed to save and {1} the error message'] },
|
|
365
|
+
"Failed to save '{0}': {1}",
|
|
366
|
+
( editors.map(({ editor }) => editor.getName())).join(', '),
|
|
367
|
+
toErrorMessage(error, false)
|
|
368
|
+
)),
|
|
357
369
|
actions: {
|
|
358
370
|
primary: [
|
|
359
|
-
toAction({ id: 'workbench.action.files.saveEditors', label: nls.localizeWithPath('vs/workbench/contrib/files/browser/fileCommands', 'retry', "Retry"), run: () => instantiationService.invokeFunction(accessor => doSaveEditors(accessor, editors, options)) }),
|
|
360
|
-
toAction({ id: 'workbench.action.files.revertEditors', label: nls.localizeWithPath('vs/workbench/contrib/files/browser/fileCommands', 'discard', "Discard"), run: () => editorService.revert(editors) })
|
|
371
|
+
toAction({ id: 'workbench.action.files.saveEditors', label: ( nls.localizeWithPath('vs/workbench/contrib/files/browser/fileCommands', 'retry', "Retry")), run: () => instantiationService.invokeFunction(accessor => doSaveEditors(accessor, editors, options)) }),
|
|
372
|
+
toAction({ id: 'workbench.action.files.revertEditors', label: ( nls.localizeWithPath('vs/workbench/contrib/files/browser/fileCommands', 'discard', "Discard")), run: () => editorService.revert(editors) })
|
|
361
373
|
]
|
|
362
374
|
}
|
|
363
375
|
});
|
|
@@ -447,7 +459,13 @@ CommandsRegistry.registerCommand({
|
|
|
447
459
|
await editorService.revert(editors.filter(({ editor }) => !editor.hasCapability(4 ) ), { force: true });
|
|
448
460
|
}
|
|
449
461
|
catch (error) {
|
|
450
|
-
notificationService.error(nls.localizeWithPath(
|
|
462
|
+
notificationService.error(( nls.localizeWithPath(
|
|
463
|
+
'vs/workbench/contrib/files/browser/fileCommands',
|
|
464
|
+
'genericRevertError',
|
|
465
|
+
"Failed to revert '{0}': {1}",
|
|
466
|
+
( editors.map(({ editor }) => editor.getName())).join(', '),
|
|
467
|
+
toErrorMessage(error, false)
|
|
468
|
+
)));
|
|
451
469
|
}
|
|
452
470
|
}
|
|
453
471
|
});
|
|
@@ -592,7 +610,11 @@ CommandsRegistry.registerCommand({
|
|
|
592
610
|
const editorService = accessor.get(IEditorService);
|
|
593
611
|
const dialogService = accessor.get(IFileDialogService);
|
|
594
612
|
const fileService = accessor.get(IFileService);
|
|
595
|
-
const createFileLocalized = nls.localizeWithPath(
|
|
613
|
+
const createFileLocalized = ( nls.localizeWithPath(
|
|
614
|
+
'vs/workbench/contrib/files/browser/fileCommands',
|
|
615
|
+
'newFileCommand.saveLabel',
|
|
616
|
+
"Create File"
|
|
617
|
+
));
|
|
596
618
|
const defaultFileUri = joinPath(await dialogService.defaultFilePath(), args?.fileName ?? 'Untitled.txt');
|
|
597
619
|
const saveUri = await dialogService.showSaveDialog({ saveLabel: createFileLocalized, title: createFileLocalized, defaultUri: defaultFileUri });
|
|
598
620
|
if (!saveUri) {
|
|
@@ -2,25 +2,21 @@ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.e
|
|
|
2
2
|
import * as nls from 'monaco-editor/esm/vs/nls.js';
|
|
3
3
|
import { sep } from 'monaco-editor/esm/vs/base/common/path.js';
|
|
4
4
|
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
5
|
-
import { Extensions as Extensions$1 } from 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
|
|
6
5
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
7
6
|
import { EditorExtensions } from 'vscode/vscode/vs/workbench/common/editor';
|
|
8
|
-
import { HotExitConfiguration, FILES_EXCLUDE_CONFIG, FILES_ASSOCIATIONS_CONFIG, AutoSaveConfiguration, FILES_READONLY_INCLUDE_CONFIG, FILES_READONLY_EXCLUDE_CONFIG, FILES_READONLY_FROM_PERMISSIONS_CONFIG } from 'monaco-editor/esm/vs/platform/files/common/files.js';
|
|
9
7
|
import { FILE_EDITOR_INPUT_ID, BINARY_TEXT_FILE_MODE } from 'vscode/vscode/vs/workbench/contrib/files/common/files';
|
|
10
8
|
import { TextFileEditorTracker } from './editors/textFileEditorTracker.js';
|
|
11
9
|
import { TextFileSaveErrorHandler } from './editors/textFileSaveErrorHandler.js';
|
|
12
10
|
import { FileEditorInput } from './editors/fileEditorInput.js';
|
|
13
11
|
import { BinaryFileEditor } from './editors/binaryFileEditor.js';
|
|
14
12
|
import { SyncDescriptor } from 'monaco-editor/esm/vs/platform/instantiation/common/descriptors.js';
|
|
15
|
-
import {
|
|
13
|
+
import { isWindows } from 'monaco-editor/esm/vs/base/common/platform.js';
|
|
16
14
|
import { ExplorerViewletViewsContribution } from 'vscode/vscode/vs/workbench/contrib/files/browser/explorerViewlet';
|
|
17
15
|
import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
|
|
18
16
|
import { ILabelService } from 'monaco-editor/esm/vs/platform/label/common/label.js';
|
|
19
17
|
import { UNDO_REDO_SOURCE } from './explorerService.js';
|
|
20
|
-
import { SUPPORTED_ENCODINGS } from 'vscode/vscode/vs/workbench/services/textfile/common/encoding';
|
|
21
18
|
import { Schemas } from 'monaco-editor/esm/vs/base/common/network.js';
|
|
22
19
|
import { WorkspaceWatcher } from './workspaceWatcher.js';
|
|
23
|
-
import { editorConfigurationBaseNode } from 'monaco-editor/esm/vs/editor/common/config/editorConfigurationSchema.js';
|
|
24
20
|
import { DirtyFilesIndicator } from '../common/dirtyFilesIndicator.js';
|
|
25
21
|
import { UndoCommand, RedoCommand } from 'monaco-editor/esm/vs/editor/browser/editorExtensions.js';
|
|
26
22
|
import { IUndoRedoService } from 'monaco-editor/esm/vs/platform/undoRedo/common/undoRedo.js';
|
|
@@ -48,10 +44,18 @@ let FileUriLabelContribution = class FileUriLabelContribution {
|
|
|
48
44
|
FileUriLabelContribution = ( __decorate([
|
|
49
45
|
( __param(0, ILabelService))
|
|
50
46
|
], FileUriLabelContribution));
|
|
51
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(TextFileEditor, TextFileEditor.ID, nls.localizeWithPath(
|
|
47
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(TextFileEditor, TextFileEditor.ID, ( nls.localizeWithPath(
|
|
48
|
+
'vs/workbench/contrib/files/browser/files.contribution',
|
|
49
|
+
'textFileEditor',
|
|
50
|
+
"Text File Editor"
|
|
51
|
+
))), [
|
|
52
52
|
( new SyncDescriptor(FileEditorInput))
|
|
53
53
|
]);
|
|
54
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(BinaryFileEditor, BinaryFileEditor.ID, nls.localizeWithPath(
|
|
54
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(BinaryFileEditor, BinaryFileEditor.ID, ( nls.localizeWithPath(
|
|
55
|
+
'vs/workbench/contrib/files/browser/files.contribution',
|
|
56
|
+
'binaryFileEditor',
|
|
57
|
+
"Binary File Editor"
|
|
58
|
+
))), [
|
|
55
59
|
( new SyncDescriptor(FileEditorInput))
|
|
56
60
|
]);
|
|
57
61
|
( Registry.as(EditorExtensions.EditorFactory)).registerFileEditorFactory({
|
|
@@ -70,462 +74,6 @@ FileUriLabelContribution = ( __decorate([
|
|
|
70
74
|
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(FileUriLabelContribution, 1 );
|
|
71
75
|
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(WorkspaceWatcher, 3 );
|
|
72
76
|
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(DirtyFilesIndicator, 1 );
|
|
73
|
-
const configurationRegistry = ( Registry.as(Extensions$1.Configuration));
|
|
74
|
-
const hotExitConfiguration = isNative ?
|
|
75
|
-
{
|
|
76
|
-
'type': 'string',
|
|
77
|
-
'scope': 1 ,
|
|
78
|
-
'enum': [HotExitConfiguration.OFF, HotExitConfiguration.ON_EXIT, HotExitConfiguration.ON_EXIT_AND_WINDOW_CLOSE],
|
|
79
|
-
'default': HotExitConfiguration.ON_EXIT,
|
|
80
|
-
'markdownEnumDescriptions': [
|
|
81
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'hotExit.off', 'Disable hot exit. A prompt will show when attempting to close a window with editors that have unsaved changes.'),
|
|
82
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'hotExit.onExit', 'Hot exit will be triggered when the last window is closed on Windows/Linux or when the `workbench.action.quit` command is triggered (command palette, keybinding, menu). All windows without folders opened will be restored upon next launch. A list of previously opened windows with unsaved files can be accessed via `File > Open Recent > More...`'),
|
|
83
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'hotExit.onExitAndWindowClose', 'Hot exit will be triggered when the last window is closed on Windows/Linux or when the `workbench.action.quit` command is triggered (command palette, keybinding, menu), and also for any window with a folder opened regardless of whether it\'s the last window. All windows without folders opened will be restored upon next launch. A list of previously opened windows with unsaved files can be accessed via `File > Open Recent > More...`')
|
|
84
|
-
],
|
|
85
|
-
'markdownDescription': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'hotExit', "[Hot Exit](https://aka.ms/vscode-hot-exit) controls whether unsaved files are remembered between sessions, allowing the save prompt when exiting the editor to be skipped.", HotExitConfiguration.ON_EXIT, HotExitConfiguration.ON_EXIT_AND_WINDOW_CLOSE)
|
|
86
|
-
} : {
|
|
87
|
-
'type': 'string',
|
|
88
|
-
'scope': 1 ,
|
|
89
|
-
'enum': [HotExitConfiguration.OFF, HotExitConfiguration.ON_EXIT_AND_WINDOW_CLOSE],
|
|
90
|
-
'default': HotExitConfiguration.ON_EXIT_AND_WINDOW_CLOSE,
|
|
91
|
-
'markdownEnumDescriptions': [
|
|
92
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'hotExit.off', 'Disable hot exit. A prompt will show when attempting to close a window with editors that have unsaved changes.'),
|
|
93
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'hotExit.onExitAndWindowCloseBrowser', 'Hot exit will be triggered when the browser quits or the window or tab is closed.')
|
|
94
|
-
],
|
|
95
|
-
'markdownDescription': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'hotExit', "[Hot Exit](https://aka.ms/vscode-hot-exit) controls whether unsaved files are remembered between sessions, allowing the save prompt when exiting the editor to be skipped.", HotExitConfiguration.ON_EXIT, HotExitConfiguration.ON_EXIT_AND_WINDOW_CLOSE)
|
|
96
|
-
};
|
|
97
|
-
( configurationRegistry.registerConfiguration({
|
|
98
|
-
'id': 'files',
|
|
99
|
-
'order': 9,
|
|
100
|
-
'title': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'filesConfigurationTitle', "Files"),
|
|
101
|
-
'type': 'object',
|
|
102
|
-
'properties': {
|
|
103
|
-
[FILES_EXCLUDE_CONFIG]: {
|
|
104
|
-
'type': 'object',
|
|
105
|
-
'markdownDescription': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'exclude', "Configure [glob patterns](https://aka.ms/vscode-glob-patterns) for excluding files and folders. For example, the File Explorer decides which files and folders to show or hide based on this setting. Refer to the `#search.exclude#` setting to define search-specific excludes. Refer to the `#explorer.excludeGitIgnore#` setting for ignoring files based on your `.gitignore`."),
|
|
106
|
-
'default': {
|
|
107
|
-
...{ '**/.git': true, '**/.svn': true, '**/.hg': true, '**/CVS': true, '**/.DS_Store': true, '**/Thumbs.db': true },
|
|
108
|
-
...(isWeb ? { '**/*.crswap': true } : undefined)
|
|
109
|
-
},
|
|
110
|
-
'scope': 4 ,
|
|
111
|
-
'additionalProperties': {
|
|
112
|
-
'anyOf': [
|
|
113
|
-
{
|
|
114
|
-
'type': 'boolean',
|
|
115
|
-
'enum': [true, false],
|
|
116
|
-
'enumDescriptions': [nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'trueDescription', "Enable the pattern."), nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'falseDescription', "Disable the pattern.")],
|
|
117
|
-
'description': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'files.exclude.boolean', "The glob pattern to match file paths against. Set to true or false to enable or disable the pattern."),
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
'type': 'object',
|
|
121
|
-
'properties': {
|
|
122
|
-
'when': {
|
|
123
|
-
'type': 'string',
|
|
124
|
-
'pattern': '\\w*\\$\\(basename\\)\\w*',
|
|
125
|
-
'default': '$(basename).ext',
|
|
126
|
-
'markdownDescription': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', { key: 'files.exclude.when', comment: ['\\$(basename) should not be translated'] }, "Additional check on the siblings of a matching file. Use \\$(basename) as variable for the matching file name.")
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
]
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
[FILES_ASSOCIATIONS_CONFIG]: {
|
|
134
|
-
'type': 'object',
|
|
135
|
-
'markdownDescription': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'associations', "Configure [glob patterns](https://aka.ms/vscode-glob-patterns) of file associations to languages (for example `\"*.extension\": \"html\"`). Patterns will match on the absolute path of a file if they contain a path separator and will match on the name of the file otherwise. These have precedence over the default associations of the languages installed."),
|
|
136
|
-
'additionalProperties': {
|
|
137
|
-
'type': 'string'
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
'files.encoding': {
|
|
141
|
-
'type': 'string',
|
|
142
|
-
'enum': ( Object.keys(SUPPORTED_ENCODINGS)),
|
|
143
|
-
'default': 'utf8',
|
|
144
|
-
'description': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'encoding', "The default character set encoding to use when reading and writing files. This setting can also be configured per language."),
|
|
145
|
-
'scope': 5 ,
|
|
146
|
-
'enumDescriptions': ( ( Object.keys(SUPPORTED_ENCODINGS)).map(key => SUPPORTED_ENCODINGS[key].labelLong)),
|
|
147
|
-
'enumItemLabels': ( ( Object.keys(SUPPORTED_ENCODINGS)).map(key => SUPPORTED_ENCODINGS[key].labelLong))
|
|
148
|
-
},
|
|
149
|
-
'files.autoGuessEncoding': {
|
|
150
|
-
'type': 'boolean',
|
|
151
|
-
'default': false,
|
|
152
|
-
'markdownDescription': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'autoGuessEncoding', "When enabled, the editor will attempt to guess the character set encoding when opening files. This setting can also be configured per language. Note, this setting is not respected by text search. Only {0} is respected.", '`#files.encoding#`'),
|
|
153
|
-
'scope': 5
|
|
154
|
-
},
|
|
155
|
-
'files.eol': {
|
|
156
|
-
'type': 'string',
|
|
157
|
-
'enum': [
|
|
158
|
-
'\n',
|
|
159
|
-
'\r\n',
|
|
160
|
-
'auto'
|
|
161
|
-
],
|
|
162
|
-
'enumDescriptions': [
|
|
163
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'eol.LF', "LF"),
|
|
164
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'eol.CRLF', "CRLF"),
|
|
165
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'eol.auto', "Uses operating system specific end of line character.")
|
|
166
|
-
],
|
|
167
|
-
'default': 'auto',
|
|
168
|
-
'description': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'eol', "The default end of line character."),
|
|
169
|
-
'scope': 5
|
|
170
|
-
},
|
|
171
|
-
'files.enableTrash': {
|
|
172
|
-
'type': 'boolean',
|
|
173
|
-
'default': true,
|
|
174
|
-
'description': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'useTrash', "Moves files/folders to the OS trash (recycle bin on Windows) when deleting. Disabling this will delete files/folders permanently.")
|
|
175
|
-
},
|
|
176
|
-
'files.trimTrailingWhitespace': {
|
|
177
|
-
'type': 'boolean',
|
|
178
|
-
'default': false,
|
|
179
|
-
'description': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'trimTrailingWhitespace', "When enabled, will trim trailing whitespace when saving a file."),
|
|
180
|
-
'scope': 5
|
|
181
|
-
},
|
|
182
|
-
'files.insertFinalNewline': {
|
|
183
|
-
'type': 'boolean',
|
|
184
|
-
'default': false,
|
|
185
|
-
'description': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'insertFinalNewline', "When enabled, insert a final new line at the end of the file when saving it."),
|
|
186
|
-
'scope': 5
|
|
187
|
-
},
|
|
188
|
-
'files.trimFinalNewlines': {
|
|
189
|
-
'type': 'boolean',
|
|
190
|
-
'default': false,
|
|
191
|
-
'description': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'trimFinalNewlines', "When enabled, will trim all new lines after the final new line at the end of the file when saving it."),
|
|
192
|
-
scope: 5 ,
|
|
193
|
-
},
|
|
194
|
-
'files.autoSave': {
|
|
195
|
-
'type': 'string',
|
|
196
|
-
'enum': [AutoSaveConfiguration.OFF, AutoSaveConfiguration.AFTER_DELAY, AutoSaveConfiguration.ON_FOCUS_CHANGE, AutoSaveConfiguration.ON_WINDOW_CHANGE],
|
|
197
|
-
'markdownEnumDescriptions': [
|
|
198
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', { comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'files.autoSave.off' }, "An editor with changes is never automatically saved."),
|
|
199
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', { comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'files.autoSave.afterDelay' }, "An editor with changes is automatically saved after the configured `#files.autoSaveDelay#`."),
|
|
200
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', { comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'files.autoSave.onFocusChange' }, "An editor with changes is automatically saved when the editor loses focus."),
|
|
201
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', { comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'files.autoSave.onWindowChange' }, "An editor with changes is automatically saved when the window loses focus.")
|
|
202
|
-
],
|
|
203
|
-
'default': isWeb ? AutoSaveConfiguration.AFTER_DELAY : AutoSaveConfiguration.OFF,
|
|
204
|
-
'markdownDescription': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', { comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'autoSave' }, "Controls [auto save](https://code.visualstudio.com/docs/editor/codebasics#_save-auto-save) of editors that have unsaved changes.", AutoSaveConfiguration.OFF, AutoSaveConfiguration.AFTER_DELAY, AutoSaveConfiguration.ON_FOCUS_CHANGE, AutoSaveConfiguration.ON_WINDOW_CHANGE, AutoSaveConfiguration.AFTER_DELAY)
|
|
205
|
-
},
|
|
206
|
-
'files.autoSaveDelay': {
|
|
207
|
-
'type': 'number',
|
|
208
|
-
'default': 1000,
|
|
209
|
-
'minimum': 0,
|
|
210
|
-
'markdownDescription': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', { comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'autoSaveDelay' }, "Controls the delay in milliseconds after which an editor with unsaved changes is saved automatically. Only applies when `#files.autoSave#` is set to `{0}`.", AutoSaveConfiguration.AFTER_DELAY)
|
|
211
|
-
},
|
|
212
|
-
'files.watcherExclude': {
|
|
213
|
-
'type': 'object',
|
|
214
|
-
'patternProperties': {
|
|
215
|
-
'.*': { 'type': 'boolean' }
|
|
216
|
-
},
|
|
217
|
-
'default': { '**/.git/objects/**': true, '**/.git/subtree-cache/**': true, '**/node_modules/*/**': true, '**/.hg/store/**': true },
|
|
218
|
-
'markdownDescription': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'watcherExclude', "Configure paths or [glob patterns](https://aka.ms/vscode-glob-patterns) to exclude from file watching. Paths can either be relative to the watched folder or absolute. Glob patterns are matched relative from the watched folder. When you experience the file watcher process consuming a lot of CPU, make sure to exclude large folders that are of less interest (such as build output folders)."),
|
|
219
|
-
'scope': 4
|
|
220
|
-
},
|
|
221
|
-
'files.watcherInclude': {
|
|
222
|
-
'type': 'array',
|
|
223
|
-
'items': {
|
|
224
|
-
'type': 'string'
|
|
225
|
-
},
|
|
226
|
-
'default': [],
|
|
227
|
-
'description': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'watcherInclude', "Configure extra paths to watch for changes inside the workspace. By default, all workspace folders will be watched recursively, except for folders that are symbolic links. You can explicitly add absolute or relative paths to support watching folders that are symbolic links. Relative paths will be resolved to an absolute path using the currently opened workspace."),
|
|
228
|
-
'scope': 4
|
|
229
|
-
},
|
|
230
|
-
'files.hotExit': hotExitConfiguration,
|
|
231
|
-
'files.defaultLanguage': {
|
|
232
|
-
'type': 'string',
|
|
233
|
-
'markdownDescription': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'defaultLanguage', "The default language identifier that is assigned to new files. If configured to `${activeEditorLanguage}`, will use the language identifier of the currently active text editor if any.")
|
|
234
|
-
},
|
|
235
|
-
[FILES_READONLY_INCLUDE_CONFIG]: {
|
|
236
|
-
'type': 'object',
|
|
237
|
-
'patternProperties': {
|
|
238
|
-
'.*': { 'type': 'boolean' }
|
|
239
|
-
},
|
|
240
|
-
'default': {},
|
|
241
|
-
'markdownDescription': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'filesReadonlyInclude', "Configure paths or [glob patterns](https://aka.ms/vscode-glob-patterns) to mark as read-only. Glob patterns are always evaluated relative to the path of the workspace folder unless they are absolute paths. You can exclude matching paths via the `#files.readonlyExclude#` setting. Files from readonly file system providers will always be read-only independent of this setting."),
|
|
242
|
-
'scope': 4
|
|
243
|
-
},
|
|
244
|
-
[FILES_READONLY_EXCLUDE_CONFIG]: {
|
|
245
|
-
'type': 'object',
|
|
246
|
-
'patternProperties': {
|
|
247
|
-
'.*': { 'type': 'boolean' }
|
|
248
|
-
},
|
|
249
|
-
'default': {},
|
|
250
|
-
'markdownDescription': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'filesReadonlyExclude', "Configure paths or [glob patterns](https://aka.ms/vscode-glob-patterns) to exclude from being marked as read-only if they match as a result of the `#files.readonlyInclude#` setting. Glob patterns are always evaluated relative to the path of the workspace folder unless they are absolute paths. Files from readonly file system providers will always be read-only independent of this setting."),
|
|
251
|
-
'scope': 4
|
|
252
|
-
},
|
|
253
|
-
[FILES_READONLY_FROM_PERMISSIONS_CONFIG]: {
|
|
254
|
-
'type': 'boolean',
|
|
255
|
-
'markdownDescription': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'filesReadonlyFromPermissions', "Marks files as read-only when their file permissions indicate as such. This can be overridden via `#files.readonlyInclude#` and `#files.readonlyExclude#` settings."),
|
|
256
|
-
'default': false
|
|
257
|
-
},
|
|
258
|
-
'files.restoreUndoStack': {
|
|
259
|
-
'type': 'boolean',
|
|
260
|
-
'description': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'files.restoreUndoStack', "Restore the undo stack when a file is reopened."),
|
|
261
|
-
'default': true
|
|
262
|
-
},
|
|
263
|
-
'files.saveConflictResolution': {
|
|
264
|
-
'type': 'string',
|
|
265
|
-
'enum': [
|
|
266
|
-
'askUser',
|
|
267
|
-
'overwriteFileOnDisk'
|
|
268
|
-
],
|
|
269
|
-
'enumDescriptions': [
|
|
270
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'askUser', "Will refuse to save and ask for resolving the save conflict manually."),
|
|
271
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'overwriteFileOnDisk', "Will resolve the save conflict by overwriting the file on disk with the changes in the editor.")
|
|
272
|
-
],
|
|
273
|
-
'description': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'files.saveConflictResolution', "A save conflict can occur when a file is saved to disk that was changed by another program in the meantime. To prevent data loss, the user is asked to compare the changes in the editor with the version on disk. This setting should only be changed if you frequently encounter save conflict errors and may result in data loss if used without caution."),
|
|
274
|
-
'default': 'askUser',
|
|
275
|
-
'scope': 5
|
|
276
|
-
},
|
|
277
|
-
'files.dialog.defaultPath': {
|
|
278
|
-
'type': 'string',
|
|
279
|
-
'pattern': '^((\\/|\\\\\\\\|[a-zA-Z]:\\\\).*)?$',
|
|
280
|
-
'patternErrorMessage': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'defaultPathErrorMessage', "Default path for file dialogs must be an absolute path (e.g. C:\\\\myFolder or /myFolder)."),
|
|
281
|
-
'description': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'fileDialogDefaultPath', "Default path for file dialogs, overriding user's home path. Only used in the absence of a context-specific path, such as most recently opened file or folder."),
|
|
282
|
-
'scope': 2
|
|
283
|
-
},
|
|
284
|
-
'files.simpleDialog.enable': {
|
|
285
|
-
'type': 'boolean',
|
|
286
|
-
'description': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'files.simpleDialog.enable', "Enables the simple file dialog for opening and saving files and folders. The simple file dialog replaces the system file dialog when enabled."),
|
|
287
|
-
'default': false
|
|
288
|
-
},
|
|
289
|
-
'files.participants.timeout': {
|
|
290
|
-
type: 'number',
|
|
291
|
-
default: 60000,
|
|
292
|
-
markdownDescription: nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'files.participants.timeout', "Timeout in milliseconds after which file participants for create, rename, and delete are cancelled. Use `0` to disable participants."),
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
}));
|
|
296
|
-
( configurationRegistry.registerConfiguration({
|
|
297
|
-
...editorConfigurationBaseNode,
|
|
298
|
-
properties: {
|
|
299
|
-
'editor.formatOnSave': {
|
|
300
|
-
'type': 'boolean',
|
|
301
|
-
'description': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'formatOnSave', "Format a file on save. A formatter must be available, the file must not be saved after delay, and the editor must not be shutting down."),
|
|
302
|
-
'scope': 5 ,
|
|
303
|
-
},
|
|
304
|
-
'editor.formatOnSaveMode': {
|
|
305
|
-
'type': 'string',
|
|
306
|
-
'default': 'file',
|
|
307
|
-
'enum': [
|
|
308
|
-
'file',
|
|
309
|
-
'modifications',
|
|
310
|
-
'modificationsIfAvailable'
|
|
311
|
-
],
|
|
312
|
-
'enumDescriptions': [
|
|
313
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', { key: 'everything', comment: ['This is the description of an option'] }, "Format the whole file."),
|
|
314
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', { key: 'modification', comment: ['This is the description of an option'] }, "Format modifications (requires source control)."),
|
|
315
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', { key: 'modificationIfAvailable', comment: ['This is the description of an option'] }, "Will attempt to format modifications only (requires source control). If source control can't be used, then the whole file will be formatted."),
|
|
316
|
-
],
|
|
317
|
-
'markdownDescription': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'formatOnSaveMode', "Controls if format on save formats the whole file or only modifications. Only applies when `#editor.formatOnSave#` is enabled."),
|
|
318
|
-
'scope': 5 ,
|
|
319
|
-
},
|
|
320
|
-
}
|
|
321
|
-
}));
|
|
322
|
-
( configurationRegistry.registerConfiguration({
|
|
323
|
-
'id': 'explorer',
|
|
324
|
-
'order': 10,
|
|
325
|
-
'title': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'explorerConfigurationTitle', "File Explorer"),
|
|
326
|
-
'type': 'object',
|
|
327
|
-
'properties': {
|
|
328
|
-
'explorer.openEditors.visible': {
|
|
329
|
-
'type': 'number',
|
|
330
|
-
'description': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', { key: 'openEditorsVisible', comment: ['Open is an adjective'] }, "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."),
|
|
331
|
-
'default': 9,
|
|
332
|
-
'minimum': 1
|
|
333
|
-
},
|
|
334
|
-
'explorer.openEditors.minVisible': {
|
|
335
|
-
'type': 'number',
|
|
336
|
-
'description': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', { key: 'openEditorsVisibleMin', comment: ['Open is an adjective'] }, "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."),
|
|
337
|
-
'default': 0,
|
|
338
|
-
'minimum': 0
|
|
339
|
-
},
|
|
340
|
-
'explorer.openEditors.sortOrder': {
|
|
341
|
-
'type': 'string',
|
|
342
|
-
'enum': ['editorOrder', 'alphabetical', 'fullPath'],
|
|
343
|
-
'description': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', { key: 'openEditorsSortOrder', comment: ['Open is an adjective'] }, "Controls the sorting order of editors in the Open Editors pane."),
|
|
344
|
-
'enumDescriptions': [
|
|
345
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'sortOrder.editorOrder', 'Editors are ordered in the same order editor tabs are shown.'),
|
|
346
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'sortOrder.alphabetical', 'Editors are ordered alphabetically by tab name inside each editor group.'),
|
|
347
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'sortOrder.fullPath', 'Editors are ordered alphabetically by full path inside each editor group.')
|
|
348
|
-
],
|
|
349
|
-
'default': 'editorOrder'
|
|
350
|
-
},
|
|
351
|
-
'explorer.autoReveal': {
|
|
352
|
-
'type': ['boolean', 'string'],
|
|
353
|
-
'enum': [true, false, 'focusNoScroll'],
|
|
354
|
-
'default': true,
|
|
355
|
-
'enumDescriptions': [
|
|
356
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'autoReveal.on', 'Files will be revealed and selected.'),
|
|
357
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'autoReveal.off', 'Files will not be revealed and selected.'),
|
|
358
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'autoReveal.focusNoScroll', 'Files will not be scrolled into view, but will still be focused.'),
|
|
359
|
-
],
|
|
360
|
-
'description': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'autoReveal', "Controls whether the Explorer should automatically reveal and select files when opening them.")
|
|
361
|
-
},
|
|
362
|
-
'explorer.autoRevealExclude': {
|
|
363
|
-
'type': 'object',
|
|
364
|
-
'markdownDescription': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'autoRevealExclude', "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."),
|
|
365
|
-
'default': { '**/node_modules': true, '**/bower_components': true },
|
|
366
|
-
'additionalProperties': {
|
|
367
|
-
'anyOf': [
|
|
368
|
-
{
|
|
369
|
-
'type': 'boolean',
|
|
370
|
-
'description': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'explorer.autoRevealExclude.boolean', "The glob pattern to match file paths against. Set to true or false to enable or disable the pattern."),
|
|
371
|
-
},
|
|
372
|
-
{
|
|
373
|
-
type: 'object',
|
|
374
|
-
properties: {
|
|
375
|
-
when: {
|
|
376
|
-
type: 'string',
|
|
377
|
-
pattern: '\\w*\\$\\(basename\\)\\w*',
|
|
378
|
-
default: '$(basename).ext',
|
|
379
|
-
description: nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'explorer.autoRevealExclude.when', 'Additional check on the siblings of a matching file. Use $(basename) as variable for the matching file name.')
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
]
|
|
384
|
-
}
|
|
385
|
-
},
|
|
386
|
-
'explorer.enableDragAndDrop': {
|
|
387
|
-
'type': 'boolean',
|
|
388
|
-
'description': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'enableDragAndDrop', "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."),
|
|
389
|
-
'default': true
|
|
390
|
-
},
|
|
391
|
-
'explorer.confirmDragAndDrop': {
|
|
392
|
-
'type': 'boolean',
|
|
393
|
-
'description': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'confirmDragAndDrop', "Controls whether the Explorer should ask for confirmation to move files and folders via drag and drop."),
|
|
394
|
-
'default': true
|
|
395
|
-
},
|
|
396
|
-
'explorer.confirmDelete': {
|
|
397
|
-
'type': 'boolean',
|
|
398
|
-
'description': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'confirmDelete', "Controls whether the Explorer should ask for confirmation when deleting a file via the trash."),
|
|
399
|
-
'default': true
|
|
400
|
-
},
|
|
401
|
-
'explorer.enableUndo': {
|
|
402
|
-
'type': 'boolean',
|
|
403
|
-
'description': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'enableUndo', "Controls whether the Explorer should support undoing file and folder operations."),
|
|
404
|
-
'default': true
|
|
405
|
-
},
|
|
406
|
-
'explorer.confirmUndo': {
|
|
407
|
-
'type': 'string',
|
|
408
|
-
'enum': ["verbose" , "default" , "light" ],
|
|
409
|
-
'description': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'confirmUndo', "Controls whether the Explorer should ask for confirmation when undoing."),
|
|
410
|
-
'default': "default" ,
|
|
411
|
-
'enumDescriptions': [
|
|
412
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'enableUndo.verbose', 'Explorer will prompt before all undo operations.'),
|
|
413
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'enableUndo.default', 'Explorer will prompt before destructive undo operations.'),
|
|
414
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'enableUndo.light', 'Explorer will not prompt before undo operations when focused.'),
|
|
415
|
-
],
|
|
416
|
-
},
|
|
417
|
-
'explorer.expandSingleFolderWorkspaces': {
|
|
418
|
-
'type': 'boolean',
|
|
419
|
-
'description': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'expandSingleFolderWorkspaces', "Controls whether the Explorer should expand multi-root workspaces containing only one folder during initialization"),
|
|
420
|
-
'default': true
|
|
421
|
-
},
|
|
422
|
-
'explorer.sortOrder': {
|
|
423
|
-
'type': 'string',
|
|
424
|
-
'enum': ["default" , "mixed" , "filesFirst" , "type" , "modified" , "foldersNestsFiles" ],
|
|
425
|
-
'default': "default" ,
|
|
426
|
-
'enumDescriptions': [
|
|
427
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'sortOrder.default', 'Files and folders are sorted by their names. Folders are displayed before files.'),
|
|
428
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'sortOrder.mixed', 'Files and folders are sorted by their names. Files are interwoven with folders.'),
|
|
429
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'sortOrder.filesFirst', 'Files and folders are sorted by their names. Files are displayed before folders.'),
|
|
430
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'sortOrder.type', 'Files and folders are grouped by extension type then sorted by their names. Folders are displayed before files.'),
|
|
431
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'sortOrder.modified', 'Files and folders are sorted by last modified date in descending order. Folders are displayed before files.'),
|
|
432
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'sortOrder.foldersNestsFiles', 'Files and folders are sorted by their names. Folders are displayed before files. Files with nested children are displayed before other files.')
|
|
433
|
-
],
|
|
434
|
-
'markdownDescription': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'sortOrder', "Controls the property-based sorting of files and folders in the Explorer. When `#explorer.fileNesting.enabled#` is enabled, also controls sorting of nested files.")
|
|
435
|
-
},
|
|
436
|
-
'explorer.sortOrderLexicographicOptions': {
|
|
437
|
-
'type': 'string',
|
|
438
|
-
'enum': ["default" , "upper" , "lower" , "unicode" ],
|
|
439
|
-
'default': "default" ,
|
|
440
|
-
'enumDescriptions': [
|
|
441
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'sortOrderLexicographicOptions.default', 'Uppercase and lowercase names are mixed together.'),
|
|
442
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'sortOrderLexicographicOptions.upper', 'Uppercase names are grouped together before lowercase names.'),
|
|
443
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'sortOrderLexicographicOptions.lower', 'Lowercase names are grouped together before uppercase names.'),
|
|
444
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'sortOrderLexicographicOptions.unicode', 'Names are sorted in Unicode order.')
|
|
445
|
-
],
|
|
446
|
-
'description': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'sortOrderLexicographicOptions', "Controls the lexicographic sorting of file and folder names in the Explorer.")
|
|
447
|
-
},
|
|
448
|
-
'explorer.decorations.colors': {
|
|
449
|
-
type: 'boolean',
|
|
450
|
-
description: nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'explorer.decorations.colors', "Controls whether file decorations should use colors."),
|
|
451
|
-
default: true
|
|
452
|
-
},
|
|
453
|
-
'explorer.decorations.badges': {
|
|
454
|
-
type: 'boolean',
|
|
455
|
-
description: nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'explorer.decorations.badges', "Controls whether file decorations should use badges."),
|
|
456
|
-
default: true
|
|
457
|
-
},
|
|
458
|
-
'explorer.incrementalNaming': {
|
|
459
|
-
'type': 'string',
|
|
460
|
-
enum: ['simple', 'smart', 'disabled'],
|
|
461
|
-
enumDescriptions: [
|
|
462
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'simple', "Appends the word \"copy\" at the end of the duplicated name potentially followed by a number."),
|
|
463
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'smart', "Adds a number at the end of the duplicated name. If some number is already part of the name, tries to increase that number."),
|
|
464
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'disabled', "Disables incremental naming. If two files with the same name exist you will be prompted to overwrite the existing file.")
|
|
465
|
-
],
|
|
466
|
-
description: nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'explorer.incrementalNaming', "Controls what naming strategy to use when a giving a new name to a duplicated Explorer item on paste."),
|
|
467
|
-
default: 'simple'
|
|
468
|
-
},
|
|
469
|
-
'explorer.compactFolders': {
|
|
470
|
-
'type': 'boolean',
|
|
471
|
-
'description': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'compressSingleChildFolders', "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."),
|
|
472
|
-
'default': true
|
|
473
|
-
},
|
|
474
|
-
'explorer.copyRelativePathSeparator': {
|
|
475
|
-
'type': 'string',
|
|
476
|
-
'enum': [
|
|
477
|
-
'/',
|
|
478
|
-
'\\',
|
|
479
|
-
'auto'
|
|
480
|
-
],
|
|
481
|
-
'enumDescriptions': [
|
|
482
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'copyRelativePathSeparator.slash', "Use slash as path separation character."),
|
|
483
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'copyRelativePathSeparator.backslash', "Use backslash as path separation character."),
|
|
484
|
-
nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'copyRelativePathSeparator.auto', "Uses operating system specific path separation character."),
|
|
485
|
-
],
|
|
486
|
-
'description': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'copyRelativePathSeparator', "The path separation character used when copying relative file paths."),
|
|
487
|
-
'default': 'auto'
|
|
488
|
-
},
|
|
489
|
-
'explorer.excludeGitIgnore': {
|
|
490
|
-
type: 'boolean',
|
|
491
|
-
markdownDescription: nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'excludeGitignore', "Controls whether entries in .gitignore should be parsed and excluded from the Explorer. Similar to {0}.", '`#files.exclude#`'),
|
|
492
|
-
default: false,
|
|
493
|
-
scope: 4
|
|
494
|
-
},
|
|
495
|
-
'explorer.fileNesting.enabled': {
|
|
496
|
-
'type': 'boolean',
|
|
497
|
-
scope: 4 ,
|
|
498
|
-
'markdownDescription': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'fileNestingEnabled', "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."),
|
|
499
|
-
'default': false,
|
|
500
|
-
},
|
|
501
|
-
'explorer.fileNesting.expand': {
|
|
502
|
-
'type': 'boolean',
|
|
503
|
-
'markdownDescription': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'fileNestingExpand', "Controls whether file nests are automatically expanded. {0} must be set for this to take effect.", '`#explorer.fileNesting.enabled#`'),
|
|
504
|
-
'default': true,
|
|
505
|
-
},
|
|
506
|
-
'explorer.fileNesting.patterns': {
|
|
507
|
-
'type': 'object',
|
|
508
|
-
scope: 4 ,
|
|
509
|
-
'markdownDescription': nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'fileNestingPatterns', "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", '`#explorer.fileNesting.enabled#`'),
|
|
510
|
-
patternProperties: {
|
|
511
|
-
'^[^*]*\\*?[^*]*$': {
|
|
512
|
-
markdownDescription: nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'fileNesting.description', "Each key pattern may contain a single `*` character which will match any string."),
|
|
513
|
-
type: 'string',
|
|
514
|
-
pattern: '^([^,*]*\\*?[^,*]*)(, ?[^,*]*\\*?[^,*]*)*$',
|
|
515
|
-
}
|
|
516
|
-
},
|
|
517
|
-
additionalProperties: false,
|
|
518
|
-
'default': {
|
|
519
|
-
'*.ts': '${capture}.js',
|
|
520
|
-
'*.js': '${capture}.js.map, ${capture}.min.js, ${capture}.d.ts',
|
|
521
|
-
'*.jsx': '${capture}.js',
|
|
522
|
-
'*.tsx': '${capture}.ts',
|
|
523
|
-
'tsconfig.json': 'tsconfig.*.json',
|
|
524
|
-
'package.json': 'package-lock.json, yarn.lock, pnpm-lock.yaml',
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
}));
|
|
529
77
|
UndoCommand.addImplementation(110, 'explorer', (accessor) => {
|
|
530
78
|
const undoRedoService = accessor.get(IUndoRedoService);
|
|
531
79
|
const explorerService = accessor.get(IExplorerService);
|