@codingame/monaco-vscode-views-service-override 1.83.2 → 1.83.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +1 -1
  3. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +50 -179
  4. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarActions.js +44 -21
  5. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +12 -12
  6. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +3 -3
  7. package/vscode/src/vs/workbench/browser/parts/compositeBar.js +2 -2
  8. package/vscode/src/vs/workbench/browser/parts/compositePart.js +4 -4
  9. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +24 -18
  10. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +2 -2
  11. package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +2 -6
  12. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +5 -5
  13. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +12 -18
  14. package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +3 -3
  15. package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +3 -3
  16. package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +5 -2
  17. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +16 -8
  18. package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +2 -2
  19. package/vscode/src/vs/workbench/browser/parts/views/treeView.js +20 -28
  20. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +20 -24
  21. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +6 -6
  22. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +4 -4
  23. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +10 -15
  24. package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsOutline.js +4 -2
  25. package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.js +4 -9
  26. package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +1 -1
  27. package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +8 -29
  28. package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +2 -2
  29. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +12 -19
  30. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +17 -55
  31. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +110 -38
  32. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +6 -11
  33. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution2.js +463 -3
  34. package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +5 -11
  35. package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +4 -1
  36. package/vscode/src/vs/workbench/contrib/languageDetection/browser/languageDetection.contribution.js +6 -6
  37. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +31 -23
  38. package/vscode/src/vs/workbench/contrib/outline/browser/outline.contribution.js +37 -76
  39. package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.js +4 -4
  40. package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +5 -21
  41. package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +17 -23
  42. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +62 -117
  43. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +18 -16
  44. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +6 -6
  45. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +4 -4
  46. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +2 -2
  47. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +5 -5
  48. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +2 -2
  49. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +10 -25
  50. package/vscode/src/vs/workbench/services/history/browser/historyService.js +37 -28
  51. package/vscode/src/vs/workbench/services/hover/browser/hoverWidget.js +2 -2
  52. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +2 -2
  53. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +3 -3
  54. package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +2 -2
@@ -2,21 +2,25 @@ 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';
5
6
  import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
6
7
  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';
7
9
  import { FILE_EDITOR_INPUT_ID, BINARY_TEXT_FILE_MODE } from 'vscode/vscode/vs/workbench/contrib/files/common/files';
8
10
  import { TextFileEditorTracker } from './editors/textFileEditorTracker.js';
9
11
  import { TextFileSaveErrorHandler } from './editors/textFileSaveErrorHandler.js';
10
12
  import { FileEditorInput } from './editors/fileEditorInput.js';
11
13
  import { BinaryFileEditor } from './editors/binaryFileEditor.js';
12
14
  import { SyncDescriptor } from 'monaco-editor/esm/vs/platform/instantiation/common/descriptors.js';
13
- import { isWindows } from 'monaco-editor/esm/vs/base/common/platform.js';
15
+ import { isNative, isWeb, isWindows } from 'monaco-editor/esm/vs/base/common/platform.js';
14
16
  import { ExplorerViewletViewsContribution } from 'vscode/vscode/vs/workbench/contrib/files/browser/explorerViewlet';
15
17
  import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
16
18
  import { ILabelService } from 'monaco-editor/esm/vs/platform/label/common/label.js';
17
19
  import { UNDO_REDO_SOURCE } from './explorerService.js';
20
+ import { SUPPORTED_ENCODINGS } from 'vscode/vscode/vs/workbench/services/textfile/common/encoding';
18
21
  import { Schemas } from 'monaco-editor/esm/vs/base/common/network.js';
19
22
  import { WorkspaceWatcher } from './workspaceWatcher.js';
23
+ import { editorConfigurationBaseNode } from 'monaco-editor/esm/vs/editor/common/config/editorConfigurationSchema.js';
20
24
  import { DirtyFilesIndicator } from '../common/dirtyFilesIndicator.js';
21
25
  import { UndoCommand, RedoCommand } from 'monaco-editor/esm/vs/editor/browser/editorExtensions.js';
22
26
  import { IUndoRedoService } from 'monaco-editor/esm/vs/platform/undoRedo/common/undoRedo.js';
@@ -44,10 +48,10 @@ let FileUriLabelContribution = class FileUriLabelContribution {
44
48
  FileUriLabelContribution = ( __decorate([
45
49
  ( __param(0, ILabelService))
46
50
  ], FileUriLabelContribution));
47
- ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(TextFileEditor, TextFileEditor.ID, ( nls.localize('textFileEditor', "Text File Editor"))), [
51
+ ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(TextFileEditor, TextFileEditor.ID, nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'textFileEditor', "Text File Editor")), [
48
52
  ( new SyncDescriptor(FileEditorInput))
49
53
  ]);
50
- ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(BinaryFileEditor, BinaryFileEditor.ID, ( nls.localize('binaryFileEditor', "Binary File Editor"))), [
54
+ ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(BinaryFileEditor, BinaryFileEditor.ID, nls.localizeWithPath('vs/workbench/contrib/files/browser/files.contribution', 'binaryFileEditor', "Binary File Editor")), [
51
55
  ( new SyncDescriptor(FileEditorInput))
52
56
  ]);
53
57
  ( Registry.as(EditorExtensions.EditorFactory)).registerFileEditorFactory({
@@ -66,6 +70,462 @@ FileUriLabelContribution = ( __decorate([
66
70
  ( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(FileUriLabelContribution, 1 );
67
71
  ( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(WorkspaceWatcher, 3 );
68
72
  ( 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
+ }));
69
529
  UndoCommand.addImplementation(110, 'explorer', (accessor) => {
70
530
  const undoRedoService = accessor.get(IUndoRedoService);
71
531
  const explorerService = accessor.get(IExplorerService);
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
- import { localize } from 'monaco-editor/esm/vs/nls.js';
2
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
3
3
  import { Disposable, DisposableStore, dispose } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
4
4
  import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
5
5
  import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
@@ -51,11 +51,8 @@ let WorkspaceWatcher = class WorkspaceWatcher extends Disposable {
51
51
  onDidWatchError(error) {
52
52
  const msg = ( error.toString());
53
53
  if (msg.indexOf('ENOSPC') >= 0) {
54
- this.notificationService.prompt(Severity.Warning, ( localize(
55
- 'enospcError',
56
- "Unable to watch for file changes in this large workspace folder. Please follow the instructions link to resolve this issue."
57
- )), [{
58
- label: ( localize('learnMore', "Instructions")),
54
+ this.notificationService.prompt(Severity.Warning, localizeWithPath('vs/workbench/contrib/files/browser/workspaceWatcher', 'enospcError', "Unable to watch for file changes in this large workspace folder. Please follow the instructions link to resolve this issue."), [{
55
+ label: localizeWithPath('vs/workbench/contrib/files/browser/workspaceWatcher', 'learnMore', "Instructions"),
59
56
  run: () => this.openerService.open(( URI.parse('https://go.microsoft.com/fwlink/?linkid=867693')))
60
57
  }], {
61
58
  sticky: true,
@@ -63,11 +60,8 @@ let WorkspaceWatcher = class WorkspaceWatcher extends Disposable {
63
60
  });
64
61
  }
65
62
  else if (msg.indexOf('EUNKNOWN') >= 0) {
66
- this.notificationService.prompt(Severity.Warning, ( localize(
67
- 'eshutdownError',
68
- "File changes watcher stopped unexpectedly. A reload of the window may enable the watcher again unless the workspace cannot be watched for file changes."
69
- )), [{
70
- label: ( localize('reload', "Reload")),
63
+ this.notificationService.prompt(Severity.Warning, localizeWithPath('vs/workbench/contrib/files/browser/workspaceWatcher', 'eshutdownError', "File changes watcher stopped unexpectedly. A reload of the window may enable the watcher again unless the workspace cannot be watched for file changes."), [{
64
+ label: localizeWithPath('vs/workbench/contrib/files/browser/workspaceWatcher', 'reload', "Reload"),
71
65
  run: () => this.hostService.reload()
72
66
  }], {
73
67
  sticky: true,
@@ -36,7 +36,10 @@ let DirtyFilesIndicator = class DirtyFilesIndicator extends Disposable {
36
36
  const dirtyCount = this.lastKnownDirtyCount = this.workingCopyService.dirtyCount;
37
37
  if (dirtyCount > 0) {
38
38
  this.badgeHandle.value = this.activityService.showViewContainerActivity(VIEWLET_ID, {
39
- badge: ( new NumberBadge(dirtyCount, num => num === 1 ? ( nls.localize('dirtyFile', "1 unsaved file")) : ( nls.localize('dirtyFiles', "{0} unsaved files", dirtyCount)))),
39
+ badge: ( new NumberBadge(
40
+ dirtyCount,
41
+ num => num === 1 ? nls.localizeWithPath('vs/workbench/contrib/files/common/dirtyFilesIndicator', 'dirtyFile', "1 unsaved file") : nls.localizeWithPath('vs/workbench/contrib/files/common/dirtyFilesIndicator', 'dirtyFiles', "{0} unsaved files", dirtyCount)
42
+ )),
40
43
  clazz: 'explorer-viewlet-label'
41
44
  });
42
45
  }
@@ -1,7 +1,7 @@
1
1
  import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
2
  import { DisposableStore } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
3
3
  import { getCodeEditor } from 'monaco-editor/esm/vs/editor/browser/editorBrowser.js';
4
- import { localize } from 'monaco-editor/esm/vs/nls.js';
4
+ import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
5
5
  import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
6
6
  import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
7
7
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
@@ -70,15 +70,15 @@ let LanguageDetectionStatusContribution = class LanguageDetectionStatusContribut
70
70
  const existing = editorModel.getLanguageId();
71
71
  if (lang && lang !== existing && skip[existing] !== lang) {
72
72
  const detectedName = this._languageService.getLanguageName(lang) || lang;
73
- let tooltip = ( localize('status.autoDetectLanguage', "Accept Detected Language: {0}", detectedName));
73
+ let tooltip = localizeWithPath('vs/workbench/contrib/languageDetection/browser/languageDetection.contribution', 'status.autoDetectLanguage', "Accept Detected Language: {0}", detectedName);
74
74
  const keybinding = this._keybindingService.lookupKeybinding(detectLanguageCommandId);
75
75
  const label = keybinding?.getLabel();
76
76
  if (label) {
77
77
  tooltip += ` (${label})`;
78
78
  }
79
79
  const props = {
80
- name: ( localize('langDetection.name', "Language Detection")),
81
- ariaLabel: ( localize('langDetection.aria', "Change to Detected Language: {0}", lang)),
80
+ name: localizeWithPath('vs/workbench/contrib/languageDetection/browser/languageDetection.contribution', 'langDetection.name', "Language Detection"),
81
+ ariaLabel: localizeWithPath('vs/workbench/contrib/languageDetection/browser/languageDetection.contribution', 'langDetection.aria', "Change to Detected Language: {0}", lang),
82
82
  tooltip,
83
83
  command: detectLanguageCommandId,
84
84
  text: '$(lightbulb-autofix)',
@@ -110,7 +110,7 @@ registerAction2(class extends Action2 {
110
110
  constructor() {
111
111
  super({
112
112
  id: detectLanguageCommandId,
113
- title: { value: ( localize('detectlang', 'Detect Language from Content')), original: 'Detect Language from Content' },
113
+ title: { value: localizeWithPath('vs/workbench/contrib/languageDetection/browser/languageDetection.contribution', 'detectlang', 'Detect Language from Content'), original: 'Detect Language from Content' },
114
114
  f1: true,
115
115
  precondition: ( ContextKeyExpr.and(( NOTEBOOK_EDITOR_EDITABLE.toNegated()), EditorContextKeys.editorTextFocus)),
116
116
  keybinding: { primary: 34 | 512 | 1024 , weight: 200 }
@@ -128,7 +128,7 @@ registerAction2(class extends Action2 {
128
128
  editor.getModel()?.setLanguage(lang, LanguageDetectionLanguageEventSource);
129
129
  }
130
130
  else {
131
- notificationService.warn(( localize('noDetection', "Unable to detect editor language")));
131
+ notificationService.warn(localizeWithPath('vs/workbench/contrib/languageDetection/browser/languageDetection.contribution', 'noDetection', "Unable to detect editor language"));
132
132
  }
133
133
  }
134
134
  }