@codingame/monaco-vscode-markers-service-override 11.0.2 → 11.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 +2 -2
- package/vscode/src/vs/workbench/contrib/markers/browser/markers.contribution.js +42 -42
- package/vscode/src/vs/workbench/contrib/markers/browser/markersFileDecorations.js +3 -3
- package/vscode/src/vs/workbench/contrib/markers/browser/markersTable.js +4 -4
- package/vscode/src/vs/workbench/contrib/markers/browser/markersTreeViewer.js +4 -4
- package/vscode/src/vs/workbench/contrib/markers/browser/markersView.js +4 -4
- package/vscode/src/vs/workbench/contrib/markers/browser/messages.js +47 -47
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-markers-service-override",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.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@11.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@11.1.1"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -110,7 +110,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
110
110
|
},
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
|
-
const markersViewIcon = registerIcon('markers-view-icon', Codicon.warning, ( localize(
|
|
113
|
+
const markersViewIcon = registerIcon('markers-view-icon', Codicon.warning, ( localize(1857, 'View icon of the markers view.')));
|
|
114
114
|
const VIEW_CONTAINER = ( (Registry.as(Extensions$1.ViewContainersRegistry))).registerViewContainer({
|
|
115
115
|
id: Markers.MARKERS_CONTAINER_ID,
|
|
116
116
|
title: Messages.MARKERS_PANEL_TITLE_PROBLEMS,
|
|
@@ -132,7 +132,7 @@ const VIEW_CONTAINER = ( (Registry.as(Extensions$1.ViewContainersRegistry))).reg
|
|
|
132
132
|
ctorDescriptor: ( (new SyncDescriptor(MarkersView))),
|
|
133
133
|
openCommandActionDescriptor: {
|
|
134
134
|
id: 'workbench.actions.view.problems',
|
|
135
|
-
mnemonicTitle: ( localize(
|
|
135
|
+
mnemonicTitle: ( localize(1858, "&&Problems")),
|
|
136
136
|
keybindings: { primary: 2048 | 1024 | 43 },
|
|
137
137
|
order: 0,
|
|
138
138
|
}
|
|
@@ -142,9 +142,9 @@ registerAction2(class extends ViewAction {
|
|
|
142
142
|
constructor() {
|
|
143
143
|
super({
|
|
144
144
|
id: `workbench.actions.table.${Markers.MARKERS_VIEW_ID}.viewAsTree`,
|
|
145
|
-
title: ( localize(
|
|
145
|
+
title: ( localize(1859, "View as Tree")),
|
|
146
146
|
metadata: {
|
|
147
|
-
description: ( localize2(
|
|
147
|
+
description: ( localize2(1860, "Show the problems view as a tree."))
|
|
148
148
|
},
|
|
149
149
|
menu: {
|
|
150
150
|
id: MenuId.ViewTitle,
|
|
@@ -167,9 +167,9 @@ registerAction2(class extends ViewAction {
|
|
|
167
167
|
constructor() {
|
|
168
168
|
super({
|
|
169
169
|
id: `workbench.actions.table.${Markers.MARKERS_VIEW_ID}.viewAsTable`,
|
|
170
|
-
title: ( localize(
|
|
170
|
+
title: ( localize(1861, "View as Table")),
|
|
171
171
|
metadata: {
|
|
172
|
-
description: ( localize2(
|
|
172
|
+
description: ( localize2(1862, "Show the problems view as a table."))
|
|
173
173
|
},
|
|
174
174
|
menu: {
|
|
175
175
|
id: MenuId.ViewTitle,
|
|
@@ -192,11 +192,11 @@ registerAction2(class extends ViewAction {
|
|
|
192
192
|
constructor() {
|
|
193
193
|
super({
|
|
194
194
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleErrors`,
|
|
195
|
-
title: ( localize(
|
|
195
|
+
title: ( localize(1863, "Show Errors")),
|
|
196
196
|
metadata: {
|
|
197
|
-
description: ( localize2(
|
|
197
|
+
description: ( localize2(1864, "Show or hide errors in the problems view."))
|
|
198
198
|
},
|
|
199
|
-
category: ( localize(
|
|
199
|
+
category: ( localize(1865, "Problems")),
|
|
200
200
|
toggled: MarkersContextKeys.ShowErrorsFilterContextKey,
|
|
201
201
|
menu: {
|
|
202
202
|
id: viewFilterSubmenu,
|
|
@@ -215,11 +215,11 @@ registerAction2(class extends ViewAction {
|
|
|
215
215
|
constructor() {
|
|
216
216
|
super({
|
|
217
217
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleWarnings`,
|
|
218
|
-
title: ( localize(
|
|
218
|
+
title: ( localize(1866, "Show Warnings")),
|
|
219
219
|
metadata: {
|
|
220
|
-
description: ( localize2(
|
|
220
|
+
description: ( localize2(1867, "Show or hide warnings in the problems view."))
|
|
221
221
|
},
|
|
222
|
-
category: ( localize(
|
|
222
|
+
category: ( localize(1865, "Problems")),
|
|
223
223
|
toggled: MarkersContextKeys.ShowWarningsFilterContextKey,
|
|
224
224
|
menu: {
|
|
225
225
|
id: viewFilterSubmenu,
|
|
@@ -238,11 +238,11 @@ registerAction2(class extends ViewAction {
|
|
|
238
238
|
constructor() {
|
|
239
239
|
super({
|
|
240
240
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleInfos`,
|
|
241
|
-
title: ( localize(
|
|
242
|
-
category: ( localize(
|
|
241
|
+
title: ( localize(1868, "Show Infos")),
|
|
242
|
+
category: ( localize(1865, "Problems")),
|
|
243
243
|
toggled: MarkersContextKeys.ShowInfoFilterContextKey,
|
|
244
244
|
metadata: {
|
|
245
|
-
description: ( localize2(
|
|
245
|
+
description: ( localize2(1869, "Show or hide infos in the problems view."))
|
|
246
246
|
},
|
|
247
247
|
menu: {
|
|
248
248
|
id: viewFilterSubmenu,
|
|
@@ -261,14 +261,14 @@ registerAction2(class extends ViewAction {
|
|
|
261
261
|
constructor() {
|
|
262
262
|
super({
|
|
263
263
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleActiveFile`,
|
|
264
|
-
title: ( localize(
|
|
264
|
+
title: ( localize(1870, "Show Active File Only")),
|
|
265
265
|
metadata: {
|
|
266
266
|
description: ( localize2(
|
|
267
|
-
|
|
267
|
+
1871,
|
|
268
268
|
"Show or hide problems (errors, warnings, info) only from the active file in the problems view."
|
|
269
269
|
))
|
|
270
270
|
},
|
|
271
|
-
category: ( localize(
|
|
271
|
+
category: ( localize(1865, "Problems")),
|
|
272
272
|
toggled: MarkersContextKeys.ShowActiveFileFilterContextKey,
|
|
273
273
|
menu: {
|
|
274
274
|
id: viewFilterSubmenu,
|
|
@@ -287,11 +287,11 @@ registerAction2(class extends ViewAction {
|
|
|
287
287
|
constructor() {
|
|
288
288
|
super({
|
|
289
289
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleExcludedFiles`,
|
|
290
|
-
title: ( localize(
|
|
290
|
+
title: ( localize(1872, "Show Excluded Files")),
|
|
291
291
|
metadata: {
|
|
292
|
-
description: ( localize2(
|
|
292
|
+
description: ( localize2(1873, "Show or hide excluded files in the problems view."))
|
|
293
293
|
},
|
|
294
|
-
category: ( localize(
|
|
294
|
+
category: ( localize(1865, "Problems")),
|
|
295
295
|
toggled: ( (MarkersContextKeys.ShowExcludedFilesFilterContextKey.negate())),
|
|
296
296
|
menu: {
|
|
297
297
|
id: viewFilterSubmenu,
|
|
@@ -328,7 +328,7 @@ registerAction2(class extends ViewAction {
|
|
|
328
328
|
)));
|
|
329
329
|
super({
|
|
330
330
|
id: Markers.MARKER_COPY_ACTION_ID,
|
|
331
|
-
title: ( localize2(
|
|
331
|
+
title: ( localize2(1874, 'Copy')),
|
|
332
332
|
menu: {
|
|
333
333
|
id: MenuId.ProblemsPanelContext,
|
|
334
334
|
when,
|
|
@@ -368,7 +368,7 @@ registerAction2(class extends ViewAction {
|
|
|
368
368
|
constructor() {
|
|
369
369
|
super({
|
|
370
370
|
id: Markers.MARKER_COPY_MESSAGE_ACTION_ID,
|
|
371
|
-
title: ( localize2(
|
|
371
|
+
title: ( localize2(1875, 'Copy Message')),
|
|
372
372
|
menu: {
|
|
373
373
|
id: MenuId.ProblemsPanelContext,
|
|
374
374
|
when: MarkersContextKeys.MarkerFocusContextKey,
|
|
@@ -389,7 +389,7 @@ registerAction2(class extends ViewAction {
|
|
|
389
389
|
constructor() {
|
|
390
390
|
super({
|
|
391
391
|
id: Markers.RELATED_INFORMATION_COPY_MESSAGE_ACTION_ID,
|
|
392
|
-
title: ( localize2(
|
|
392
|
+
title: ( localize2(1875, 'Copy Message')),
|
|
393
393
|
menu: {
|
|
394
394
|
id: MenuId.ProblemsPanelContext,
|
|
395
395
|
when: MarkersContextKeys.RelatedInformationFocusContextKey,
|
|
@@ -410,7 +410,7 @@ registerAction2(class extends ViewAction {
|
|
|
410
410
|
constructor() {
|
|
411
411
|
super({
|
|
412
412
|
id: Markers.FOCUS_PROBLEMS_FROM_FILTER,
|
|
413
|
-
title: ( localize(
|
|
413
|
+
title: ( localize(1876, "Focus problems view")),
|
|
414
414
|
keybinding: {
|
|
415
415
|
when: MarkersContextKeys.MarkerViewFilterFocusContextKey,
|
|
416
416
|
weight: 200 ,
|
|
@@ -427,7 +427,7 @@ registerAction2(class extends ViewAction {
|
|
|
427
427
|
constructor() {
|
|
428
428
|
super({
|
|
429
429
|
id: Markers.MARKERS_VIEW_FOCUS_FILTER,
|
|
430
|
-
title: ( localize(
|
|
430
|
+
title: ( localize(1877, "Focus problems filter")),
|
|
431
431
|
keybinding: {
|
|
432
432
|
when: ( (FocusedViewContext.isEqualTo(Markers.MARKERS_VIEW_ID))),
|
|
433
433
|
weight: 200 ,
|
|
@@ -444,8 +444,8 @@ registerAction2(class extends ViewAction {
|
|
|
444
444
|
constructor() {
|
|
445
445
|
super({
|
|
446
446
|
id: Markers.MARKERS_VIEW_SHOW_MULTILINE_MESSAGE,
|
|
447
|
-
title: ( localize2(
|
|
448
|
-
category: ( localize(
|
|
447
|
+
title: ( localize2(1878, "Show message in multiple lines")),
|
|
448
|
+
category: ( localize(1865, "Problems")),
|
|
449
449
|
menu: {
|
|
450
450
|
id: MenuId.CommandPalette,
|
|
451
451
|
when: ( (ContextKeyExpr.has(getVisbileViewContextKey(Markers.MARKERS_VIEW_ID))))
|
|
@@ -461,8 +461,8 @@ registerAction2(class extends ViewAction {
|
|
|
461
461
|
constructor() {
|
|
462
462
|
super({
|
|
463
463
|
id: Markers.MARKERS_VIEW_SHOW_SINGLELINE_MESSAGE,
|
|
464
|
-
title: ( localize2(
|
|
465
|
-
category: ( localize(
|
|
464
|
+
title: ( localize2(1879, "Show message in single line")),
|
|
465
|
+
category: ( localize(1865, "Problems")),
|
|
466
466
|
menu: {
|
|
467
467
|
id: MenuId.CommandPalette,
|
|
468
468
|
when: ( (ContextKeyExpr.has(getVisbileViewContextKey(Markers.MARKERS_VIEW_ID))))
|
|
@@ -478,8 +478,8 @@ registerAction2(class extends ViewAction {
|
|
|
478
478
|
constructor() {
|
|
479
479
|
super({
|
|
480
480
|
id: Markers.MARKERS_VIEW_CLEAR_FILTER_TEXT,
|
|
481
|
-
title: ( localize(
|
|
482
|
-
category: ( localize(
|
|
481
|
+
title: ( localize(1880, "Clear filters text")),
|
|
482
|
+
category: ( localize(1865, "Problems")),
|
|
483
483
|
keybinding: {
|
|
484
484
|
when: MarkersContextKeys.MarkerViewFilterFocusContextKey,
|
|
485
485
|
weight: 200 ,
|
|
@@ -496,7 +496,7 @@ registerAction2(class extends ViewAction {
|
|
|
496
496
|
constructor() {
|
|
497
497
|
super({
|
|
498
498
|
id: `workbench.actions.treeView.${Markers.MARKERS_VIEW_ID}.collapseAll`,
|
|
499
|
-
title: ( localize(
|
|
499
|
+
title: ( localize(1881, "Collapse All")),
|
|
500
500
|
menu: {
|
|
501
501
|
id: MenuId.ViewTitle,
|
|
502
502
|
when: ( (ContextKeyExpr.and(
|
|
@@ -566,7 +566,7 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
|
|
|
566
566
|
const markersStatistics = this.markerService.getStatistics();
|
|
567
567
|
const tooltip = this.getMarkersTooltip(markersStatistics);
|
|
568
568
|
return {
|
|
569
|
-
name: ( localize(
|
|
569
|
+
name: ( localize(1882, "Problems")),
|
|
570
570
|
text: this.getMarkersText(markersStatistics),
|
|
571
571
|
ariaLabel: tooltip,
|
|
572
572
|
tooltip,
|
|
@@ -577,9 +577,9 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
|
|
|
577
577
|
this.statusbarService.updateEntryVisibility('status.problemsVisibility', true);
|
|
578
578
|
const openSettingsCommand = 'workbench.action.openSettings';
|
|
579
579
|
const configureSettingsLabel = '@id:problems.visibility';
|
|
580
|
-
const tooltip = ( localize(
|
|
580
|
+
const tooltip = ( localize(1883, "Problems are turned off. Click to open settings."));
|
|
581
581
|
return {
|
|
582
|
-
name: ( localize(
|
|
582
|
+
name: ( localize(1884, "Problems Visibility")),
|
|
583
583
|
text: '$(whole-word)',
|
|
584
584
|
ariaLabel: tooltip,
|
|
585
585
|
tooltip,
|
|
@@ -588,9 +588,9 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
|
|
|
588
588
|
};
|
|
589
589
|
}
|
|
590
590
|
getMarkersTooltip(stats) {
|
|
591
|
-
const errorTitle = (n) => ( localize(
|
|
592
|
-
const warningTitle = (n) => ( localize(
|
|
593
|
-
const infoTitle = (n) => ( localize(
|
|
591
|
+
const errorTitle = (n) => ( localize(1885, "Errors: {0}", n));
|
|
592
|
+
const warningTitle = (n) => ( localize(1886, "Warnings: {0}", n));
|
|
593
|
+
const infoTitle = (n) => ( localize(1887, "Infos: {0}", n));
|
|
594
594
|
const titles = [];
|
|
595
595
|
if (stats.errors > 0) {
|
|
596
596
|
titles.push(errorTitle(stats.errors));
|
|
@@ -602,7 +602,7 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
|
|
|
602
602
|
titles.push(infoTitle(stats.infos));
|
|
603
603
|
}
|
|
604
604
|
if (titles.length === 0) {
|
|
605
|
-
return ( localize(
|
|
605
|
+
return ( localize(1888, "No Problems"));
|
|
606
606
|
}
|
|
607
607
|
return titles.join(', ');
|
|
608
608
|
}
|
|
@@ -616,7 +616,7 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
|
|
|
616
616
|
return problemsText.join(' ');
|
|
617
617
|
}
|
|
618
618
|
packNumber(n) {
|
|
619
|
-
const manyProblems = ( localize(
|
|
619
|
+
const manyProblems = ( localize(1889, "10K+"));
|
|
620
620
|
return n > 9999 ? manyProblems : n > 999 ? ( (n.toString())).charAt(0) + 'K' : ( (n.toString()));
|
|
621
621
|
}
|
|
622
622
|
};
|
|
@@ -639,7 +639,7 @@ let ActivityUpdater = class ActivityUpdater extends Disposable {
|
|
|
639
639
|
const { errors, warnings, infos } = this.markerService.getStatistics();
|
|
640
640
|
const total = errors + warnings + infos;
|
|
641
641
|
if (total > 0) {
|
|
642
|
-
const message = ( localize(
|
|
642
|
+
const message = ( localize(1890, 'Total {0} Problems', total));
|
|
643
643
|
this.activity.value = this.activityService.showViewActivity(Markers.MARKERS_VIEW_ID, { badge: ( (new NumberBadge(total, () => message))) });
|
|
644
644
|
}
|
|
645
645
|
else {
|
|
@@ -23,7 +23,7 @@ import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/confi
|
|
|
23
23
|
class MarkersDecorationsProvider {
|
|
24
24
|
constructor(_markerService) {
|
|
25
25
|
this._markerService = _markerService;
|
|
26
|
-
this.label = ( localize(
|
|
26
|
+
this.label = ( localize(5540, "Problems"));
|
|
27
27
|
this.onDidChange = _markerService.onMarkerChanged;
|
|
28
28
|
}
|
|
29
29
|
provideDecorations(resource) {
|
|
@@ -43,7 +43,7 @@ class MarkersDecorationsProvider {
|
|
|
43
43
|
return {
|
|
44
44
|
weight: 100 * first.severity,
|
|
45
45
|
bubble: true,
|
|
46
|
-
tooltip: markers.length === 1 ? ( localize(
|
|
46
|
+
tooltip: markers.length === 1 ? ( localize(5541, "1 problem in this file")) : ( localize(5542, "{0} problems in this file", markers.length)),
|
|
47
47
|
letter: markers.length < 10 ? ( (markers.length.toString())) : '9+',
|
|
48
48
|
color: first.severity === MarkerSeverity.Error ? listErrorForeground : listWarningForeground,
|
|
49
49
|
};
|
|
@@ -103,7 +103,7 @@ MarkersFileDecorations = ( (__decorate([
|
|
|
103
103
|
'properties': {
|
|
104
104
|
'problems.decorations.enabled': {
|
|
105
105
|
'markdownDescription': ( localize(
|
|
106
|
-
|
|
106
|
+
5543,
|
|
107
107
|
"Show Errors & Warnings on files and folder. Overwritten by {0} when it is off.",
|
|
108
108
|
'`#problems.visibility#`'
|
|
109
109
|
)),
|
|
@@ -227,7 +227,7 @@ let MarkersTable = class MarkersTable extends Disposable {
|
|
|
227
227
|
project(row) { return row; }
|
|
228
228
|
},
|
|
229
229
|
{
|
|
230
|
-
label: ( localize(
|
|
230
|
+
label: ( localize(10298, "Code")),
|
|
231
231
|
tooltip: '',
|
|
232
232
|
weight: 1,
|
|
233
233
|
minimumWidth: 100,
|
|
@@ -236,21 +236,21 @@ let MarkersTable = class MarkersTable extends Disposable {
|
|
|
236
236
|
project(row) { return row; }
|
|
237
237
|
},
|
|
238
238
|
{
|
|
239
|
-
label: ( localize(
|
|
239
|
+
label: ( localize(10299, "Message")),
|
|
240
240
|
tooltip: '',
|
|
241
241
|
weight: 4,
|
|
242
242
|
templateId: MarkerMessageColumnRenderer.TEMPLATE_ID,
|
|
243
243
|
project(row) { return row; }
|
|
244
244
|
},
|
|
245
245
|
{
|
|
246
|
-
label: ( localize(
|
|
246
|
+
label: ( localize(10300, "File")),
|
|
247
247
|
tooltip: '',
|
|
248
248
|
weight: 2,
|
|
249
249
|
templateId: MarkerFileColumnRenderer.TEMPLATE_ID,
|
|
250
250
|
project(row) { return row; }
|
|
251
251
|
},
|
|
252
252
|
{
|
|
253
|
-
label: ( localize(
|
|
253
|
+
label: ( localize(10301, "Source")),
|
|
254
254
|
tooltip: '',
|
|
255
255
|
weight: 1,
|
|
256
256
|
minimumWidth: 100,
|
|
@@ -46,7 +46,7 @@ let MarkersWidgetAccessibilityProvider = class MarkersWidgetAccessibilityProvide
|
|
|
46
46
|
this.labelService = labelService;
|
|
47
47
|
}
|
|
48
48
|
getWidgetAriaLabel() {
|
|
49
|
-
return ( localize(
|
|
49
|
+
return ( localize(10293, "Problems View"));
|
|
50
50
|
}
|
|
51
51
|
getAriaLabel(element) {
|
|
52
52
|
if (element instanceof ResourceMarkers) {
|
|
@@ -175,11 +175,11 @@ MarkerRenderer = ( (__decorate([
|
|
|
175
175
|
( (__param(3, IOpenerService)))
|
|
176
176
|
], MarkerRenderer)));
|
|
177
177
|
const expandedIcon = registerIcon('markers-view-multi-line-expanded', Codicon.chevronUp, ( localize(
|
|
178
|
-
|
|
178
|
+
10294,
|
|
179
179
|
'Icon indicating that multiple lines are shown in the markers view.'
|
|
180
180
|
)));
|
|
181
181
|
const collapsedIcon = registerIcon('markers-view-multi-line-collapsed', Codicon.chevronDown, ( localize(
|
|
182
|
-
|
|
182
|
+
10295,
|
|
183
183
|
'Icon indicating that multiple lines are collapsed in the markers view.'
|
|
184
184
|
)));
|
|
185
185
|
const toggleMultilineAction = 'problems.action.toggleMultiline';
|
|
@@ -258,7 +258,7 @@ class MarkerWidget extends Disposable {
|
|
|
258
258
|
const multiline = viewModel && viewModel.multiline;
|
|
259
259
|
const action = ( (new Action(toggleMultilineAction)));
|
|
260
260
|
action.enabled = !!viewModel && marker.lines.length > 1;
|
|
261
|
-
action.tooltip = multiline ? ( localize(
|
|
261
|
+
action.tooltip = multiline ? ( localize(10296, "Show message in single line")) : ( localize(10297, "Show message in multiple lines"));
|
|
262
262
|
action.class = ThemeIcon.asClassName(multiline ? expandedIcon : collapsedIcon);
|
|
263
263
|
action.run = () => { if (viewModel) {
|
|
264
264
|
viewModel.multiline = !viewModel.multiline;
|
|
@@ -175,7 +175,7 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
175
175
|
this.filterWidget.focus();
|
|
176
176
|
}
|
|
177
177
|
updateBadge(total, filtered) {
|
|
178
|
-
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( localize(
|
|
178
|
+
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( localize(5544, "Showing {0} of {1}", filtered, total)));
|
|
179
179
|
}
|
|
180
180
|
checkMoreFilters() {
|
|
181
181
|
this.filterWidget.checkMoreFilters(!this.filters.showErrors || !this.filters.showWarnings || !this.filters.showInfos || this.filters.excludedFiles || this.filters.activeFile);
|
|
@@ -557,10 +557,10 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
557
557
|
else {
|
|
558
558
|
this.messageBoxContainer.style.display = 'none';
|
|
559
559
|
if (filtered === total) {
|
|
560
|
-
this.setAriaLabel(( localize(
|
|
560
|
+
this.setAriaLabel(( localize(5545, "Showing {0} problems", total)));
|
|
561
561
|
}
|
|
562
562
|
else {
|
|
563
|
-
this.setAriaLabel(( localize(
|
|
563
|
+
this.setAriaLabel(( localize(5546, "Showing {0} of {1} problems", filtered, total)));
|
|
564
564
|
}
|
|
565
565
|
this.messageBoxContainer.removeAttribute('tabIndex');
|
|
566
566
|
}
|
|
@@ -577,7 +577,7 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
577
577
|
const span1 = append(container, $('span'));
|
|
578
578
|
span1.textContent = Messages.MARKERS_PANEL_NO_PROBLEMS_FILTERS;
|
|
579
579
|
const link = append(container, $('a.messageAction'));
|
|
580
|
-
link.textContent = ( localize(
|
|
580
|
+
link.textContent = ( localize(5547, "Clear Filters"));
|
|
581
581
|
link.setAttribute('tabIndex', '0');
|
|
582
582
|
const span2 = append(container, $('span'));
|
|
583
583
|
span2.textContent = '.';
|
|
@@ -3,46 +3,46 @@ import { basename } from 'vscode/vscode/vs/base/common/resources';
|
|
|
3
3
|
import { MarkerSeverity } from 'vscode/vscode/vs/platform/markers/common/markers';
|
|
4
4
|
|
|
5
5
|
class Messages {
|
|
6
|
-
static { this.MARKERS_PANEL_TOGGLE_LABEL = ( localize(
|
|
7
|
-
static { this.MARKERS_PANEL_SHOW_LABEL = ( localize2(
|
|
8
|
-
static { this.PROBLEMS_PANEL_CONFIGURATION_TITLE = ( localize(
|
|
6
|
+
static { this.MARKERS_PANEL_TOGGLE_LABEL = ( localize(5548, "Toggle Problems (Errors, Warnings, Infos)")); }
|
|
7
|
+
static { this.MARKERS_PANEL_SHOW_LABEL = ( localize2(5549, "Focus Problems (Errors, Warnings, Infos)")); }
|
|
8
|
+
static { this.PROBLEMS_PANEL_CONFIGURATION_TITLE = ( localize(5550, "Problems View")); }
|
|
9
9
|
static { this.PROBLEMS_PANEL_CONFIGURATION_AUTO_REVEAL = ( localize(
|
|
10
|
-
|
|
10
|
+
5551,
|
|
11
11
|
"Controls whether Problems view should automatically reveal files when opening them."
|
|
12
12
|
)); }
|
|
13
|
-
static { this.PROBLEMS_PANEL_CONFIGURATION_VIEW_MODE = ( localize(
|
|
14
|
-
static { this.PROBLEMS_PANEL_CONFIGURATION_SHOW_CURRENT_STATUS = ( localize(
|
|
15
|
-
static { this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER = ( localize(
|
|
16
|
-
static { this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER_SEVERITY = ( localize(
|
|
17
|
-
static { this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER_POSITION = ( localize(
|
|
18
|
-
static { this.MARKERS_PANEL_TITLE_PROBLEMS = ( localize2(
|
|
19
|
-
static { this.MARKERS_PANEL_NO_PROBLEMS_BUILT = ( localize(
|
|
20
|
-
static { this.MARKERS_PANEL_NO_PROBLEMS_ACTIVE_FILE_BUILT = ( localize(
|
|
21
|
-
static { this.MARKERS_PANEL_NO_PROBLEMS_FILTERS = ( localize(
|
|
22
|
-
static { this.MARKERS_PANEL_ACTION_TOOLTIP_MORE_FILTERS = ( localize(
|
|
23
|
-
static { this.MARKERS_PANEL_FILTER_LABEL_SHOW_ERRORS = ( localize(
|
|
24
|
-
static { this.MARKERS_PANEL_FILTER_LABEL_SHOW_WARNINGS = ( localize(
|
|
25
|
-
static { this.MARKERS_PANEL_FILTER_LABEL_SHOW_INFOS = ( localize(
|
|
26
|
-
static { this.MARKERS_PANEL_FILTER_LABEL_EXCLUDED_FILES = ( localize(
|
|
27
|
-
static { this.MARKERS_PANEL_FILTER_LABEL_ACTIVE_FILE = ( localize(
|
|
28
|
-
static { this.MARKERS_PANEL_ACTION_TOOLTIP_FILTER = ( localize(
|
|
29
|
-
static { this.MARKERS_PANEL_ACTION_TOOLTIP_QUICKFIX = ( localize(
|
|
30
|
-
static { this.MARKERS_PANEL_FILTER_ARIA_LABEL = ( localize(
|
|
31
|
-
static { this.MARKERS_PANEL_FILTER_PLACEHOLDER = ( localize(
|
|
32
|
-
static { this.MARKERS_PANEL_FILTER_ERRORS = ( localize(
|
|
33
|
-
static { this.MARKERS_PANEL_FILTER_WARNINGS = ( localize(
|
|
34
|
-
static { this.MARKERS_PANEL_FILTER_INFOS = ( localize(
|
|
35
|
-
static { this.MARKERS_PANEL_SINGLE_ERROR_LABEL = ( localize(
|
|
36
|
-
static { this.MARKERS_PANEL_MULTIPLE_ERRORS_LABEL = (noOfErrors) => { return ( localize(
|
|
37
|
-
static { this.MARKERS_PANEL_SINGLE_WARNING_LABEL = ( localize(
|
|
38
|
-
static { this.MARKERS_PANEL_MULTIPLE_WARNINGS_LABEL = (noOfWarnings) => { return ( localize(
|
|
39
|
-
static { this.MARKERS_PANEL_SINGLE_INFO_LABEL = ( localize(
|
|
40
|
-
static { this.MARKERS_PANEL_MULTIPLE_INFOS_LABEL = (noOfInfos) => { return ( localize(
|
|
41
|
-
static { this.MARKERS_PANEL_SINGLE_UNKNOWN_LABEL = ( localize(
|
|
42
|
-
static { this.MARKERS_PANEL_MULTIPLE_UNKNOWNS_LABEL = (noOfUnknowns) => { return ( localize(
|
|
43
|
-
static { this.MARKERS_PANEL_AT_LINE_COL_NUMBER = (ln, col) => { return ( localize(
|
|
13
|
+
static { this.PROBLEMS_PANEL_CONFIGURATION_VIEW_MODE = ( localize(5552, "Controls the default view mode of the Problems view.")); }
|
|
14
|
+
static { this.PROBLEMS_PANEL_CONFIGURATION_SHOW_CURRENT_STATUS = ( localize(5553, "When enabled shows the current problem in the status bar.")); }
|
|
15
|
+
static { this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER = ( localize(5554, "Controls the order in which problems are navigated.")); }
|
|
16
|
+
static { this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER_SEVERITY = ( localize(5555, "Navigate problems ordered by severity")); }
|
|
17
|
+
static { this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER_POSITION = ( localize(5556, "Navigate problems ordered by position")); }
|
|
18
|
+
static { this.MARKERS_PANEL_TITLE_PROBLEMS = ( localize2(5557, "Problems")); }
|
|
19
|
+
static { this.MARKERS_PANEL_NO_PROBLEMS_BUILT = ( localize(5558, "No problems have been detected in the workspace.")); }
|
|
20
|
+
static { this.MARKERS_PANEL_NO_PROBLEMS_ACTIVE_FILE_BUILT = ( localize(5559, "No problems have been detected in the current file.")); }
|
|
21
|
+
static { this.MARKERS_PANEL_NO_PROBLEMS_FILTERS = ( localize(5560, "No results found with provided filter criteria.")); }
|
|
22
|
+
static { this.MARKERS_PANEL_ACTION_TOOLTIP_MORE_FILTERS = ( localize(5561, "More Filters...")); }
|
|
23
|
+
static { this.MARKERS_PANEL_FILTER_LABEL_SHOW_ERRORS = ( localize(5562, "Show Errors")); }
|
|
24
|
+
static { this.MARKERS_PANEL_FILTER_LABEL_SHOW_WARNINGS = ( localize(5563, "Show Warnings")); }
|
|
25
|
+
static { this.MARKERS_PANEL_FILTER_LABEL_SHOW_INFOS = ( localize(5564, "Show Infos")); }
|
|
26
|
+
static { this.MARKERS_PANEL_FILTER_LABEL_EXCLUDED_FILES = ( localize(5565, "Hide Excluded Files")); }
|
|
27
|
+
static { this.MARKERS_PANEL_FILTER_LABEL_ACTIVE_FILE = ( localize(5566, "Show Active File Only")); }
|
|
28
|
+
static { this.MARKERS_PANEL_ACTION_TOOLTIP_FILTER = ( localize(5567, "Filter Problems")); }
|
|
29
|
+
static { this.MARKERS_PANEL_ACTION_TOOLTIP_QUICKFIX = ( localize(5568, "Show fixes")); }
|
|
30
|
+
static { this.MARKERS_PANEL_FILTER_ARIA_LABEL = ( localize(5569, "Filter Problems")); }
|
|
31
|
+
static { this.MARKERS_PANEL_FILTER_PLACEHOLDER = ( localize(5570, "Filter (e.g. text, **/*.ts, !**/node_modules/**)")); }
|
|
32
|
+
static { this.MARKERS_PANEL_FILTER_ERRORS = ( localize(5571, "errors")); }
|
|
33
|
+
static { this.MARKERS_PANEL_FILTER_WARNINGS = ( localize(5572, "warnings")); }
|
|
34
|
+
static { this.MARKERS_PANEL_FILTER_INFOS = ( localize(5573, "infos")); }
|
|
35
|
+
static { this.MARKERS_PANEL_SINGLE_ERROR_LABEL = ( localize(5574, "1 Error")); }
|
|
36
|
+
static { this.MARKERS_PANEL_MULTIPLE_ERRORS_LABEL = (noOfErrors) => { return ( localize(5575, "{0} Errors", '' + noOfErrors)); }; }
|
|
37
|
+
static { this.MARKERS_PANEL_SINGLE_WARNING_LABEL = ( localize(5576, "1 Warning")); }
|
|
38
|
+
static { this.MARKERS_PANEL_MULTIPLE_WARNINGS_LABEL = (noOfWarnings) => { return ( localize(5577, "{0} Warnings", '' + noOfWarnings)); }; }
|
|
39
|
+
static { this.MARKERS_PANEL_SINGLE_INFO_LABEL = ( localize(5578, "1 Info")); }
|
|
40
|
+
static { this.MARKERS_PANEL_MULTIPLE_INFOS_LABEL = (noOfInfos) => { return ( localize(5579, "{0} Infos", '' + noOfInfos)); }; }
|
|
41
|
+
static { this.MARKERS_PANEL_SINGLE_UNKNOWN_LABEL = ( localize(5580, "1 Unknown")); }
|
|
42
|
+
static { this.MARKERS_PANEL_MULTIPLE_UNKNOWNS_LABEL = (noOfUnknowns) => { return ( localize(5581, "{0} Unknowns", '' + noOfUnknowns)); }; }
|
|
43
|
+
static { this.MARKERS_PANEL_AT_LINE_COL_NUMBER = (ln, col) => { return ( localize(5582, "[Ln {0}, Col {1}]", '' + ln, '' + col)); }; }
|
|
44
44
|
static { this.MARKERS_TREE_ARIA_LABEL_RESOURCE = (noOfProblems, fileName, folder) => { return ( localize(
|
|
45
|
-
|
|
45
|
+
5583,
|
|
46
46
|
"{0} problems in file {1} of folder {2}",
|
|
47
47
|
noOfProblems,
|
|
48
48
|
fileName,
|
|
@@ -50,14 +50,14 @@ class Messages {
|
|
|
50
50
|
)); }; }
|
|
51
51
|
static { this.MARKERS_TREE_ARIA_LABEL_MARKER = (marker) => {
|
|
52
52
|
const relatedInformationMessage = marker.relatedInformation.length ? ( localize(
|
|
53
|
-
|
|
53
|
+
5584,
|
|
54
54
|
" This problem has references to {0} locations.",
|
|
55
55
|
marker.relatedInformation.length
|
|
56
56
|
)) : '';
|
|
57
57
|
switch (marker.marker.severity) {
|
|
58
58
|
case MarkerSeverity.Error:
|
|
59
59
|
return marker.marker.source ? ( localize(
|
|
60
|
-
|
|
60
|
+
5585,
|
|
61
61
|
"Error: {0} at line {1} and character {2}.{3} generated by {4}",
|
|
62
62
|
marker.marker.message,
|
|
63
63
|
marker.marker.startLineNumber,
|
|
@@ -66,7 +66,7 @@ class Messages {
|
|
|
66
66
|
marker.marker.source
|
|
67
67
|
))
|
|
68
68
|
: ( localize(
|
|
69
|
-
|
|
69
|
+
5586,
|
|
70
70
|
"Error: {0} at line {1} and character {2}.{3}",
|
|
71
71
|
marker.marker.message,
|
|
72
72
|
marker.marker.startLineNumber,
|
|
@@ -75,7 +75,7 @@ class Messages {
|
|
|
75
75
|
));
|
|
76
76
|
case MarkerSeverity.Warning:
|
|
77
77
|
return marker.marker.source ? ( localize(
|
|
78
|
-
|
|
78
|
+
5587,
|
|
79
79
|
"Warning: {0} at line {1} and character {2}.{3} generated by {4}",
|
|
80
80
|
marker.marker.message,
|
|
81
81
|
marker.marker.startLineNumber,
|
|
@@ -84,7 +84,7 @@ class Messages {
|
|
|
84
84
|
marker.marker.source
|
|
85
85
|
))
|
|
86
86
|
: ( localize(
|
|
87
|
-
|
|
87
|
+
5588,
|
|
88
88
|
"Warning: {0} at line {1} and character {2}.{3}",
|
|
89
89
|
marker.marker.message,
|
|
90
90
|
marker.marker.startLineNumber,
|
|
@@ -94,7 +94,7 @@ class Messages {
|
|
|
94
94
|
));
|
|
95
95
|
case MarkerSeverity.Info:
|
|
96
96
|
return marker.marker.source ? ( localize(
|
|
97
|
-
|
|
97
|
+
5589,
|
|
98
98
|
"Info: {0} at line {1} and character {2}.{3} generated by {4}",
|
|
99
99
|
marker.marker.message,
|
|
100
100
|
marker.marker.startLineNumber,
|
|
@@ -103,7 +103,7 @@ class Messages {
|
|
|
103
103
|
marker.marker.source
|
|
104
104
|
))
|
|
105
105
|
: ( localize(
|
|
106
|
-
|
|
106
|
+
5590,
|
|
107
107
|
"Info: {0} at line {1} and character {2}.{3}",
|
|
108
108
|
marker.marker.message,
|
|
109
109
|
marker.marker.startLineNumber,
|
|
@@ -112,7 +112,7 @@ class Messages {
|
|
|
112
112
|
));
|
|
113
113
|
default:
|
|
114
114
|
return marker.marker.source ? ( localize(
|
|
115
|
-
|
|
115
|
+
5591,
|
|
116
116
|
"Problem: {0} at line {1} and character {2}.{3} generated by {4}",
|
|
117
117
|
marker.marker.source,
|
|
118
118
|
marker.marker.message,
|
|
@@ -122,7 +122,7 @@ class Messages {
|
|
|
122
122
|
marker.marker.source
|
|
123
123
|
))
|
|
124
124
|
: ( localize(
|
|
125
|
-
|
|
125
|
+
5592,
|
|
126
126
|
"Problem: {0} at line {1} and character {2}.{3}",
|
|
127
127
|
marker.marker.message,
|
|
128
128
|
marker.marker.startLineNumber,
|
|
@@ -132,14 +132,14 @@ class Messages {
|
|
|
132
132
|
}
|
|
133
133
|
}; }
|
|
134
134
|
static { this.MARKERS_TREE_ARIA_LABEL_RELATED_INFORMATION = (relatedInformation) => ( localize(
|
|
135
|
-
|
|
135
|
+
5593,
|
|
136
136
|
"{0} at line {1} and character {2} in {3}",
|
|
137
137
|
relatedInformation.message,
|
|
138
138
|
relatedInformation.startLineNumber,
|
|
139
139
|
relatedInformation.startColumn,
|
|
140
140
|
basename(relatedInformation.resource)
|
|
141
141
|
)); }
|
|
142
|
-
static { this.SHOW_ERRORS_WARNINGS_ACTION_LABEL = ( localize(
|
|
142
|
+
static { this.SHOW_ERRORS_WARNINGS_ACTION_LABEL = ( localize(5594, "Show Errors and Warnings")); }
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
export { Messages as default };
|