@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.
Files changed (62) hide show
  1. package/index.d.ts +8 -3
  2. package/index.js +7 -1
  3. package/l10n.js +8 -0
  4. package/missing-services.js +2141 -0
  5. package/package.json +2 -2
  6. package/services.js +95 -0
  7. package/views.d.ts +51 -15
  8. package/views.js +124 -96
  9. package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +1 -1
  10. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +262 -49
  11. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarActions.js +57 -42
  12. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +51 -11
  13. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +14 -2
  14. package/vscode/src/vs/workbench/browser/parts/compositeBar.js +5 -1
  15. package/vscode/src/vs/workbench/browser/parts/compositePart.js +18 -3
  16. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +52 -20
  17. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +5 -1
  18. package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +6 -1
  19. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +23 -4
  20. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +60 -12
  21. package/vscode/src/vs/workbench/browser/parts/editor/editorPane.d.ts +112 -0
  22. package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +11 -2
  23. package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +12 -2
  24. package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +5 -4
  25. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +27 -15
  26. package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +1 -1
  27. package/vscode/src/vs/workbench/browser/parts/views/treeView.js +32 -19
  28. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +58 -18
  29. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +29 -5
  30. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +17 -3
  31. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +55 -10
  32. package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsOutline.js +5 -3
  33. package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.js +22 -3
  34. package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +5 -1
  35. package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +40 -8
  36. package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +5 -1
  37. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +36 -10
  38. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +111 -16
  39. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +153 -97
  40. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +28 -6
  41. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution2.js +11 -463
  42. package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +16 -4
  43. package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +10 -4
  44. package/vscode/src/vs/workbench/contrib/languageDetection/browser/languageDetection.contribution.js +27 -5
  45. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +53 -28
  46. package/vscode/src/vs/workbench/contrib/outline/browser/outline.contribution.js +180 -36
  47. package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.js +17 -3
  48. package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +29 -5
  49. package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +85 -17
  50. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +301 -62
  51. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +48 -16
  52. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +29 -5
  53. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +17 -3
  54. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +6 -1
  55. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +25 -5
  56. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +5 -1
  57. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +49 -9
  58. package/vscode/src/vs/workbench/services/history/browser/historyService.js +36 -36
  59. package/vscode/src/vs/workbench/services/hover/browser/hoverWidget.js +6 -1
  60. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +5 -1
  61. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +14 -5
  62. package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +5 -1
@@ -255,13 +255,27 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends peek
255
255
  }
256
256
  this._previewDisposable.add(value);
257
257
  const title = this._direction === "outgoingCalls"
258
- ? localizeWithPath('vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek', 'callFrom', "Calls from '{0}'", element.model.root.name)
259
- : localizeWithPath('vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek', 'callsTo', "Callers of '{0}'", element.model.root.name);
258
+ ? ( localizeWithPath(
259
+ 'vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek',
260
+ 'callFrom',
261
+ "Calls from '{0}'",
262
+ element.model.root.name
263
+ ))
264
+ : ( localizeWithPath(
265
+ 'vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek',
266
+ 'callsTo',
267
+ "Callers of '{0}'",
268
+ element.model.root.name
269
+ ));
260
270
  this.setTitle(title);
261
271
  }
262
272
  showLoading() {
263
273
  this._parent.dataset['state'] = "loading" ;
264
- this.setTitle(localizeWithPath('vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek', 'title.loading', "Loading..."));
274
+ this.setTitle(( localizeWithPath(
275
+ 'vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek',
276
+ 'title.loading',
277
+ "Loading..."
278
+ )));
265
279
  this._show();
266
280
  }
267
281
  showMessage(message) {
@@ -280,8 +294,18 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends peek
280
294
  await this._tree.expand(root.element);
281
295
  if (root.children.length === 0) {
282
296
  this.showMessage(this._direction === "outgoingCalls"
283
- ? localizeWithPath('vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek', 'empt.callsFrom', "No calls from '{0}'", model.root.name)
284
- : localizeWithPath('vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek', 'empt.callsTo', "No callers of '{0}'", model.root.name));
297
+ ? ( localizeWithPath(
298
+ 'vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek',
299
+ 'empt.callsFrom',
300
+ "No calls from '{0}'",
301
+ model.root.name
302
+ ))
303
+ : ( localizeWithPath(
304
+ 'vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek',
305
+ 'empt.callsTo',
306
+ "No callers of '{0}'",
307
+ model.root.name
308
+ )));
285
309
  }
286
310
  else {
287
311
  this._parent.dataset['state'] = "data" ;
@@ -106,14 +106,28 @@ class AccessibilityProvider {
106
106
  this.getDirection = getDirection;
107
107
  }
108
108
  getWidgetAriaLabel() {
109
- return localizeWithPath('vs/workbench/contrib/callHierarchy/browser/callHierarchyTree', 'tree.aria', "Call Hierarchy");
109
+ return ( localizeWithPath(
110
+ 'vs/workbench/contrib/callHierarchy/browser/callHierarchyTree',
111
+ 'tree.aria',
112
+ "Call Hierarchy"
113
+ ));
110
114
  }
111
115
  getAriaLabel(element) {
112
116
  if (this.getDirection() === "outgoingCalls" ) {
113
- return localizeWithPath('vs/workbench/contrib/callHierarchy/browser/callHierarchyTree', 'from', "calls from {0}", element.item.name);
117
+ return ( localizeWithPath(
118
+ 'vs/workbench/contrib/callHierarchy/browser/callHierarchyTree',
119
+ 'from',
120
+ "calls from {0}",
121
+ element.item.name
122
+ ));
114
123
  }
115
124
  else {
116
- return localizeWithPath('vs/workbench/contrib/callHierarchy/browser/callHierarchyTree', 'to', "callers of {0}", element.item.name);
125
+ return ( localizeWithPath(
126
+ 'vs/workbench/contrib/callHierarchy/browser/callHierarchyTree',
127
+ 'to',
128
+ "callers of {0}",
129
+ element.item.name
130
+ ));
117
131
  }
118
132
  }
119
133
  }
@@ -15,11 +15,31 @@ import { defaultInputBoxStyles, defaultToggleStyles } from 'monaco-editor/esm/vs
15
15
  import { Sash } from 'monaco-editor/esm/vs/base/browser/ui/sash/sash.js';
16
16
  import { registerColor } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
17
17
 
18
- const NLS_FIND_INPUT_LABEL = nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget', 'label.find', "Find");
19
- const NLS_FIND_INPUT_PLACEHOLDER = nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget', 'placeholder.find', "Find (\u21C5 for history)");
20
- const NLS_PREVIOUS_MATCH_BTN_LABEL = nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget', 'label.previousMatchButton', "Previous Match");
21
- const NLS_NEXT_MATCH_BTN_LABEL = nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget', 'label.nextMatchButton', "Next Match");
22
- const NLS_CLOSE_BTN_LABEL = nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget', 'label.closeButton', "Close");
18
+ const NLS_FIND_INPUT_LABEL = ( nls.localizeWithPath(
19
+ 'vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget',
20
+ 'label.find',
21
+ "Find"
22
+ ));
23
+ const NLS_FIND_INPUT_PLACEHOLDER = ( nls.localizeWithPath(
24
+ 'vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget',
25
+ 'placeholder.find',
26
+ "Find (\u21C5 for history)"
27
+ ));
28
+ const NLS_PREVIOUS_MATCH_BTN_LABEL = ( nls.localizeWithPath(
29
+ 'vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget',
30
+ 'label.previousMatchButton',
31
+ "Previous Match"
32
+ ));
33
+ const NLS_NEXT_MATCH_BTN_LABEL = ( nls.localizeWithPath(
34
+ 'vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget',
35
+ 'label.nextMatchButton',
36
+ "Next Match"
37
+ ));
38
+ const NLS_CLOSE_BTN_LABEL = ( nls.localizeWithPath(
39
+ 'vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget',
40
+ 'label.closeButton',
41
+ "Close"
42
+ ));
23
43
  const SIMPLE_FIND_WIDGET_INITIAL_WIDTH = 310;
24
44
  const MATCHES_COUNT_WIDTH = 73;
25
45
  class SimpleFindWidget extends Widget {
@@ -323,17 +343,42 @@ class SimpleFindWidget extends Widget {
323
343
  }
324
344
  _announceSearchResults(label, searchString) {
325
345
  if (!searchString) {
326
- return nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget', 'ariaSearchNoInput', "Enter search input");
346
+ return ( nls.localizeWithPath(
347
+ 'vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget',
348
+ 'ariaSearchNoInput',
349
+ "Enter search input"
350
+ ));
327
351
  }
328
352
  if (label === NLS_NO_RESULTS) {
329
353
  return searchString === ''
330
- ? nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget', 'ariaSearchNoResultEmpty', "{0} found", label)
331
- : nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget', 'ariaSearchNoResult', "{0} found for '{1}'", label, searchString);
354
+ ? ( nls.localizeWithPath(
355
+ 'vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget',
356
+ 'ariaSearchNoResultEmpty',
357
+ "{0} found",
358
+ label
359
+ ))
360
+ : ( nls.localizeWithPath(
361
+ 'vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget',
362
+ 'ariaSearchNoResult',
363
+ "{0} found for '{1}'",
364
+ label,
365
+ searchString
366
+ ));
332
367
  }
333
- return nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget', 'ariaSearchNoResultWithLineNumNoCurrentMatch', "{0} found for '{1}'", label, searchString);
368
+ return ( nls.localizeWithPath(
369
+ 'vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget',
370
+ 'ariaSearchNoResultWithLineNumNoCurrentMatch',
371
+ "{0} found for '{1}'",
372
+ label,
373
+ searchString
374
+ ));
334
375
  }
335
376
  }
336
- const simpleFindWidgetSashBorder = registerColor('simpleFindWidget.sashBorder', { dark: '#454545', light: '#C8C8C8', hcDark: '#6FC3DF', hcLight: '#0F4A85' }, nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget', 'simpleFindWidget.sashBorder', 'Border color of the sash border.'));
377
+ const simpleFindWidgetSashBorder = registerColor('simpleFindWidget.sashBorder', { dark: '#454545', light: '#C8C8C8', hcDark: '#6FC3DF', hcLight: '#0F4A85' }, ( nls.localizeWithPath(
378
+ 'vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget',
379
+ 'simpleFindWidget.sashBorder',
380
+ 'Border color of the sash border.'
381
+ )));
337
382
  registerThemingParticipant((theme, collector) => {
338
383
  const resizeBorderBackground = theme.getColor(simpleFindWidgetSashBorder);
339
384
  collector.addRule(`.monaco-workbench .simple-find-part .monaco-sash { background-color: ${resizeBorderBackground}; border-color: ${resizeBorderBackground} }`);
@@ -127,9 +127,11 @@ let DocumentSymbolsOutline = class DocumentSymbolsOutline {
127
127
  multipleSelectionSupport: false,
128
128
  identityProvider: ( new DocumentSymbolIdentityProvider()),
129
129
  keyboardNavigationLabelProvider: ( new DocumentSymbolNavigationLabelProvider()),
130
- accessibilityProvider: ( new DocumentSymbolAccessibilityProvider(
131
- localizeWithPath('vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsOutline', 'document', "Document Symbols")
132
- )),
130
+ accessibilityProvider: ( new DocumentSymbolAccessibilityProvider(( localizeWithPath(
131
+ 'vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsOutline',
132
+ 'document',
133
+ "Document Symbols"
134
+ )))),
133
135
  filter: target === 1
134
136
  ? instantiationService.createInstance(DocumentSymbolFilter, 'outline')
135
137
  : target === 2
@@ -113,7 +113,13 @@ let DocumentSymbolRenderer = class DocumentSymbolRenderer {
113
113
  matches: createMatches(node.filterData),
114
114
  labelEscapeNewLines: true,
115
115
  extraClasses,
116
- title: localizeWithPath('vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree', 'title.template', "{0} ({1})", element.symbol.name, symbolKindNames[element.symbol.kind])
116
+ title: ( localizeWithPath(
117
+ 'vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree',
118
+ 'title.template',
119
+ "{0} ({1})",
120
+ element.symbol.name,
121
+ symbolKindNames[element.symbol.kind]
122
+ ))
117
123
  };
118
124
  if (this._configurationService.getValue("outline.icons" )) {
119
125
  template.iconClass.className = '';
@@ -150,14 +156,27 @@ let DocumentSymbolRenderer = class DocumentSymbolRenderer {
150
156
  dom.show(template.decoration);
151
157
  template.decoration.classList.remove('bubble');
152
158
  template.decoration.innerText = count < 10 ? ( count.toString()) : '+9';
153
- template.decoration.title = count === 1 ? localizeWithPath('vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree', '1.problem', "1 problem in this element") : localizeWithPath('vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree', 'N.problem', "{0} problems in this element", count);
159
+ template.decoration.title = count === 1 ? ( localizeWithPath(
160
+ 'vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree',
161
+ '1.problem',
162
+ "1 problem in this element"
163
+ )) : ( localizeWithPath(
164
+ 'vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree',
165
+ 'N.problem',
166
+ "{0} problems in this element",
167
+ count
168
+ ));
154
169
  template.decoration.style.setProperty('--outline-element-color', cssColor);
155
170
  }
156
171
  else {
157
172
  dom.show(template.decoration);
158
173
  template.decoration.classList.add('bubble');
159
174
  template.decoration.innerText = '\uea71';
160
- template.decoration.title = localizeWithPath('vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree', 'deep.problem', "Contains elements with problems");
175
+ template.decoration.title = ( localizeWithPath(
176
+ 'vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree',
177
+ 'deep.problem',
178
+ "Contains elements with problems"
179
+ ));
161
180
  template.decoration.style.setProperty('--outline-element-color', cssColor);
162
181
  }
163
182
  }
@@ -30,7 +30,11 @@ class ContributedCustomEditors extends Disposable {
30
30
  this.add(( new CustomEditorInfo({
31
31
  id: webviewEditorContribution.viewType,
32
32
  displayName: webviewEditorContribution.displayName,
33
- providerDisplayName: extension.description.isBuiltin ? nls.localizeWithPath('vs/workbench/contrib/customEditor/common/contributedCustomEditors', 'builtinProviderDisplayName', "Built-in") : extension.description.displayName || extension.description.identifier.value,
33
+ providerDisplayName: extension.description.isBuiltin ? ( nls.localizeWithPath(
34
+ 'vs/workbench/contrib/customEditor/common/contributedCustomEditors',
35
+ 'builtinProviderDisplayName',
36
+ "Built-in"
37
+ )) : extension.description.displayName || extension.description.identifier.value,
34
38
  selector: webviewEditorContribution.selector || [],
35
39
  priority: getPriorityFromContribution(webviewEditorContribution, extension.description),
36
40
  })));
@@ -9,7 +9,11 @@ const Fields = ( Object.freeze({
9
9
  priority: 'priority',
10
10
  }));
11
11
  const CustomEditorsContribution = {
12
- description: nls.localizeWithPath('vs/workbench/contrib/customEditor/common/extensionPoint', 'contributes.customEditors', 'Contributed custom editors.'),
12
+ description: ( nls.localizeWithPath(
13
+ 'vs/workbench/contrib/customEditor/common/extensionPoint',
14
+ 'contributes.customEditors',
15
+ 'Contributed custom editors.'
16
+ )),
13
17
  type: 'array',
14
18
  defaultSnippets: [{
15
19
  body: [{
@@ -30,15 +34,27 @@ const CustomEditorsContribution = {
30
34
  properties: {
31
35
  [Fields.viewType]: {
32
36
  type: 'string',
33
- markdownDescription: nls.localizeWithPath('vs/workbench/contrib/customEditor/common/extensionPoint', 'contributes.viewType', 'Identifier for the custom editor. This must be unique across all custom editors, so we recommend including your extension id as part of `viewType`. The `viewType` is used when registering custom editors with `vscode.registerCustomEditorProvider` and in the `onCustomEditor:${id}` [activation event](https://code.visualstudio.com/api/references/activation-events).'),
37
+ markdownDescription: ( nls.localizeWithPath(
38
+ 'vs/workbench/contrib/customEditor/common/extensionPoint',
39
+ 'contributes.viewType',
40
+ 'Identifier for the custom editor. This must be unique across all custom editors, so we recommend including your extension id as part of `viewType`. The `viewType` is used when registering custom editors with `vscode.registerCustomEditorProvider` and in the `onCustomEditor:${id}` [activation event](https://code.visualstudio.com/api/references/activation-events).'
41
+ )),
34
42
  },
35
43
  [Fields.displayName]: {
36
44
  type: 'string',
37
- description: nls.localizeWithPath('vs/workbench/contrib/customEditor/common/extensionPoint', 'contributes.displayName', 'Human readable name of the custom editor. This is displayed to users when selecting which editor to use.'),
45
+ description: ( nls.localizeWithPath(
46
+ 'vs/workbench/contrib/customEditor/common/extensionPoint',
47
+ 'contributes.displayName',
48
+ 'Human readable name of the custom editor. This is displayed to users when selecting which editor to use.'
49
+ )),
38
50
  },
39
51
  [Fields.selector]: {
40
52
  type: 'array',
41
- description: nls.localizeWithPath('vs/workbench/contrib/customEditor/common/extensionPoint', 'contributes.selector', 'Set of globs that the custom editor is enabled for.'),
53
+ description: ( nls.localizeWithPath(
54
+ 'vs/workbench/contrib/customEditor/common/extensionPoint',
55
+ 'contributes.selector',
56
+ 'Set of globs that the custom editor is enabled for.'
57
+ )),
42
58
  items: {
43
59
  type: 'object',
44
60
  defaultSnippets: [{
@@ -49,21 +65,37 @@ const CustomEditorsContribution = {
49
65
  properties: {
50
66
  filenamePattern: {
51
67
  type: 'string',
52
- description: nls.localizeWithPath('vs/workbench/contrib/customEditor/common/extensionPoint', 'contributes.selector.filenamePattern', 'Glob that the custom editor is enabled for.'),
68
+ description: ( nls.localizeWithPath(
69
+ 'vs/workbench/contrib/customEditor/common/extensionPoint',
70
+ 'contributes.selector.filenamePattern',
71
+ 'Glob that the custom editor is enabled for.'
72
+ )),
53
73
  },
54
74
  }
55
75
  }
56
76
  },
57
77
  [Fields.priority]: {
58
78
  type: 'string',
59
- markdownDeprecationMessage: nls.localizeWithPath('vs/workbench/contrib/customEditor/common/extensionPoint', 'contributes.priority', 'Controls if the custom editor is enabled automatically when the user opens a file. This may be overridden by users using the `workbench.editorAssociations` setting.'),
79
+ markdownDeprecationMessage: ( nls.localizeWithPath(
80
+ 'vs/workbench/contrib/customEditor/common/extensionPoint',
81
+ 'contributes.priority',
82
+ 'Controls if the custom editor is enabled automatically when the user opens a file. This may be overridden by users using the `workbench.editorAssociations` setting.'
83
+ )),
60
84
  enum: [
61
85
  "default" ,
62
86
  "option" ,
63
87
  ],
64
88
  markdownEnumDescriptions: [
65
- nls.localizeWithPath('vs/workbench/contrib/customEditor/common/extensionPoint', 'contributes.priority.default', 'The editor is automatically used when the user opens a resource, provided that no other default custom editors are registered for that resource.'),
66
- nls.localizeWithPath('vs/workbench/contrib/customEditor/common/extensionPoint', 'contributes.priority.option', 'The editor is not automatically used when the user opens a resource, but a user can switch to the editor using the `Reopen With` command.'),
89
+ ( nls.localizeWithPath(
90
+ 'vs/workbench/contrib/customEditor/common/extensionPoint',
91
+ 'contributes.priority.default',
92
+ 'The editor is automatically used when the user opens a resource, provided that no other default custom editors are registered for that resource.'
93
+ )),
94
+ ( nls.localizeWithPath(
95
+ 'vs/workbench/contrib/customEditor/common/extensionPoint',
96
+ 'contributes.priority.option',
97
+ 'The editor is not automatically used when the user opens a resource, but a user can switch to the editor using the `Reopen With` command.'
98
+ )),
67
99
  ],
68
100
  default: 'default'
69
101
  }
@@ -61,7 +61,11 @@ let BinaryFileEditor = class BinaryFileEditor extends BaseBinaryResourceEditor {
61
61
  }
62
62
  }
63
63
  getTitle() {
64
- return this.input ? this.input.getName() : localizeWithPath('vs/workbench/contrib/files/browser/editors/binaryFileEditor', 'binaryFileEditor', "Binary File Viewer");
64
+ return this.input ? this.input.getName() : ( localizeWithPath(
65
+ 'vs/workbench/contrib/files/browser/editors/binaryFileEditor',
66
+ 'binaryFileEditor',
67
+ "Binary File Viewer"
68
+ ));
65
69
  }
66
70
  };
67
71
  BinaryFileEditor = BinaryFileEditor_1 = ( __decorate([
@@ -60,7 +60,11 @@ let TextFileEditor = class TextFileEditor extends AbstractTextCodeEditor {
60
60
  if (this.input) {
61
61
  return this.input.getName();
62
62
  }
63
- return localizeWithPath('vs/workbench/contrib/files/browser/editors/textFileEditor', 'textFileEditor', "Text File Editor");
63
+ return ( localizeWithPath(
64
+ 'vs/workbench/contrib/files/browser/editors/textFileEditor',
65
+ 'textFileEditor',
66
+ "Text File Editor"
67
+ ));
64
68
  }
65
69
  get input() {
66
70
  return this._input;
@@ -108,13 +112,21 @@ let TextFileEditor = class TextFileEditor extends AbstractTextCodeEditor {
108
112
  if (error.fileOperationResult === 0 ) {
109
113
  const actions = [];
110
114
  actions.push(toAction({
111
- id: 'workbench.files.action.openFolder', label: localizeWithPath('vs/workbench/contrib/files/browser/editors/textFileEditor', 'openFolder', "Open Folder"), run: async () => {
115
+ id: 'workbench.files.action.openFolder', label: ( localizeWithPath(
116
+ 'vs/workbench/contrib/files/browser/editors/textFileEditor',
117
+ 'openFolder',
118
+ "Open Folder"
119
+ )), run: async () => {
112
120
  return this.hostService.openWindow([{ folderUri: input.resource }], { forceNewWindow: true });
113
121
  }
114
122
  }));
115
123
  if (this.contextService.isInsideWorkspace(input.preferredResource)) {
116
124
  actions.push(toAction({
117
- id: 'workbench.files.action.reveal', label: localizeWithPath('vs/workbench/contrib/files/browser/editors/textFileEditor', 'reveal', "Reveal Folder"), run: async () => {
125
+ id: 'workbench.files.action.reveal', label: ( localizeWithPath(
126
+ 'vs/workbench/contrib/files/browser/editors/textFileEditor',
127
+ 'reveal',
128
+ "Reveal Folder"
129
+ )), run: async () => {
118
130
  await this.paneCompositeService.openPaneComposite(VIEWLET_ID, 0 , true);
119
131
  return this.explorerService.select(input.preferredResource, true);
120
132
  }
@@ -125,20 +137,34 @@ let TextFileEditor = class TextFileEditor extends AbstractTextCodeEditor {
125
137
  if (error.fileOperationResult === 7 && this.group) {
126
138
  let message;
127
139
  if (error instanceof TooLargeFileOperationError) {
128
- message = localizeWithPath('vs/workbench/contrib/files/browser/editors/textFileEditor', 'fileTooLargeForHeapErrorWithSize', "The file is not displayed in the text editor because it is very large ({0}).", ByteSize.formatSize(error.size));
140
+ message = ( localizeWithPath(
141
+ 'vs/workbench/contrib/files/browser/editors/textFileEditor',
142
+ 'fileTooLargeForHeapErrorWithSize',
143
+ "The file is not displayed in the text editor because it is very large ({0}).",
144
+ ByteSize.formatSize(error.size)
145
+ ));
129
146
  }
130
147
  else {
131
- message = localizeWithPath('vs/workbench/contrib/files/browser/editors/textFileEditor', 'fileTooLargeForHeapErrorWithoutSize', "The file is not displayed in the text editor because it is very large.");
148
+ message = ( localizeWithPath(
149
+ 'vs/workbench/contrib/files/browser/editors/textFileEditor',
150
+ 'fileTooLargeForHeapErrorWithoutSize',
151
+ "The file is not displayed in the text editor because it is very large."
152
+ ));
132
153
  }
133
154
  throw createTooLargeFileError(this.group, input, options, message, this.preferencesService);
134
155
  }
135
156
  if (error.fileOperationResult === 1 && (await this.pathService.hasValidBasename(input.preferredResource))) {
136
- const fileNotFoundError = createEditorOpenError(( new FileOperationError(
137
- localizeWithPath('vs/workbench/contrib/files/browser/editors/textFileEditor', 'unavailableResourceErrorEditorText', "The editor could not be opened because the file was not found."),
138
- 1
139
- )), [
157
+ const fileNotFoundError = createEditorOpenError(( new FileOperationError(( localizeWithPath(
158
+ 'vs/workbench/contrib/files/browser/editors/textFileEditor',
159
+ 'unavailableResourceErrorEditorText',
160
+ "The editor could not be opened because the file was not found."
161
+ )), 1 )), [
140
162
  toAction({
141
- id: 'workbench.files.action.createMissingFile', label: localizeWithPath('vs/workbench/contrib/files/browser/editors/textFileEditor', 'createFile', "Create File"), run: async () => {
163
+ id: 'workbench.files.action.createMissingFile', label: ( localizeWithPath(
164
+ 'vs/workbench/contrib/files/browser/editors/textFileEditor',
165
+ 'createFile',
166
+ "Create File"
167
+ )), run: async () => {
142
168
  await this.textFileService.create([{ resource: input.preferredResource }]);
143
169
  return this.editorService.openEditor({
144
170
  resource: input.preferredResource,