@codingame/monaco-vscode-markers-service-override 7.0.11 → 7.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-markers-service-override",
3
- "version": "7.0.11",
3
+ "version": "7.1.1",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -26,6 +26,6 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "vscode": "npm:@codingame/monaco-vscode-api@7.0.11"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@7.1.1"
30
30
  }
31
31
  }
@@ -5,7 +5,7 @@ import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/confi
5
5
  import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
6
6
  import { KeybindingsRegistry, KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
7
7
  import { KeyCode, KeyMod } from 'vscode/vscode/vs/base/common/keyCodes';
8
- import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
8
+ import { localize, localize2 } from 'vscode/vscode/vs/nls';
9
9
  import { Marker, ResourceMarkers, RelatedInformation } from './markersModel.js';
10
10
  import { MarkersView } from './markersView.js';
11
11
  import { registerAction2, MenuId, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
@@ -33,7 +33,6 @@ import { viewFilterSubmenu } from 'vscode/vscode/vs/workbench/browser/parts/view
33
33
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
34
34
  import { problemsConfigurationNodeBase } from 'vscode/vscode/vs/workbench/common/configuration';
35
35
 
36
- const _moduleId = "vs/workbench/contrib/markers/browser/markers.contribution";
37
36
  KeybindingsRegistry.registerCommandAndKeybindingRule({
38
37
  id: Markers.MARKER_OPEN_ACTION_ID,
39
38
  weight: KeybindingWeight.WorkbenchContrib,
@@ -114,7 +113,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
114
113
  },
115
114
  }
116
115
  });
117
- const markersViewIcon = registerIcon('markers-view-icon', Codicon.warning, ( localizeWithPath(_moduleId, 0, 'View icon of the markers view.')));
116
+ const markersViewIcon = registerIcon('markers-view-icon', Codicon.warning, ( localize(2322, 'View icon of the markers view.')));
118
117
  const VIEW_CONTAINER = ( (Registry.as(Extensions$1.ViewContainersRegistry))).registerViewContainer({
119
118
  id: Markers.MARKERS_CONTAINER_ID,
120
119
  title: Messages.MARKERS_PANEL_TITLE_PROBLEMS,
@@ -136,7 +135,7 @@ const VIEW_CONTAINER = ( (Registry.as(Extensions$1.ViewContainersRegistry))).reg
136
135
  ctorDescriptor: ( (new SyncDescriptor(MarkersView))),
137
136
  openCommandActionDescriptor: {
138
137
  id: 'workbench.actions.view.problems',
139
- mnemonicTitle: ( localizeWithPath(_moduleId, 1, "&&Problems")),
138
+ mnemonicTitle: ( localize(2323, "&&Problems")),
140
139
  keybindings: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyM },
141
140
  order: 0,
142
141
  }
@@ -146,7 +145,7 @@ registerAction2(class extends ViewAction {
146
145
  constructor() {
147
146
  super({
148
147
  id: `workbench.actions.table.${Markers.MARKERS_VIEW_ID}.viewAsTree`,
149
- title: ( localizeWithPath(_moduleId, 2, "View as Tree")),
148
+ title: ( localize(2324, "View as Tree")),
150
149
  menu: {
151
150
  id: MenuId.ViewTitle,
152
151
  when: ( (ContextKeyExpr.and(
@@ -168,7 +167,7 @@ registerAction2(class extends ViewAction {
168
167
  constructor() {
169
168
  super({
170
169
  id: `workbench.actions.table.${Markers.MARKERS_VIEW_ID}.viewAsTable`,
171
- title: ( localizeWithPath(_moduleId, 3, "View as Table")),
170
+ title: ( localize(2325, "View as Table")),
172
171
  menu: {
173
172
  id: MenuId.ViewTitle,
174
173
  when: ( (ContextKeyExpr.and(
@@ -190,8 +189,8 @@ registerAction2(class extends ViewAction {
190
189
  constructor() {
191
190
  super({
192
191
  id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleErrors`,
193
- title: ( localizeWithPath(_moduleId, 4, "Show Errors")),
194
- category: ( localizeWithPath(_moduleId, 5, "Problems")),
192
+ title: ( localize(2326, "Show Errors")),
193
+ category: ( localize(2327, "Problems")),
195
194
  toggled: MarkersContextKeys.ShowErrorsFilterContextKey,
196
195
  menu: {
197
196
  id: viewFilterSubmenu,
@@ -210,8 +209,8 @@ registerAction2(class extends ViewAction {
210
209
  constructor() {
211
210
  super({
212
211
  id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleWarnings`,
213
- title: ( localizeWithPath(_moduleId, 6, "Show Warnings")),
214
- category: ( localizeWithPath(_moduleId, 5, "Problems")),
212
+ title: ( localize(2328, "Show Warnings")),
213
+ category: ( localize(2328, "Problems")),
215
214
  toggled: MarkersContextKeys.ShowWarningsFilterContextKey,
216
215
  menu: {
217
216
  id: viewFilterSubmenu,
@@ -230,8 +229,8 @@ registerAction2(class extends ViewAction {
230
229
  constructor() {
231
230
  super({
232
231
  id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleInfos`,
233
- title: ( localizeWithPath(_moduleId, 7, "Show Infos")),
234
- category: ( localizeWithPath(_moduleId, 5, "Problems")),
232
+ title: ( localize(2329, "Show Infos")),
233
+ category: ( localize(2329, "Problems")),
235
234
  toggled: MarkersContextKeys.ShowInfoFilterContextKey,
236
235
  menu: {
237
236
  id: viewFilterSubmenu,
@@ -250,8 +249,8 @@ registerAction2(class extends ViewAction {
250
249
  constructor() {
251
250
  super({
252
251
  id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleActiveFile`,
253
- title: ( localizeWithPath(_moduleId, 8, "Show Active File Only")),
254
- category: ( localizeWithPath(_moduleId, 5, "Problems")),
252
+ title: ( localize(2330, "Show Active File Only")),
253
+ category: ( localize(2330, "Problems")),
255
254
  toggled: MarkersContextKeys.ShowActiveFileFilterContextKey,
256
255
  menu: {
257
256
  id: viewFilterSubmenu,
@@ -270,8 +269,8 @@ registerAction2(class extends ViewAction {
270
269
  constructor() {
271
270
  super({
272
271
  id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleExcludedFiles`,
273
- title: ( localizeWithPath(_moduleId, 9, "Show Excluded Files")),
274
- category: ( localizeWithPath(_moduleId, 5, "Problems")),
272
+ title: ( localize(2331, "Show Excluded Files")),
273
+ category: ( localize(2331, "Problems")),
275
274
  toggled: ( (MarkersContextKeys.ShowExcludedFilesFilterContextKey.negate())),
276
275
  menu: {
277
276
  id: viewFilterSubmenu,
@@ -308,7 +307,7 @@ registerAction2(class extends ViewAction {
308
307
  )));
309
308
  super({
310
309
  id: Markers.MARKER_COPY_ACTION_ID,
311
- title: ( localize2WithPath(_moduleId, 10, 'Copy')),
310
+ title: ( localize2(2332, 'Copy')),
312
311
  menu: {
313
312
  id: MenuId.ProblemsPanelContext,
314
313
  when,
@@ -348,7 +347,7 @@ registerAction2(class extends ViewAction {
348
347
  constructor() {
349
348
  super({
350
349
  id: Markers.MARKER_COPY_MESSAGE_ACTION_ID,
351
- title: ( localize2WithPath(_moduleId, 11, 'Copy Message')),
350
+ title: ( localize2(2333, 'Copy Message')),
352
351
  menu: {
353
352
  id: MenuId.ProblemsPanelContext,
354
353
  when: MarkersContextKeys.MarkerFocusContextKey,
@@ -369,7 +368,7 @@ registerAction2(class extends ViewAction {
369
368
  constructor() {
370
369
  super({
371
370
  id: Markers.RELATED_INFORMATION_COPY_MESSAGE_ACTION_ID,
372
- title: ( localize2WithPath(_moduleId, 11, 'Copy Message')),
371
+ title: ( localize2(2333, 'Copy Message')),
373
372
  menu: {
374
373
  id: MenuId.ProblemsPanelContext,
375
374
  when: MarkersContextKeys.RelatedInformationFocusContextKey,
@@ -390,7 +389,7 @@ registerAction2(class extends ViewAction {
390
389
  constructor() {
391
390
  super({
392
391
  id: Markers.FOCUS_PROBLEMS_FROM_FILTER,
393
- title: ( localizeWithPath(_moduleId, 12, "Focus problems view")),
392
+ title: ( localize(2334, "Focus problems view")),
394
393
  keybinding: {
395
394
  when: MarkersContextKeys.MarkerViewFilterFocusContextKey,
396
395
  weight: KeybindingWeight.WorkbenchContrib,
@@ -407,7 +406,7 @@ registerAction2(class extends ViewAction {
407
406
  constructor() {
408
407
  super({
409
408
  id: Markers.MARKERS_VIEW_FOCUS_FILTER,
410
- title: ( localizeWithPath(_moduleId, 13, "Focus problems filter")),
409
+ title: ( localize(2335, "Focus problems filter")),
411
410
  keybinding: {
412
411
  when: ( (FocusedViewContext.isEqualTo(Markers.MARKERS_VIEW_ID))),
413
412
  weight: KeybindingWeight.WorkbenchContrib,
@@ -424,8 +423,8 @@ registerAction2(class extends ViewAction {
424
423
  constructor() {
425
424
  super({
426
425
  id: Markers.MARKERS_VIEW_SHOW_MULTILINE_MESSAGE,
427
- title: ( localize2WithPath(_moduleId, 14, "Show message in multiple lines")),
428
- category: ( localizeWithPath(_moduleId, 5, "Problems")),
426
+ title: ( localize2(2336, "Show message in multiple lines")),
427
+ category: ( localize(2336, "Problems")),
429
428
  menu: {
430
429
  id: MenuId.CommandPalette,
431
430
  when: ( (ContextKeyExpr.has(getVisbileViewContextKey(Markers.MARKERS_VIEW_ID))))
@@ -441,8 +440,8 @@ registerAction2(class extends ViewAction {
441
440
  constructor() {
442
441
  super({
443
442
  id: Markers.MARKERS_VIEW_SHOW_SINGLELINE_MESSAGE,
444
- title: ( localize2WithPath(_moduleId, 15, "Show message in single line")),
445
- category: ( localizeWithPath(_moduleId, 5, "Problems")),
443
+ title: ( localize2(2337, "Show message in single line")),
444
+ category: ( localize(2337, "Problems")),
446
445
  menu: {
447
446
  id: MenuId.CommandPalette,
448
447
  when: ( (ContextKeyExpr.has(getVisbileViewContextKey(Markers.MARKERS_VIEW_ID))))
@@ -458,8 +457,8 @@ registerAction2(class extends ViewAction {
458
457
  constructor() {
459
458
  super({
460
459
  id: Markers.MARKERS_VIEW_CLEAR_FILTER_TEXT,
461
- title: ( localizeWithPath(_moduleId, 16, "Clear filters text")),
462
- category: ( localizeWithPath(_moduleId, 5, "Problems")),
460
+ title: ( localize(2338, "Clear filters text")),
461
+ category: ( localize(2338, "Problems")),
463
462
  keybinding: {
464
463
  when: MarkersContextKeys.MarkerViewFilterFocusContextKey,
465
464
  weight: KeybindingWeight.WorkbenchContrib,
@@ -476,7 +475,7 @@ registerAction2(class extends ViewAction {
476
475
  constructor() {
477
476
  super({
478
477
  id: `workbench.actions.treeView.${Markers.MARKERS_VIEW_ID}.collapseAll`,
479
- title: ( localizeWithPath(_moduleId, 17, "Collapse All")),
478
+ title: ( localize(2339, "Collapse All")),
480
479
  menu: {
481
480
  id: MenuId.ViewTitle,
482
481
  when: ( (ContextKeyExpr.and(
@@ -546,7 +545,7 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
546
545
  const markersStatistics = this.markerService.getStatistics();
547
546
  const tooltip = this.getMarkersTooltip(markersStatistics);
548
547
  return {
549
- name: ( localizeWithPath(_moduleId, 18, "Problems")),
548
+ name: ( localize(2340, "Problems")),
550
549
  text: this.getMarkersText(markersStatistics),
551
550
  ariaLabel: tooltip,
552
551
  tooltip,
@@ -557,9 +556,9 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
557
556
  this.statusbarService.updateEntryVisibility('status.problemsVisibility', true);
558
557
  const openSettingsCommand = 'workbench.action.openSettings';
559
558
  const configureSettingsLabel = '@id:problems.visibility';
560
- const tooltip = ( localizeWithPath(_moduleId, 19, "Problems are turned off. Click to open settings."));
559
+ const tooltip = ( localize(2341, "Problems are turned off. Click to open settings."));
561
560
  return {
562
- name: ( localizeWithPath(_moduleId, 20, "Problems Visibility")),
561
+ name: ( localize(2342, "Problems Visibility")),
563
562
  text: '$(whole-word)',
564
563
  ariaLabel: tooltip,
565
564
  tooltip,
@@ -568,9 +567,9 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
568
567
  };
569
568
  }
570
569
  getMarkersTooltip(stats) {
571
- const errorTitle = (n) => ( localizeWithPath(_moduleId, 21, "Errors: {0}", n));
572
- const warningTitle = (n) => ( localizeWithPath(_moduleId, 22, "Warnings: {0}", n));
573
- const infoTitle = (n) => ( localizeWithPath(_moduleId, 23, "Infos: {0}", n));
570
+ const errorTitle = (n) => ( localize(2343, "Errors: {0}", n));
571
+ const warningTitle = (n) => ( localize(2344, "Warnings: {0}", n));
572
+ const infoTitle = (n) => ( localize(2345, "Infos: {0}", n));
574
573
  const titles = [];
575
574
  if (stats.errors > 0) {
576
575
  titles.push(errorTitle(stats.errors));
@@ -582,7 +581,7 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
582
581
  titles.push(infoTitle(stats.infos));
583
582
  }
584
583
  if (titles.length === 0) {
585
- return ( localizeWithPath(_moduleId, 24, "No Problems"));
584
+ return ( localize(2346, "No Problems"));
586
585
  }
587
586
  return titles.join(', ');
588
587
  }
@@ -596,7 +595,7 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
596
595
  return problemsText.join(' ');
597
596
  }
598
597
  packNumber(n) {
599
- const manyProblems = ( localizeWithPath(_moduleId, 25, "10K+"));
598
+ const manyProblems = ( localize(2347, "10K+"));
600
599
  return n > 9999 ? manyProblems : n > 999 ? ( (n.toString())).charAt(0) + 'K' : ( (n.toString()));
601
600
  }
602
601
  };
@@ -619,7 +618,7 @@ let ActivityUpdater = class ActivityUpdater extends Disposable {
619
618
  const { errors, warnings, infos } = this.markerService.getStatistics();
620
619
  const total = errors + warnings + infos;
621
620
  if (total > 0) {
622
- const message = ( localizeWithPath(_moduleId, 26, 'Total {0} Problems', total));
621
+ const message = ( localize(2348, 'Total {0} Problems', total));
623
622
  this.activity.value = this.activityService.showViewActivity(Markers.MARKERS_VIEW_ID, { badge: ( (new NumberBadge(total, () => message))) });
624
623
  }
625
624
  else {
@@ -4,7 +4,7 @@ import { MarkerSeverity } from 'vscode/vscode/vs/platform/markers/common/markers
4
4
  import { IMarkerService } from 'vscode/vscode/vs/platform/markers/common/markers.service';
5
5
  import { IDecorationsService } from 'vscode/vscode/vs/workbench/services/decorations/common/decorations.service';
6
6
  import { dispose } from 'vscode/vscode/vs/base/common/lifecycle';
7
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
7
+ import { localize } from 'vscode/vscode/vs/nls';
8
8
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
9
9
  import 'vscode/vscode/vs/platform/theme/common/colorUtils';
10
10
  import 'vscode/vscode/vs/platform/theme/common/colors/baseColors';
@@ -21,11 +21,10 @@ import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/c
21
21
  import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
22
22
  import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
23
23
 
24
- const _moduleId = "vs/workbench/contrib/markers/browser/markersFileDecorations";
25
24
  class MarkersDecorationsProvider {
26
25
  constructor(_markerService) {
27
26
  this._markerService = _markerService;
28
- this.label = ( localizeWithPath(_moduleId, 0, "Problems"));
27
+ this.label = ( localize(5568, "Problems"));
29
28
  this.onDidChange = _markerService.onMarkerChanged;
30
29
  }
31
30
  provideDecorations(resource) {
@@ -45,7 +44,7 @@ class MarkersDecorationsProvider {
45
44
  return {
46
45
  weight: 100 * first.severity,
47
46
  bubble: true,
48
- tooltip: markers.length === 1 ? ( localizeWithPath(_moduleId, 1, "1 problem in this file")) : ( localizeWithPath(_moduleId, 2, "{0} problems in this file", markers.length)),
47
+ tooltip: markers.length === 1 ? ( localize(5569, "1 problem in this file")) : ( localize(5570, "{0} problems in this file", markers.length)),
49
48
  letter: markers.length < 10 ? ( (markers.length.toString())) : '9+',
50
49
  color: first.severity === MarkerSeverity.Error ? listErrorForeground : listWarningForeground,
51
50
  };
@@ -104,9 +103,8 @@ MarkersFileDecorations = ( (__decorate([
104
103
  'type': 'object',
105
104
  'properties': {
106
105
  'problems.decorations.enabled': {
107
- 'markdownDescription': ( localizeWithPath(
108
- _moduleId,
109
- 3,
106
+ 'markdownDescription': ( localize(
107
+ 5571,
110
108
  "Show Errors & Warnings on files and folder. Overwritten by {0} when it is off.",
111
109
  '`#problems.visibility#`'
112
110
  )),
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
2
+ import { localize } from 'vscode/vscode/vs/nls';
3
3
  import { $ as $$1, append, findParentWithClass } from 'vscode/vscode/vs/base/browser/dom';
4
4
  import { Event } from 'vscode/vscode/vs/base/common/event';
5
5
  import { DisposableStore, Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
@@ -24,7 +24,6 @@ import Severity$1 from 'vscode/vscode/vs/base/common/severity';
24
24
  import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover.service';
25
25
 
26
26
  var MarkerSeverityColumnRenderer_1, MarkerCodeColumnRenderer_1, MarkerFileColumnRenderer_1;
27
- const _moduleId = "vs/workbench/contrib/markers/browser/markersTable";
28
27
  const $ = $$1;
29
28
  let MarkerSeverityColumnRenderer = class MarkerSeverityColumnRenderer {
30
29
  static { MarkerSeverityColumnRenderer_1 = this; }
@@ -228,7 +227,7 @@ let MarkersTable = class MarkersTable extends Disposable {
228
227
  project(row) { return row; }
229
228
  },
230
229
  {
231
- label: ( localizeWithPath(_moduleId, 0, "Code")),
230
+ label: ( localize(10100, "Code")),
232
231
  tooltip: '',
233
232
  weight: 1,
234
233
  minimumWidth: 100,
@@ -237,21 +236,21 @@ let MarkersTable = class MarkersTable extends Disposable {
237
236
  project(row) { return row; }
238
237
  },
239
238
  {
240
- label: ( localizeWithPath(_moduleId, 1, "Message")),
239
+ label: ( localize(10101, "Message")),
241
240
  tooltip: '',
242
241
  weight: 4,
243
242
  templateId: MarkerMessageColumnRenderer.TEMPLATE_ID,
244
243
  project(row) { return row; }
245
244
  },
246
245
  {
247
- label: ( localizeWithPath(_moduleId, 2, "File")),
246
+ label: ( localize(10102, "File")),
248
247
  tooltip: '',
249
248
  weight: 2,
250
249
  templateId: MarkerFileColumnRenderer.TEMPLATE_ID,
251
250
  project(row) { return row; }
252
251
  },
253
252
  {
254
- label: ( localizeWithPath(_moduleId, 3, "Source")),
253
+ label: ( localize(10103, "Source")),
255
254
  tooltip: '',
256
255
  weight: 1,
257
256
  minimumWidth: 100,
@@ -18,7 +18,7 @@ import { FilterOptions } from './markersFilterOptions.js';
18
18
  import { Emitter } from 'vscode/vscode/vs/base/common/event';
19
19
  import { isUndefinedOrNull } from 'vscode/vscode/vs/base/common/types';
20
20
  import { Action } from 'vscode/vscode/vs/base/common/actions';
21
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
21
+ import { localize } from 'vscode/vscode/vs/nls';
22
22
  import { createCancelablePromise, Delayer } from 'vscode/vscode/vs/base/common/async';
23
23
  import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
24
24
  import { Range } from 'vscode/vscode/vs/editor/common/core/range';
@@ -43,13 +43,12 @@ import Severity$1 from 'vscode/vscode/vs/base/common/severity';
43
43
  import { getDefaultHoverDelegate } from 'vscode/vscode/vs/base/browser/ui/hover/hoverDelegateFactory';
44
44
  import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover.service';
45
45
 
46
- const _moduleId = "vs/workbench/contrib/markers/browser/markersTreeViewer";
47
46
  let MarkersWidgetAccessibilityProvider = class MarkersWidgetAccessibilityProvider {
48
47
  constructor(labelService) {
49
48
  this.labelService = labelService;
50
49
  }
51
50
  getWidgetAriaLabel() {
52
- return ( localizeWithPath(_moduleId, 0, "Problems View"));
51
+ return ( localize(10095, "Problems View"));
53
52
  }
54
53
  getAriaLabel(element) {
55
54
  if (element instanceof ResourceMarkers) {
@@ -189,14 +188,12 @@ MarkerRenderer = ( (__decorate([
189
188
  ( (__param(2, IInstantiationService))),
190
189
  ( (__param(3, IOpenerService)))
191
190
  ], MarkerRenderer)));
192
- const expandedIcon = registerIcon('markers-view-multi-line-expanded', Codicon.chevronUp, ( localizeWithPath(
193
- _moduleId,
194
- 1,
191
+ const expandedIcon = registerIcon('markers-view-multi-line-expanded', Codicon.chevronUp, ( localize(
192
+ 10096,
195
193
  'Icon indicating that multiple lines are shown in the markers view.'
196
194
  )));
197
- const collapsedIcon = registerIcon('markers-view-multi-line-collapsed', Codicon.chevronDown, ( localizeWithPath(
198
- _moduleId,
199
- 2,
195
+ const collapsedIcon = registerIcon('markers-view-multi-line-collapsed', Codicon.chevronDown, ( localize(
196
+ 10097,
200
197
  'Icon indicating that multiple lines are collapsed in the markers view.'
201
198
  )));
202
199
  const toggleMultilineAction = 'problems.action.toggleMultiline';
@@ -275,7 +272,7 @@ class MarkerWidget extends Disposable {
275
272
  const multiline = viewModel && viewModel.multiline;
276
273
  const action = ( (new Action(toggleMultilineAction)));
277
274
  action.enabled = !!viewModel && marker.lines.length > 1;
278
- action.tooltip = multiline ? ( localizeWithPath(_moduleId, 3, "Show message in single line")) : ( localizeWithPath(_moduleId, 4, "Show message in multiple lines"));
275
+ action.tooltip = multiline ? ( localize(10098, "Show message in single line")) : ( localize(10099, "Show message in multiple lines"));
279
276
  action.class = ThemeIcon.asClassName(multiline ? expandedIcon : collapsedIcon);
280
277
  action.run = () => { if (viewModel) {
281
278
  viewModel.multiline = !viewModel.multiline;
@@ -14,7 +14,7 @@ import { RangeHighlightDecorations } from 'vscode/vscode/vs/workbench/browser/co
14
14
  import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';
15
15
  import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
16
16
  import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
17
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
17
+ import { localize } from 'vscode/vscode/vs/nls';
18
18
  import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
19
19
  import { Iterable } from 'vscode/vscode/vs/base/common/iterator';
20
20
  import { Event, Relay } from 'vscode/vscode/vs/base/common/event';
@@ -50,7 +50,6 @@ import { registerNavigableContainer } from 'vscode/vscode/vs/workbench/browser/a
50
50
  import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover.service';
51
51
  import { ResultKind } from 'vscode/vscode/vs/platform/keybinding/common/keybindingResolver';
52
52
 
53
- const _moduleId = "vs/workbench/contrib/markers/browser/markersView";
54
53
  function createResourceMarkersIterator(resourceMarkers) {
55
54
  return (
56
55
  (Iterable.map(resourceMarkers.markers, m => {
@@ -179,7 +178,7 @@ let MarkersView = class MarkersView extends FilterViewPane {
179
178
  this.filterWidget.focus();
180
179
  }
181
180
  updateBadge(total, filtered) {
182
- this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( localizeWithPath(_moduleId, 0, "Showing {0} of {1}", filtered, total)));
181
+ this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( localize(5572, "Showing {0} of {1}", filtered, total)));
183
182
  }
184
183
  checkMoreFilters() {
185
184
  this.filterWidget.checkMoreFilters(!this.filters.showErrors || !this.filters.showWarnings || !this.filters.showInfos || this.filters.excludedFiles || this.filters.activeFile);
@@ -561,10 +560,10 @@ let MarkersView = class MarkersView extends FilterViewPane {
561
560
  else {
562
561
  this.messageBoxContainer.style.display = 'none';
563
562
  if (filtered === total) {
564
- this.setAriaLabel(( localizeWithPath(_moduleId, 1, "Showing {0} problems", total)));
563
+ this.setAriaLabel(( localize(5573, "Showing {0} problems", total)));
565
564
  }
566
565
  else {
567
- this.setAriaLabel(( localizeWithPath(_moduleId, 2, "Showing {0} of {1} problems", filtered, total)));
566
+ this.setAriaLabel(( localize(5574, "Showing {0} of {1} problems", filtered, total)));
568
567
  }
569
568
  this.messageBoxContainer.removeAttribute('tabIndex');
570
569
  }
@@ -581,7 +580,7 @@ let MarkersView = class MarkersView extends FilterViewPane {
581
580
  const span1 = append(container, $('span'));
582
581
  span1.textContent = Messages.MARKERS_PANEL_NO_PROBLEMS_FILTERS;
583
582
  const link = append(container, $('a.messageAction'));
584
- link.textContent = ( localizeWithPath(_moduleId, 3, "Clear Filters"));
583
+ link.textContent = ( localize(5575, "Clear Filters"));
585
584
  link.setAttribute('tabIndex', '0');
586
585
  const span2 = append(container, $('span'));
587
586
  span2.textContent = '.';
@@ -1,68 +1,63 @@
1
- import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
1
+ import { localize, localize2 } from 'vscode/vscode/vs/nls';
2
2
  import { basename } from 'vscode/vscode/vs/base/common/resources';
3
3
  import { MarkerSeverity } from 'vscode/vscode/vs/platform/markers/common/markers';
4
4
 
5
- const _moduleId = "vs/workbench/contrib/markers/browser/messages";
6
5
  class Messages {
7
- static { this.MARKERS_PANEL_TOGGLE_LABEL = ( localizeWithPath(_moduleId, 0, "Toggle Problems (Errors, Warnings, Infos)")); }
8
- static { this.MARKERS_PANEL_SHOW_LABEL = ( localize2WithPath(_moduleId, 1, "Focus Problems (Errors, Warnings, Infos)")); }
9
- static { this.PROBLEMS_PANEL_CONFIGURATION_TITLE = ( localizeWithPath(_moduleId, 2, "Problems View")); }
10
- static { this.PROBLEMS_PANEL_CONFIGURATION_AUTO_REVEAL = ( localizeWithPath(
11
- _moduleId,
12
- 3,
6
+ static { this.MARKERS_PANEL_TOGGLE_LABEL = ( localize(5576, "Toggle Problems (Errors, Warnings, Infos)")); }
7
+ static { this.MARKERS_PANEL_SHOW_LABEL = ( localize2(5577, "Focus Problems (Errors, Warnings, Infos)")); }
8
+ static { this.PROBLEMS_PANEL_CONFIGURATION_TITLE = ( localize(5578, "Problems View")); }
9
+ static { this.PROBLEMS_PANEL_CONFIGURATION_AUTO_REVEAL = ( localize(
10
+ 5579,
13
11
  "Controls whether Problems view should automatically reveal files when opening them."
14
12
  )); }
15
- static { this.PROBLEMS_PANEL_CONFIGURATION_VIEW_MODE = ( localizeWithPath(_moduleId, 4, "Controls the default view mode of the Problems view.")); }
16
- static { this.PROBLEMS_PANEL_CONFIGURATION_SHOW_CURRENT_STATUS = ( localizeWithPath(_moduleId, 5, "When enabled shows the current problem in the status bar.")); }
17
- static { this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER = ( localizeWithPath(_moduleId, 6, "Controls the order in which problems are navigated.")); }
18
- static { this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER_SEVERITY = ( localizeWithPath(_moduleId, 7, "Navigate problems ordered by severity")); }
19
- static { this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER_POSITION = ( localizeWithPath(_moduleId, 8, "Navigate problems ordered by position")); }
20
- static { this.MARKERS_PANEL_TITLE_PROBLEMS = ( localize2WithPath(_moduleId, 9, "Problems")); }
21
- static { this.MARKERS_PANEL_NO_PROBLEMS_BUILT = ( localizeWithPath(_moduleId, 10, "No problems have been detected in the workspace.")); }
22
- static { this.MARKERS_PANEL_NO_PROBLEMS_ACTIVE_FILE_BUILT = ( localizeWithPath(_moduleId, 11, "No problems have been detected in the current file.")); }
23
- static { this.MARKERS_PANEL_NO_PROBLEMS_FILTERS = ( localizeWithPath(_moduleId, 12, "No results found with provided filter criteria.")); }
24
- static { this.MARKERS_PANEL_ACTION_TOOLTIP_MORE_FILTERS = ( localizeWithPath(_moduleId, 13, "More Filters...")); }
25
- static { this.MARKERS_PANEL_FILTER_LABEL_SHOW_ERRORS = ( localizeWithPath(_moduleId, 14, "Show Errors")); }
26
- static { this.MARKERS_PANEL_FILTER_LABEL_SHOW_WARNINGS = ( localizeWithPath(_moduleId, 15, "Show Warnings")); }
27
- static { this.MARKERS_PANEL_FILTER_LABEL_SHOW_INFOS = ( localizeWithPath(_moduleId, 16, "Show Infos")); }
28
- static { this.MARKERS_PANEL_FILTER_LABEL_EXCLUDED_FILES = ( localizeWithPath(_moduleId, 17, "Hide Excluded Files")); }
29
- static { this.MARKERS_PANEL_FILTER_LABEL_ACTIVE_FILE = ( localizeWithPath(_moduleId, 18, "Show Active File Only")); }
30
- static { this.MARKERS_PANEL_ACTION_TOOLTIP_FILTER = ( localizeWithPath(_moduleId, 19, "Filter Problems")); }
31
- static { this.MARKERS_PANEL_ACTION_TOOLTIP_QUICKFIX = ( localizeWithPath(_moduleId, 20, "Show fixes")); }
32
- static { this.MARKERS_PANEL_FILTER_ARIA_LABEL = ( localizeWithPath(_moduleId, 21, "Filter Problems")); }
33
- static { this.MARKERS_PANEL_FILTER_PLACEHOLDER = ( localizeWithPath(_moduleId, 22, "Filter (e.g. text, **/*.ts, !**/node_modules/**)")); }
34
- static { this.MARKERS_PANEL_FILTER_ERRORS = ( localizeWithPath(_moduleId, 23, "errors")); }
35
- static { this.MARKERS_PANEL_FILTER_WARNINGS = ( localizeWithPath(_moduleId, 24, "warnings")); }
36
- static { this.MARKERS_PANEL_FILTER_INFOS = ( localizeWithPath(_moduleId, 25, "infos")); }
37
- static { this.MARKERS_PANEL_SINGLE_ERROR_LABEL = ( localizeWithPath(_moduleId, 26, "1 Error")); }
38
- static { this.MARKERS_PANEL_MULTIPLE_ERRORS_LABEL = (noOfErrors) => { return ( localizeWithPath(_moduleId, 27, "{0} Errors", '' + noOfErrors)); }; }
39
- static { this.MARKERS_PANEL_SINGLE_WARNING_LABEL = ( localizeWithPath(_moduleId, 28, "1 Warning")); }
40
- static { this.MARKERS_PANEL_MULTIPLE_WARNINGS_LABEL = (noOfWarnings) => { return ( localizeWithPath(_moduleId, 29, "{0} Warnings", '' + noOfWarnings)); }; }
41
- static { this.MARKERS_PANEL_SINGLE_INFO_LABEL = ( localizeWithPath(_moduleId, 30, "1 Info")); }
42
- static { this.MARKERS_PANEL_MULTIPLE_INFOS_LABEL = (noOfInfos) => { return ( localizeWithPath(_moduleId, 31, "{0} Infos", '' + noOfInfos)); }; }
43
- static { this.MARKERS_PANEL_SINGLE_UNKNOWN_LABEL = ( localizeWithPath(_moduleId, 32, "1 Unknown")); }
44
- static { this.MARKERS_PANEL_MULTIPLE_UNKNOWNS_LABEL = (noOfUnknowns) => { return ( localizeWithPath(_moduleId, 33, "{0} Unknowns", '' + noOfUnknowns)); }; }
45
- static { this.MARKERS_PANEL_AT_LINE_COL_NUMBER = (ln, col) => { return ( localizeWithPath(_moduleId, 34, "[Ln {0}, Col {1}]", '' + ln, '' + col)); }; }
46
- static { this.MARKERS_TREE_ARIA_LABEL_RESOURCE = (noOfProblems, fileName, folder) => { return ( localizeWithPath(
47
- _moduleId,
48
- 35,
13
+ static { this.PROBLEMS_PANEL_CONFIGURATION_VIEW_MODE = ( localize(5580, "Controls the default view mode of the Problems view.")); }
14
+ static { this.PROBLEMS_PANEL_CONFIGURATION_SHOW_CURRENT_STATUS = ( localize(5581, "When enabled shows the current problem in the status bar.")); }
15
+ static { this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER = ( localize(5582, "Controls the order in which problems are navigated.")); }
16
+ static { this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER_SEVERITY = ( localize(5583, "Navigate problems ordered by severity")); }
17
+ static { this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER_POSITION = ( localize(5584, "Navigate problems ordered by position")); }
18
+ static { this.MARKERS_PANEL_TITLE_PROBLEMS = ( localize2(5585, "Problems")); }
19
+ static { this.MARKERS_PANEL_NO_PROBLEMS_BUILT = ( localize(5586, "No problems have been detected in the workspace.")); }
20
+ static { this.MARKERS_PANEL_NO_PROBLEMS_ACTIVE_FILE_BUILT = ( localize(5587, "No problems have been detected in the current file.")); }
21
+ static { this.MARKERS_PANEL_NO_PROBLEMS_FILTERS = ( localize(5588, "No results found with provided filter criteria.")); }
22
+ static { this.MARKERS_PANEL_ACTION_TOOLTIP_MORE_FILTERS = ( localize(5589, "More Filters...")); }
23
+ static { this.MARKERS_PANEL_FILTER_LABEL_SHOW_ERRORS = ( localize(5590, "Show Errors")); }
24
+ static { this.MARKERS_PANEL_FILTER_LABEL_SHOW_WARNINGS = ( localize(5591, "Show Warnings")); }
25
+ static { this.MARKERS_PANEL_FILTER_LABEL_SHOW_INFOS = ( localize(5592, "Show Infos")); }
26
+ static { this.MARKERS_PANEL_FILTER_LABEL_EXCLUDED_FILES = ( localize(5593, "Hide Excluded Files")); }
27
+ static { this.MARKERS_PANEL_FILTER_LABEL_ACTIVE_FILE = ( localize(5594, "Show Active File Only")); }
28
+ static { this.MARKERS_PANEL_ACTION_TOOLTIP_FILTER = ( localize(5595, "Filter Problems")); }
29
+ static { this.MARKERS_PANEL_ACTION_TOOLTIP_QUICKFIX = ( localize(5596, "Show fixes")); }
30
+ static { this.MARKERS_PANEL_FILTER_ARIA_LABEL = ( localize(5597, "Filter Problems")); }
31
+ static { this.MARKERS_PANEL_FILTER_PLACEHOLDER = ( localize(5598, "Filter (e.g. text, **/*.ts, !**/node_modules/**)")); }
32
+ static { this.MARKERS_PANEL_FILTER_ERRORS = ( localize(5599, "errors")); }
33
+ static { this.MARKERS_PANEL_FILTER_WARNINGS = ( localize(5600, "warnings")); }
34
+ static { this.MARKERS_PANEL_FILTER_INFOS = ( localize(5601, "infos")); }
35
+ static { this.MARKERS_PANEL_SINGLE_ERROR_LABEL = ( localize(5602, "1 Error")); }
36
+ static { this.MARKERS_PANEL_MULTIPLE_ERRORS_LABEL = (noOfErrors) => { return ( localize(5603, "{0} Errors", '' + noOfErrors)); }; }
37
+ static { this.MARKERS_PANEL_SINGLE_WARNING_LABEL = ( localize(5604, "1 Warning")); }
38
+ static { this.MARKERS_PANEL_MULTIPLE_WARNINGS_LABEL = (noOfWarnings) => { return ( localize(5605, "{0} Warnings", '' + noOfWarnings)); }; }
39
+ static { this.MARKERS_PANEL_SINGLE_INFO_LABEL = ( localize(5606, "1 Info")); }
40
+ static { this.MARKERS_PANEL_MULTIPLE_INFOS_LABEL = (noOfInfos) => { return ( localize(5607, "{0} Infos", '' + noOfInfos)); }; }
41
+ static { this.MARKERS_PANEL_SINGLE_UNKNOWN_LABEL = ( localize(5608, "1 Unknown")); }
42
+ static { this.MARKERS_PANEL_MULTIPLE_UNKNOWNS_LABEL = (noOfUnknowns) => { return ( localize(5609, "{0} Unknowns", '' + noOfUnknowns)); }; }
43
+ static { this.MARKERS_PANEL_AT_LINE_COL_NUMBER = (ln, col) => { return ( localize(5610, "[Ln {0}, Col {1}]", '' + ln, '' + col)); }; }
44
+ static { this.MARKERS_TREE_ARIA_LABEL_RESOURCE = (noOfProblems, fileName, folder) => { return ( localize(
45
+ 5611,
49
46
  "{0} problems in file {1} of folder {2}",
50
47
  noOfProblems,
51
48
  fileName,
52
49
  folder
53
50
  )); }; }
54
51
  static { this.MARKERS_TREE_ARIA_LABEL_MARKER = (marker) => {
55
- const relatedInformationMessage = marker.relatedInformation.length ? ( localizeWithPath(
56
- _moduleId,
57
- 36,
52
+ const relatedInformationMessage = marker.relatedInformation.length ? ( localize(
53
+ 5612,
58
54
  " This problem has references to {0} locations.",
59
55
  marker.relatedInformation.length
60
56
  )) : '';
61
57
  switch (marker.marker.severity) {
62
58
  case MarkerSeverity.Error:
63
- return marker.marker.source ? ( localizeWithPath(
64
- _moduleId,
65
- 37,
59
+ return marker.marker.source ? ( localize(
60
+ 5613,
66
61
  "Error: {0} at line {1} and character {2}.{3} generated by {4}",
67
62
  marker.marker.message,
68
63
  marker.marker.startLineNumber,
@@ -70,9 +65,8 @@ class Messages {
70
65
  relatedInformationMessage,
71
66
  marker.marker.source
72
67
  ))
73
- : ( localizeWithPath(
74
- _moduleId,
75
- 38,
68
+ : ( localize(
69
+ 5614,
76
70
  "Error: {0} at line {1} and character {2}.{3}",
77
71
  marker.marker.message,
78
72
  marker.marker.startLineNumber,
@@ -80,9 +74,8 @@ class Messages {
80
74
  relatedInformationMessage
81
75
  ));
82
76
  case MarkerSeverity.Warning:
83
- return marker.marker.source ? ( localizeWithPath(
84
- _moduleId,
85
- 39,
77
+ return marker.marker.source ? ( localize(
78
+ 5615,
86
79
  "Warning: {0} at line {1} and character {2}.{3} generated by {4}",
87
80
  marker.marker.message,
88
81
  marker.marker.startLineNumber,
@@ -90,9 +83,8 @@ class Messages {
90
83
  relatedInformationMessage,
91
84
  marker.marker.source
92
85
  ))
93
- : ( localizeWithPath(
94
- _moduleId,
95
- 40,
86
+ : ( localize(
87
+ 5616,
96
88
  "Warning: {0} at line {1} and character {2}.{3}",
97
89
  marker.marker.message,
98
90
  marker.marker.startLineNumber,
@@ -101,9 +93,8 @@ class Messages {
101
93
  relatedInformationMessage
102
94
  ));
103
95
  case MarkerSeverity.Info:
104
- return marker.marker.source ? ( localizeWithPath(
105
- _moduleId,
106
- 41,
96
+ return marker.marker.source ? ( localize(
97
+ 5617,
107
98
  "Info: {0} at line {1} and character {2}.{3} generated by {4}",
108
99
  marker.marker.message,
109
100
  marker.marker.startLineNumber,
@@ -111,9 +102,8 @@ class Messages {
111
102
  relatedInformationMessage,
112
103
  marker.marker.source
113
104
  ))
114
- : ( localizeWithPath(
115
- _moduleId,
116
- 42,
105
+ : ( localize(
106
+ 5618,
117
107
  "Info: {0} at line {1} and character {2}.{3}",
118
108
  marker.marker.message,
119
109
  marker.marker.startLineNumber,
@@ -121,9 +111,8 @@ class Messages {
121
111
  relatedInformationMessage
122
112
  ));
123
113
  default:
124
- return marker.marker.source ? ( localizeWithPath(
125
- _moduleId,
126
- 43,
114
+ return marker.marker.source ? ( localize(
115
+ 5619,
127
116
  "Problem: {0} at line {1} and character {2}.{3} generated by {4}",
128
117
  marker.marker.source,
129
118
  marker.marker.message,
@@ -132,9 +121,8 @@ class Messages {
132
121
  relatedInformationMessage,
133
122
  marker.marker.source
134
123
  ))
135
- : ( localizeWithPath(
136
- _moduleId,
137
- 44,
124
+ : ( localize(
125
+ 5620,
138
126
  "Problem: {0} at line {1} and character {2}.{3}",
139
127
  marker.marker.message,
140
128
  marker.marker.startLineNumber,
@@ -143,16 +131,15 @@ class Messages {
143
131
  ));
144
132
  }
145
133
  }; }
146
- static { this.MARKERS_TREE_ARIA_LABEL_RELATED_INFORMATION = (relatedInformation) => ( localizeWithPath(
147
- _moduleId,
148
- 45,
134
+ static { this.MARKERS_TREE_ARIA_LABEL_RELATED_INFORMATION = (relatedInformation) => ( localize(
135
+ 5621,
149
136
  "{0} at line {1} and character {2} in {3}",
150
137
  relatedInformation.message,
151
138
  relatedInformation.startLineNumber,
152
139
  relatedInformation.startColumn,
153
140
  basename(relatedInformation.resource)
154
141
  )); }
155
- static { this.SHOW_ERRORS_WARNINGS_ACTION_LABEL = ( localizeWithPath(_moduleId, 46, "Show Errors and Warnings")); }
142
+ static { this.SHOW_ERRORS_WARNINGS_ACTION_LABEL = ( localize(5622, "Show Errors and Warnings")); }
156
143
  }
157
144
 
158
145
  export { Messages as default };