@codingame/monaco-vscode-view-common-service-override 7.1.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/package.json +3 -3
  2. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +80 -149
  3. package/vscode/src/vs/workbench/browser/actions/listCommands.js +5 -7
  4. package/vscode/src/vs/workbench/browser/actions/navigationActions.js +7 -8
  5. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +24 -26
  6. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +6 -14
  7. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +1 -1
  8. package/vscode/src/vs/workbench/browser/parts/compositeBar.js +2 -3
  9. package/vscode/src/vs/workbench/browser/parts/compositePart.js +4 -5
  10. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +161 -160
  11. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +13 -18
  12. package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +2 -8
  13. package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +3 -0
  14. package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +2 -3
  15. package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +1 -1
  16. package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +3 -4
  17. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +6 -7
  18. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +19 -16
  19. package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +1 -1
  20. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +2 -3
  21. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +2 -3
  22. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +13 -14
  23. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +6 -7
  24. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +4 -5
  25. package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +2 -3
  26. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +2 -3
  27. package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +18 -24
  28. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +9 -10
  29. package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +9 -10
  30. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +29 -31
  31. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +15 -16
  32. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +4 -5
  33. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +14 -15
  34. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +26 -31
  35. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +5 -7
  36. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +12 -13
  37. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +6 -7
  38. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +2 -3
  39. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +2 -7
  40. package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +15 -18
  41. package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +5 -8
  42. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +11 -12
  43. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +6 -7
  44. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +4 -5
  45. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +13 -4
  46. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +6 -7
  47. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +2 -3
  48. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +10 -25
  49. package/vscode/src/vs/workbench/services/history/browser/historyService.js +16 -27
  50. package/vscode/src/vs/workbench/services/progress/browser/progressService.js +8 -9
  51. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +3 -4
  52. package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +2 -3
@@ -5,10 +5,9 @@ import { IconLabel } from 'vscode/vscode/vs/base/browser/ui/iconLabel/iconLabel'
5
5
  import { SymbolTag, SymbolKinds } from 'vscode/vscode/vs/editor/common/languages';
6
6
  import { compare } from 'vscode/vscode/vs/base/common/strings';
7
7
  import { Range } from 'vscode/vscode/vs/editor/common/core/range';
8
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
8
+ import { localize } from 'vscode/vscode/vs/nls';
9
9
  import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
10
10
 
11
- const _moduleId = "vs/workbench/contrib/callHierarchy/browser/callHierarchyTree";
12
11
  class Call {
13
12
  constructor(item, locations, model, parent) {
14
13
  this.item = item;
@@ -129,14 +128,14 @@ class AccessibilityProvider {
129
128
  this.getDirection = getDirection;
130
129
  }
131
130
  getWidgetAriaLabel() {
132
- return ( localizeWithPath(_moduleId, 0, "Call Hierarchy"));
131
+ return ( localize(11188, "Call Hierarchy"));
133
132
  }
134
133
  getAriaLabel(element) {
135
134
  if (this.getDirection() === CallHierarchyDirection.CallsFrom) {
136
- return ( localizeWithPath(_moduleId, 1, "calls from {0}", element.item.name));
135
+ return ( localize(11189, "calls from {0}", element.item.name));
137
136
  }
138
137
  else {
139
- return ( localizeWithPath(_moduleId, 2, "callers of {0}", element.item.name));
138
+ return ( localize(11190, "callers of {0}", element.item.name));
140
139
  }
141
140
  }
142
141
  }
@@ -1,13 +1,12 @@
1
1
  import { Emitter } from 'vscode/vscode/vs/base/common/event';
2
2
  import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
3
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
3
+ import { localize } from 'vscode/vscode/vs/nls';
4
4
  import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
5
5
  import { Memento } from 'vscode/vscode/vs/workbench/common/memento';
6
6
  import { CustomEditorInfo } from './customEditor.js';
7
7
  import { customEditorsExtensionPoint } from './extensionPoint.js';
8
8
  import { RegisteredEditorPriority } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService';
9
9
 
10
- const _moduleId = "vs/workbench/contrib/customEditor/common/contributedCustomEditors";
11
10
  class ContributedCustomEditors extends Disposable {
12
11
  static { this.CUSTOM_EDITORS_STORAGE_ID = 'customEditors'; }
13
12
  static { this.CUSTOM_EDITORS_ENTRY_ID = 'editors'; }
@@ -32,7 +31,7 @@ class ContributedCustomEditors extends Disposable {
32
31
  this.add(( (new CustomEditorInfo({
33
32
  id: webviewEditorContribution.viewType,
34
33
  displayName: webviewEditorContribution.displayName,
35
- providerDisplayName: extension.description.isBuiltin ? ( localizeWithPath(_moduleId, 0, "Built-in")) : extension.description.displayName || extension.description.identifier.value,
34
+ providerDisplayName: extension.description.isBuiltin ? ( localize(9513, "Built-in")) : extension.description.displayName || extension.description.identifier.value,
36
35
  selector: webviewEditorContribution.selector || [],
37
36
  priority: getPriorityFromContribution(webviewEditorContribution, extension.description),
38
37
  }))));
@@ -1,12 +1,11 @@
1
1
  import { distinct } from 'vscode/vscode/vs/base/common/arrays';
2
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
2
+ import { localize } from 'vscode/vscode/vs/nls';
3
3
  import { RawContextKey } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
4
4
  import { globMatchesResource, RegisteredEditorPriority, priorityToRank } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService';
5
5
 
6
- const _moduleId = "vs/workbench/contrib/customEditor/common/customEditor";
7
6
  const CONTEXT_ACTIVE_CUSTOM_EDITOR_ID = ( (new RawContextKey('activeCustomEditorId', '', {
8
7
  type: 'string',
9
- description: ( localizeWithPath(_moduleId, 0, "The viewType of the currently active custom editor.")),
8
+ description: ( localize(9512, "The viewType of the currently active custom editor.")),
10
9
  })));
11
10
  const CONTEXT_FOCUSED_CUSTOM_EDITOR_IS_EDITABLE = ( (new RawContextKey('focusedCustomEditorIsEditable', false)));
12
11
  var CustomEditorPriority;
@@ -1,6 +1,6 @@
1
1
  import { coalesce } from 'vscode/vscode/vs/base/common/arrays';
2
2
  import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
3
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
3
+ import { localize } from 'vscode/vscode/vs/nls';
4
4
  import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
5
5
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
6
6
  import { CustomEditorPriority } from './customEditor.js';
@@ -8,7 +8,6 @@ import { Extensions } from 'vscode/vscode/vs/workbench/services/extensionManagem
8
8
  import { ExtensionsRegistry } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
9
9
  import { languagesExtPoint } from 'vscode/vscode/vs/workbench/services/language/common/languageService';
10
10
 
11
- const _moduleId = "vs/workbench/contrib/customEditor/common/extensionPoint";
12
11
  const Fields = ( (Object.freeze({
13
12
  viewType: 'viewType',
14
13
  displayName: 'displayName',
@@ -16,7 +15,7 @@ const Fields = ( (Object.freeze({
16
15
  priority: 'priority',
17
16
  })));
18
17
  const CustomEditorsContribution = {
19
- description: ( localizeWithPath(_moduleId, 0, 'Contributed custom editors.')),
18
+ description: ( localize(11176, 'Contributed custom editors.')),
20
19
  type: 'array',
21
20
  defaultSnippets: [{
22
21
  body: [{
@@ -37,23 +36,21 @@ const CustomEditorsContribution = {
37
36
  properties: {
38
37
  [Fields.viewType]: {
39
38
  type: 'string',
40
- markdownDescription: ( localizeWithPath(
41
- _moduleId,
42
- 1,
39
+ markdownDescription: ( localize(
40
+ 11177,
43
41
  '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).'
44
42
  )),
45
43
  },
46
44
  [Fields.displayName]: {
47
45
  type: 'string',
48
- description: ( localizeWithPath(
49
- _moduleId,
50
- 2,
46
+ description: ( localize(
47
+ 11178,
51
48
  'Human readable name of the custom editor. This is displayed to users when selecting which editor to use.'
52
49
  )),
53
50
  },
54
51
  [Fields.selector]: {
55
52
  type: 'array',
56
- description: ( localizeWithPath(_moduleId, 3, 'Set of globs that the custom editor is enabled for.')),
53
+ description: ( localize(11179, 'Set of globs that the custom editor is enabled for.')),
57
54
  items: {
58
55
  type: 'object',
59
56
  defaultSnippets: [{
@@ -64,16 +61,15 @@ const CustomEditorsContribution = {
64
61
  properties: {
65
62
  filenamePattern: {
66
63
  type: 'string',
67
- description: ( localizeWithPath(_moduleId, 4, 'Glob that the custom editor is enabled for.')),
64
+ description: ( localize(11180, 'Glob that the custom editor is enabled for.')),
68
65
  },
69
66
  }
70
67
  }
71
68
  },
72
69
  [Fields.priority]: {
73
70
  type: 'string',
74
- markdownDeprecationMessage: ( localizeWithPath(
75
- _moduleId,
76
- 5,
71
+ markdownDeprecationMessage: ( localize(
72
+ 11181,
77
73
  '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.'
78
74
  )),
79
75
  enum: [
@@ -81,14 +77,12 @@ const CustomEditorsContribution = {
81
77
  CustomEditorPriority.option,
82
78
  ],
83
79
  markdownEnumDescriptions: [
84
- ( localizeWithPath(
85
- _moduleId,
86
- 6,
80
+ ( localize(
81
+ 11182,
87
82
  'The editor is automatically used when the user opens a resource, provided that no other default custom editors are registered for that resource.'
88
83
  )),
89
- ( localizeWithPath(
90
- _moduleId,
91
- 7,
84
+ ( localize(
85
+ 11183,
92
86
  '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.'
93
87
  )),
94
88
  ],
@@ -124,9 +118,9 @@ class CustomEditorsDataRenderer extends Disposable {
124
118
  return { data: { headers: [], rows: [] }, dispose: () => { } };
125
119
  }
126
120
  const headers = [
127
- ( localizeWithPath(_moduleId, 8, "View Type")),
128
- ( localizeWithPath(_moduleId, 9, "Priority")),
129
- ( localizeWithPath(_moduleId, 10, "Filename Pattern")),
121
+ ( localize(11184, "View Type")),
122
+ ( localize(11185, "Priority")),
123
+ ( localize(11186, "Filename Pattern")),
130
124
  ];
131
125
  const rows = ( (customEditors
132
126
  .map(customEditor => {
@@ -147,7 +141,7 @@ class CustomEditorsDataRenderer extends Disposable {
147
141
  }
148
142
  ( (Registry.as(Extensions.ExtensionFeaturesRegistry))).registerExtensionFeature({
149
143
  id: 'customEditors',
150
- label: ( localizeWithPath(_moduleId, 11, "Custom Editors")),
144
+ label: ( localize(11187, "Custom Editors")),
151
145
  access: {
152
146
  canToggle: false
153
147
  },
@@ -5,7 +5,7 @@ import { renderLabelWithIcons } from 'vscode/vscode/vs/base/browser/ui/iconLabel
5
5
  import { Disposable, DisposableStore, dispose, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
6
6
  import Severity$1 from 'vscode/vscode/vs/base/common/severity';
7
7
  import { getCodeEditor } from 'vscode/vscode/vs/editor/browser/editorBrowser';
8
- import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
8
+ import { localize, localize2 } from 'vscode/vscode/vs/nls';
9
9
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
10
10
  import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
11
11
  import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
@@ -34,7 +34,6 @@ import { nativeHoverDelegate } from 'vscode/vscode/vs/platform/hover/browser/hov
34
34
  import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover.service';
35
35
 
36
36
  var LanguageStatus_1;
37
- const _moduleId = "vs/workbench/contrib/languageStatus/browser/languageStatus.contribution";
38
37
  class LanguageStatusViewModel {
39
38
  constructor(combined, dedicated) {
40
39
  this.combined = combined;
@@ -180,8 +179,8 @@ let LanguageStatus = class LanguageStatus {
180
179
  isOneBusy = isOneBusy || (!isPinned && status.busy);
181
180
  }
182
181
  const props = {
183
- name: ( localizeWithPath(_moduleId, 0, "Editor Language Status")),
184
- ariaLabel: ( localizeWithPath(_moduleId, 1, "Editor Language Status: {0}", ariaLabels.join(', next: '))),
182
+ name: ( localize(4348, "Editor Language Status")),
183
+ ariaLabel: ( localize(4349, "Editor Language Status: {0}", ariaLabels.join(', next: '))),
185
184
  tooltip: element,
186
185
  command: ShowTooltipCommand,
187
186
  text: isOneBusy ? `${text}\u00A0\u00A0$(sync~spin)` : text,
@@ -281,7 +280,7 @@ let LanguageStatus = class LanguageStatus {
281
280
  store.add(actionBar);
282
281
  let action;
283
282
  if (!isPinned) {
284
- action = ( (new Action('pin', ( localizeWithPath(_moduleId, 2, "Add to Status Bar")), ThemeIcon.asClassName(Codicon.pin), true, () => {
283
+ action = ( (new Action('pin', ( localize(4350, "Add to Status Bar")), ThemeIcon.asClassName(Codicon.pin), true, () => {
285
284
  this._dedicated.add(status.id);
286
285
  this._statusBarService.updateEntryVisibility(status.id, true);
287
286
  this._update();
@@ -289,7 +288,7 @@ let LanguageStatus = class LanguageStatus {
289
288
  })));
290
289
  }
291
290
  else {
292
- action = ( (new Action('unpin', ( localizeWithPath(_moduleId, 3, "Remove from Status Bar")), ThemeIcon.asClassName(Codicon.pinned), true, () => {
291
+ action = ( (new Action('unpin', ( localize(4351, "Remove from Status Bar")), ThemeIcon.asClassName(Codicon.pinned), true, () => {
293
292
  this._dedicated.delete(status.id);
294
293
  this._statusBarService.updateEntryVisibility(status.id, false);
295
294
  this._update();
@@ -331,10 +330,10 @@ let LanguageStatus = class LanguageStatus {
331
330
  }
332
331
  const textValue = typeof status.label === 'string' ? status.label : status.label.value;
333
332
  if (status.detail) {
334
- return { label: ( localizeWithPath(_moduleId, 4, '{0}, {1}', textValue, status.detail)) };
333
+ return { label: ( localize(4352, '{0}, {1}', textValue, status.detail)) };
335
334
  }
336
335
  else {
337
- return { label: ( localizeWithPath(_moduleId, 5, '{0}', textValue)) };
336
+ return { label: ( localize(4353, '{0}', textValue)) };
338
337
  }
339
338
  }
340
339
  static _asStatusbarEntry(item) {
@@ -347,7 +346,7 @@ let LanguageStatus = class LanguageStatus {
347
346
  }
348
347
  const textValue = typeof item.label === 'string' ? item.label : item.label.shortValue;
349
348
  return {
350
- name: ( localizeWithPath(_moduleId, 6, '{0} (Language Status)', item.name)),
349
+ name: ( localize(4354, '{0} (Language Status)', item.name)),
351
350
  text: item.busy ? `${textValue}\u00A0\u00A0$(sync~spin)` : textValue,
352
351
  ariaLabel: LanguageStatus_1._accessibilityInformation(item).label,
353
352
  role: item.accessibilityInfo?.role,
@@ -370,7 +369,7 @@ registerAction2(class extends Action2 {
370
369
  constructor() {
371
370
  super({
372
371
  id: 'editor.inlayHints.Reset',
373
- title: ( localize2WithPath(_moduleId, 7, "Reset Language Status Interaction Counter")),
372
+ title: ( localize2(4355, "Reset Language Status Interaction Counter")),
374
373
  category: Categories.View,
375
374
  f1: true
376
375
  });
@@ -7,13 +7,12 @@ import { ILanguageStatusService } from 'vscode/vscode/vs/workbench/services/lang
7
7
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
8
8
  import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
9
9
  import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
10
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
10
+ import { localize } from 'vscode/vscode/vs/nls';
11
11
  import { FoldingController } from 'vscode/vscode/vs/editor/contrib/folding/browser/folding';
12
12
  import { ColorDetector } from 'vscode/vscode/vs/editor/contrib/colorPicker/browser/colorDetector';
13
13
 
14
- const _moduleId = "vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution";
15
14
  const openSettingsCommand = 'workbench.action.openSettings';
16
- const configureSettingsLabel = ( localizeWithPath(_moduleId, 0, "Configure"));
15
+ const configureSettingsLabel = ( localize(4362, "Configure"));
17
16
  let LimitIndicatorContribution = class LimitIndicatorContribution extends Disposable {
18
17
  constructor(editorService, languageStatusService) {
19
18
  super();
@@ -43,9 +42,9 @@ LimitIndicatorContribution = ( (__decorate([
43
42
  class ColorDecorationAccessor {
44
43
  constructor() {
45
44
  this.id = 'decoratorsLimitInfo';
46
- this.name = ( localizeWithPath(_moduleId, 1, 'Color Decorator Status'));
47
- this.label = ( localizeWithPath(_moduleId, 2, 'Color Decorators'));
48
- this.source = ( localizeWithPath(_moduleId, 3, 'Color Decorators'));
45
+ this.name = ( localize(4363, 'Color Decorator Status'));
46
+ this.label = ( localize(4364, 'Color Decorators'));
47
+ this.source = ( localize(4365, 'Color Decorators'));
49
48
  this.settingsId = 'editor.colorDecoratorsLimit';
50
49
  }
51
50
  getLimitReporter(editor) {
@@ -55,9 +54,9 @@ class ColorDecorationAccessor {
55
54
  class FoldingRangeAccessor {
56
55
  constructor() {
57
56
  this.id = 'foldingLimitInfo';
58
- this.name = ( localizeWithPath(_moduleId, 4, 'Folding Status'));
59
- this.label = ( localizeWithPath(_moduleId, 5, 'Folding Ranges'));
60
- this.source = ( localizeWithPath(_moduleId, 6, 'Folding'));
57
+ this.name = ( localize(4366, 'Folding Status'));
58
+ this.label = ( localize(4367, 'Folding Ranges'));
59
+ this.source = ( localize(4368, 'Folding'));
61
60
  this.settingsId = 'editor.foldingMaximumRegions';
62
61
  }
63
62
  getLimitReporter(editor) {
@@ -99,7 +98,7 @@ class LanguageStatusEntry {
99
98
  name: this.accessor.name,
100
99
  severity: Severity$1.Warning,
101
100
  label: this.accessor.label,
102
- detail: ( localizeWithPath(_moduleId, 7, 'only {0} shown for performance reasons', info.limited)),
101
+ detail: ( localize(4369, 'only {0} shown for performance reasons', info.limited)),
103
102
  command: { id: openSettingsCommand, arguments: [this.accessor.settingsId], title: configureSettingsLabel },
104
103
  accessibilityInfo: undefined,
105
104
  source: this.accessor.source,
@@ -1,7 +1,7 @@
1
1
  import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
2
2
  import { basename } from 'vscode/vscode/vs/base/common/resources';
3
3
  import { URI } from 'vscode/vscode/vs/base/common/uri';
4
- import { localize2WithPath, localizeWithPath } from 'vscode/vscode/vs/nls';
4
+ import { localize2, localize } from 'vscode/vscode/vs/nls';
5
5
  import { Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
6
6
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
7
7
  import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
@@ -13,7 +13,6 @@ import { MergeEditor } from '../view/mergeEditor.js';
13
13
  import { ctxMergeEditorLayout, ctxIsMergeEditor, ctxMergeEditorShowNonConflictingChanges, ctxMergeEditorShowBase, ctxMergeEditorShowBaseAtTop, StorageCloseWithConflicts } from 'vscode/vscode/vs/workbench/contrib/mergeEditor/common/mergeEditor';
14
14
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
15
15
 
16
- const _moduleId = "vs/workbench/contrib/mergeEditor/browser/commands/commands";
17
16
  class MergeEditorAction extends Action2 {
18
17
  constructor(desc) {
19
18
  super(desc);
@@ -56,7 +55,7 @@ class OpenMergeEditor extends Action2 {
56
55
  constructor() {
57
56
  super({
58
57
  id: '_open.mergeEditor',
59
- title: ( localize2WithPath(_moduleId, 0, 'Open Merge Editor')),
58
+ title: ( localize2(9741, 'Open Merge Editor')),
60
59
  });
61
60
  }
62
61
  run(accessor, ...args) {
@@ -135,7 +134,7 @@ class SetMixedLayout extends Action2 {
135
134
  constructor() {
136
135
  super({
137
136
  id: 'merge.mixedLayout',
138
- title: ( localize2WithPath(_moduleId, 1, "Mixed Layout")),
137
+ title: ( localize2(9742, "Mixed Layout")),
139
138
  toggled: ( (ctxMergeEditorLayout.isEqualTo('mixed'))),
140
139
  menu: [
141
140
  {
@@ -159,7 +158,7 @@ class SetColumnLayout extends Action2 {
159
158
  constructor() {
160
159
  super({
161
160
  id: 'merge.columnLayout',
162
- title: ( localize2WithPath(_moduleId, 2, 'Column Layout')),
161
+ title: ( localize2(9743, 'Column Layout')),
163
162
  toggled: ( (ctxMergeEditorLayout.isEqualTo('columns'))),
164
163
  menu: [{
165
164
  id: MenuId.EditorTitle,
@@ -181,7 +180,7 @@ class ShowNonConflictingChanges extends Action2 {
181
180
  constructor() {
182
181
  super({
183
182
  id: 'merge.showNonConflictingChanges',
184
- title: ( localize2WithPath(_moduleId, 3, "Show Non-Conflicting Changes")),
183
+ title: ( localize2(9744, "Show Non-Conflicting Changes")),
185
184
  toggled: ( (ctxMergeEditorShowNonConflictingChanges.isEqualTo(true))),
186
185
  menu: [
187
186
  {
@@ -205,7 +204,7 @@ class ShowHideBase extends Action2 {
205
204
  constructor() {
206
205
  super({
207
206
  id: 'merge.showBase',
208
- title: ( localize2WithPath(_moduleId, 4, "Show Base")),
207
+ title: ( localize2(9745, "Show Base")),
209
208
  toggled: ( (ctxMergeEditorShowBase.isEqualTo(true))),
210
209
  menu: [
211
210
  {
@@ -231,7 +230,7 @@ class ShowHideTopBase extends Action2 {
231
230
  constructor() {
232
231
  super({
233
232
  id: 'merge.showBaseTop',
234
- title: ( localize2WithPath(_moduleId, 5, "Show Base Top")),
233
+ title: ( localize2(9746, "Show Base Top")),
235
234
  toggled: ( (ContextKeyExpr.and(ctxMergeEditorShowBase, ctxMergeEditorShowBaseAtTop))),
236
235
  menu: [
237
236
  {
@@ -254,7 +253,7 @@ class ShowHideCenterBase extends Action2 {
254
253
  constructor() {
255
254
  super({
256
255
  id: 'merge.showBaseCenter',
257
- title: ( localize2WithPath(_moduleId, 6, "Show Base Center")),
256
+ title: ( localize2(9747, "Show Base Center")),
258
257
  toggled: ( (ContextKeyExpr.and(
259
258
  ctxMergeEditorShowBase,
260
259
  (ctxMergeEditorShowBaseAtTop.negate())
@@ -276,13 +275,13 @@ class ShowHideCenterBase extends Action2 {
276
275
  }
277
276
  }
278
277
  }
279
- const mergeEditorCategory = ( localize2WithPath(_moduleId, 7, "Merge Editor"));
278
+ const mergeEditorCategory = ( localize2(9748, "Merge Editor"));
280
279
  class OpenResultResource extends MergeEditorAction {
281
280
  constructor() {
282
281
  super({
283
282
  id: 'merge.openResult',
284
283
  icon: Codicon.goToFile,
285
- title: ( localize2WithPath(_moduleId, 8, "Open File")),
284
+ title: ( localize2(9749, "Open File")),
286
285
  category: mergeEditorCategory,
287
286
  menu: [{
288
287
  id: MenuId.EditorTitle,
@@ -303,7 +302,7 @@ class GoToNextUnhandledConflict extends MergeEditorAction {
303
302
  super({
304
303
  id: 'merge.goToNextUnhandledConflict',
305
304
  category: mergeEditorCategory,
306
- title: ( localize2WithPath(_moduleId, 9, "Go to Next Unhandled Conflict")),
305
+ title: ( localize2(9750, "Go to Next Unhandled Conflict")),
307
306
  icon: Codicon.arrowDown,
308
307
  menu: [
309
308
  {
@@ -327,7 +326,7 @@ class GoToPreviousUnhandledConflict extends MergeEditorAction {
327
326
  super({
328
327
  id: 'merge.goToPreviousUnhandledConflict',
329
328
  category: mergeEditorCategory,
330
- title: ( localize2WithPath(_moduleId, 10, "Go to Previous Unhandled Conflict")),
329
+ title: ( localize2(9751, "Go to Previous Unhandled Conflict")),
331
330
  icon: Codicon.arrowUp,
332
331
  menu: [
333
332
  {
@@ -351,7 +350,7 @@ class ToggleActiveConflictInput1 extends MergeEditorAction {
351
350
  super({
352
351
  id: 'merge.toggleActiveConflictInput1',
353
352
  category: mergeEditorCategory,
354
- title: ( localize2WithPath(_moduleId, 11, "Toggle Current Conflict from Left")),
353
+ title: ( localize2(9752, "Toggle Current Conflict from Left")),
355
354
  f1: true,
356
355
  precondition: ctxIsMergeEditor,
357
356
  });
@@ -365,7 +364,7 @@ class ToggleActiveConflictInput2 extends MergeEditorAction {
365
364
  super({
366
365
  id: 'merge.toggleActiveConflictInput2',
367
366
  category: mergeEditorCategory,
368
- title: ( localize2WithPath(_moduleId, 12, "Toggle Current Conflict from Right")),
367
+ title: ( localize2(9753, "Toggle Current Conflict from Right")),
369
368
  f1: true,
370
369
  precondition: ctxIsMergeEditor,
371
370
  });
@@ -379,8 +378,8 @@ class CompareInput1WithBaseCommand extends MergeEditorAction {
379
378
  super({
380
379
  id: 'mergeEditor.compareInput1WithBase',
381
380
  category: mergeEditorCategory,
382
- title: ( localize2WithPath(_moduleId, 13, "Compare Input 1 With Base")),
383
- shortTitle: ( localizeWithPath(_moduleId, 14, 'Compare With Base')),
381
+ title: ( localize2(9754, "Compare Input 1 With Base")),
382
+ shortTitle: ( localize(9755, 'Compare With Base')),
384
383
  f1: true,
385
384
  precondition: ctxIsMergeEditor,
386
385
  menu: { id: MenuId.MergeInput1Toolbar, group: 'primary' },
@@ -397,8 +396,8 @@ class CompareInput2WithBaseCommand extends MergeEditorAction {
397
396
  super({
398
397
  id: 'mergeEditor.compareInput2WithBase',
399
398
  category: mergeEditorCategory,
400
- title: ( localize2WithPath(_moduleId, 15, "Compare Input 2 With Base")),
401
- shortTitle: ( localizeWithPath(_moduleId, 14, 'Compare With Base')),
399
+ title: ( localize2(9756, "Compare Input 2 With Base")),
400
+ shortTitle: ( localize(9756, 'Compare With Base')),
402
401
  f1: true,
403
402
  precondition: ctxIsMergeEditor,
404
403
  menu: { id: MenuId.MergeInput2Toolbar, group: 'primary' },
@@ -434,7 +433,7 @@ class OpenBaseFile extends MergeEditorAction {
434
433
  super({
435
434
  id: 'merge.openBaseEditor',
436
435
  category: mergeEditorCategory,
437
- title: ( localize2WithPath(_moduleId, 16, "Open Base File")),
436
+ title: ( localize2(9757, "Open Base File")),
438
437
  f1: true,
439
438
  precondition: ctxIsMergeEditor,
440
439
  });
@@ -449,7 +448,7 @@ class AcceptAllInput1 extends MergeEditorAction {
449
448
  super({
450
449
  id: 'merge.acceptAllInput1',
451
450
  category: mergeEditorCategory,
452
- title: ( localize2WithPath(_moduleId, 17, "Accept All Changes from Left")),
451
+ title: ( localize2(9758, "Accept All Changes from Left")),
453
452
  f1: true,
454
453
  precondition: ctxIsMergeEditor,
455
454
  menu: { id: MenuId.MergeInput1Toolbar, group: 'primary' },
@@ -465,7 +464,7 @@ class AcceptAllInput2 extends MergeEditorAction {
465
464
  super({
466
465
  id: 'merge.acceptAllInput2',
467
466
  category: mergeEditorCategory,
468
- title: ( localize2WithPath(_moduleId, 18, "Accept All Changes from Right")),
467
+ title: ( localize2(9759, "Accept All Changes from Right")),
469
468
  f1: true,
470
469
  precondition: ctxIsMergeEditor,
471
470
  menu: { id: MenuId.MergeInput2Toolbar, group: 'primary' },
@@ -481,8 +480,8 @@ class ResetToBaseAndAutoMergeCommand extends MergeEditorAction {
481
480
  super({
482
481
  id: 'mergeEditor.resetResultToBaseAndAutoMerge',
483
482
  category: mergeEditorCategory,
484
- title: ( localize2WithPath(_moduleId, 19, "Reset Result")),
485
- shortTitle: ( localizeWithPath(_moduleId, 20, 'Reset')),
483
+ title: ( localize2(9760, "Reset Result")),
484
+ shortTitle: ( localize(9761, 'Reset')),
486
485
  f1: true,
487
486
  precondition: ctxIsMergeEditor,
488
487
  menu: { id: MenuId.MergeInputResultToolbar, group: 'primary' },
@@ -498,7 +497,7 @@ class ResetCloseWithConflictsChoice extends Action2 {
498
497
  super({
499
498
  id: 'mergeEditor.resetCloseWithConflictsChoice',
500
499
  category: mergeEditorCategory,
501
- title: ( localize2WithPath(_moduleId, 21, "Reset Choice for \'Close with Conflicts\'")),
500
+ title: ( localize2(9762, "Reset Choice for \'Close with Conflicts\'")),
502
501
  f1: true,
503
502
  });
504
503
  }
@@ -511,7 +510,7 @@ class AcceptMerge extends MergeEditorAction2 {
511
510
  super({
512
511
  id: 'mergeEditor.acceptMerge',
513
512
  category: mergeEditorCategory,
514
- title: ( localize2WithPath(_moduleId, 22, "Complete Merge")),
513
+ title: ( localize2(9763, "Complete Merge")),
515
514
  f1: false,
516
515
  precondition: ctxIsMergeEditor
517
516
  });
@@ -521,14 +520,13 @@ class AcceptMerge extends MergeEditorAction2 {
521
520
  const editorService = accessor.get(IEditorService);
522
521
  if (viewModel.model.unhandledConflictsCount.get() > 0) {
523
522
  const { confirmed } = await dialogService.confirm({
524
- message: ( localizeWithPath(
525
- _moduleId,
526
- 23,
523
+ message: ( localize(
524
+ 9764,
527
525
  "Do you want to complete the merge of {0}?",
528
526
  basename(inputModel.resultUri)
529
527
  )),
530
- detail: ( localizeWithPath(_moduleId, 24, "The file contains unhandled conflicts.")),
531
- primaryButton: ( localizeWithPath(_moduleId, 25, "&&Complete with Conflicts"))
528
+ detail: ( localize(9765, "The file contains unhandled conflicts.")),
529
+ primaryButton: ( localize(9766, "&&Complete with Conflicts"))
532
530
  });
533
531
  if (!confirmed) {
534
532
  return {
@@ -2,7 +2,7 @@ import { VSBuffer } from 'vscode/vscode/vs/base/common/buffer';
2
2
  import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
3
3
  import { URI } from 'vscode/vscode/vs/base/common/uri';
4
4
  import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
5
- import { localize2WithPath, localizeWithPath } from 'vscode/vscode/vs/nls';
5
+ import { localize2, localize } from 'vscode/vscode/vs/nls';
6
6
  import { Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
7
7
  import { IClipboardService } from 'vscode/vscode/vs/platform/clipboard/common/clipboardService.service';
8
8
  import { IFileDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
@@ -13,14 +13,13 @@ import { MergeEditor } from '../view/mergeEditor.js';
13
13
  import { ctxIsMergeEditor } from 'vscode/vscode/vs/workbench/contrib/mergeEditor/common/mergeEditor';
14
14
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
15
15
 
16
- const _moduleId = "vs/workbench/contrib/mergeEditor/browser/commands/devCommands";
17
- const MERGE_EDITOR_CATEGORY = ( localize2WithPath(_moduleId, 0, 'Merge Editor (Dev)'));
16
+ const MERGE_EDITOR_CATEGORY = ( localize2(9767, 'Merge Editor (Dev)'));
18
17
  class MergeEditorCopyContentsToJSON extends Action2 {
19
18
  constructor() {
20
19
  super({
21
20
  id: 'merge.dev.copyContentsJson',
22
21
  category: MERGE_EDITOR_CATEGORY,
23
- title: ( localize2WithPath(_moduleId, 1, "Copy Merge Editor State as JSON")),
22
+ title: ( localize2(9768, "Copy Merge Editor State as JSON")),
24
23
  icon: Codicon.layoutCentered,
25
24
  f1: true,
26
25
  precondition: ctxIsMergeEditor,
@@ -32,8 +31,8 @@ class MergeEditorCopyContentsToJSON extends Action2 {
32
31
  const notificationService = accessor.get(INotificationService);
33
32
  if (!(activeEditorPane instanceof MergeEditor)) {
34
33
  notificationService.info({
35
- name: ( localizeWithPath(_moduleId, 2, 'Merge Editor')),
36
- message: ( localizeWithPath(_moduleId, 3, "No active merge editor"))
34
+ name: ( localize(9769, 'Merge Editor')),
35
+ message: ( localize(9770, "No active merge editor"))
37
36
  });
38
37
  return;
39
38
  }
@@ -52,8 +51,8 @@ class MergeEditorCopyContentsToJSON extends Action2 {
52
51
  const jsonStr = JSON.stringify(contents, undefined, 4);
53
52
  clipboardService.writeText(jsonStr);
54
53
  notificationService.info({
55
- name: ( localizeWithPath(_moduleId, 2, 'Merge Editor')),
56
- message: ( localizeWithPath(_moduleId, 4, "Successfully copied merge editor state")),
54
+ name: ( localize(9770, 'Merge Editor')),
55
+ message: ( localize(9771, "Successfully copied merge editor state")),
57
56
  });
58
57
  }
59
58
  }
@@ -62,7 +61,7 @@ class MergeEditorSaveContentsToFolder extends Action2 {
62
61
  super({
63
62
  id: 'merge.dev.saveContentsToFolder',
64
63
  category: MERGE_EDITOR_CATEGORY,
65
- title: ( localize2WithPath(_moduleId, 5, "Save Merge Editor State to Folder")),
64
+ title: ( localize2(9772, "Save Merge Editor State to Folder")),
66
65
  icon: Codicon.layoutCentered,
67
66
  f1: true,
68
67
  precondition: ctxIsMergeEditor,
@@ -76,8 +75,8 @@ class MergeEditorSaveContentsToFolder extends Action2 {
76
75
  const languageService = accessor.get(ILanguageService);
77
76
  if (!(activeEditorPane instanceof MergeEditor)) {
78
77
  notificationService.info({
79
- name: ( localizeWithPath(_moduleId, 2, 'Merge Editor')),
80
- message: ( localizeWithPath(_moduleId, 3, "No active merge editor"))
78
+ name: ( localize(9772, 'Merge Editor')),
79
+ message: ( localize(9772, "No active merge editor"))
81
80
  });
82
81
  return;
83
82
  }
@@ -89,7 +88,7 @@ class MergeEditorSaveContentsToFolder extends Action2 {
89
88
  canSelectFiles: false,
90
89
  canSelectFolders: true,
91
90
  canSelectMany: false,
92
- title: ( localizeWithPath(_moduleId, 6, 'Select folder to save to'))
91
+ title: ( localize(9773, 'Select folder to save to'))
93
92
  });
94
93
  if (!result) {
95
94
  return;
@@ -107,8 +106,8 @@ class MergeEditorSaveContentsToFolder extends Action2 {
107
106
  write('initialResult', model.getInitialResultValue()),
108
107
  ]);
109
108
  notificationService.info({
110
- name: ( localizeWithPath(_moduleId, 2, 'Merge Editor')),
111
- message: ( localizeWithPath(_moduleId, 7, "Successfully saved merge editor state to folder")),
109
+ name: ( localize(9773, 'Merge Editor')),
110
+ message: ( localize(9774, "Successfully saved merge editor state to folder")),
112
111
  });
113
112
  }
114
113
  }
@@ -117,7 +116,7 @@ class MergeEditorLoadContentsFromFolder extends Action2 {
117
116
  super({
118
117
  id: 'merge.dev.loadContentsFromFolder',
119
118
  category: MERGE_EDITOR_CATEGORY,
120
- title: ( localize2WithPath(_moduleId, 8, "Load Merge Editor State from Folder")),
119
+ title: ( localize2(9775, "Load Merge Editor State from Folder")),
121
120
  icon: Codicon.layoutCentered,
122
121
  f1: true
123
122
  });
@@ -136,7 +135,7 @@ class MergeEditorLoadContentsFromFolder extends Action2 {
136
135
  canSelectFiles: false,
137
136
  canSelectFolders: true,
138
137
  canSelectMany: false,
139
- title: ( localizeWithPath(_moduleId, 6, 'Select folder to save to'))
138
+ title: ( localize(9775, 'Select folder to save to'))
140
139
  });
141
140
  if (!result) {
142
141
  return;