@codingame/monaco-vscode-markers-service-override 10.1.4 → 11.0.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 +50 -26
- package/vscode/src/vs/workbench/contrib/markers/browser/markersFileDecorations.js +3 -3
- package/vscode/src/vs/workbench/contrib/markers/browser/markersModel.js +6 -10
- 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/media/markers.css.js +1 -1
- 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": "
|
|
3
|
+
"version": "11.0.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@
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@11.0.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(2347, '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(2348, "&&Problems")),
|
|
136
136
|
keybindings: { primary: 2048 | 1024 | 43 },
|
|
137
137
|
order: 0,
|
|
138
138
|
}
|
|
@@ -142,7 +142,10 @@ 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(2349, "View as Tree")),
|
|
146
|
+
metadata: {
|
|
147
|
+
description: ( localize2(2350, "Show the problems view as a tree."))
|
|
148
|
+
},
|
|
146
149
|
menu: {
|
|
147
150
|
id: MenuId.ViewTitle,
|
|
148
151
|
when: ( (ContextKeyExpr.and(
|
|
@@ -164,7 +167,10 @@ registerAction2(class extends ViewAction {
|
|
|
164
167
|
constructor() {
|
|
165
168
|
super({
|
|
166
169
|
id: `workbench.actions.table.${Markers.MARKERS_VIEW_ID}.viewAsTable`,
|
|
167
|
-
title: ( localize(
|
|
170
|
+
title: ( localize(2351, "View as Table")),
|
|
171
|
+
metadata: {
|
|
172
|
+
description: ( localize2(2352, "Show the problems view as a table."))
|
|
173
|
+
},
|
|
168
174
|
menu: {
|
|
169
175
|
id: MenuId.ViewTitle,
|
|
170
176
|
when: ( (ContextKeyExpr.and(
|
|
@@ -186,7 +192,10 @@ registerAction2(class extends ViewAction {
|
|
|
186
192
|
constructor() {
|
|
187
193
|
super({
|
|
188
194
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleErrors`,
|
|
189
|
-
title: ( localize(
|
|
195
|
+
title: ( localize(2353, "Show Errors")),
|
|
196
|
+
metadata: {
|
|
197
|
+
description: ( localize2(2354, "Show or hide errors in the problems view."))
|
|
198
|
+
},
|
|
190
199
|
category: ( localize(2355, "Problems")),
|
|
191
200
|
toggled: MarkersContextKeys.ShowErrorsFilterContextKey,
|
|
192
201
|
menu: {
|
|
@@ -207,6 +216,9 @@ registerAction2(class extends ViewAction {
|
|
|
207
216
|
super({
|
|
208
217
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleWarnings`,
|
|
209
218
|
title: ( localize(2356, "Show Warnings")),
|
|
219
|
+
metadata: {
|
|
220
|
+
description: ( localize2(2357, "Show or hide warnings in the problems view."))
|
|
221
|
+
},
|
|
210
222
|
category: ( localize(2355, "Problems")),
|
|
211
223
|
toggled: MarkersContextKeys.ShowWarningsFilterContextKey,
|
|
212
224
|
menu: {
|
|
@@ -226,9 +238,12 @@ registerAction2(class extends ViewAction {
|
|
|
226
238
|
constructor() {
|
|
227
239
|
super({
|
|
228
240
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleInfos`,
|
|
229
|
-
title: ( localize(
|
|
241
|
+
title: ( localize(2358, "Show Infos")),
|
|
230
242
|
category: ( localize(2355, "Problems")),
|
|
231
243
|
toggled: MarkersContextKeys.ShowInfoFilterContextKey,
|
|
244
|
+
metadata: {
|
|
245
|
+
description: ( localize2(2359, "Show or hide infos in the problems view."))
|
|
246
|
+
},
|
|
232
247
|
menu: {
|
|
233
248
|
id: viewFilterSubmenu,
|
|
234
249
|
group: '1_filter',
|
|
@@ -246,7 +261,13 @@ registerAction2(class extends ViewAction {
|
|
|
246
261
|
constructor() {
|
|
247
262
|
super({
|
|
248
263
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleActiveFile`,
|
|
249
|
-
title: ( localize(
|
|
264
|
+
title: ( localize(2360, "Show Active File Only")),
|
|
265
|
+
metadata: {
|
|
266
|
+
description: ( localize2(
|
|
267
|
+
2361,
|
|
268
|
+
"Show or hide problems (errors, warnings, info) only from the active file in the problems view."
|
|
269
|
+
))
|
|
270
|
+
},
|
|
250
271
|
category: ( localize(2355, "Problems")),
|
|
251
272
|
toggled: MarkersContextKeys.ShowActiveFileFilterContextKey,
|
|
252
273
|
menu: {
|
|
@@ -266,7 +287,10 @@ registerAction2(class extends ViewAction {
|
|
|
266
287
|
constructor() {
|
|
267
288
|
super({
|
|
268
289
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleExcludedFiles`,
|
|
269
|
-
title: ( localize(
|
|
290
|
+
title: ( localize(2362, "Show Excluded Files")),
|
|
291
|
+
metadata: {
|
|
292
|
+
description: ( localize2(2363, "Show or hide excluded files in the problems view."))
|
|
293
|
+
},
|
|
270
294
|
category: ( localize(2355, "Problems")),
|
|
271
295
|
toggled: ( (MarkersContextKeys.ShowExcludedFilesFilterContextKey.negate())),
|
|
272
296
|
menu: {
|
|
@@ -304,7 +328,7 @@ registerAction2(class extends ViewAction {
|
|
|
304
328
|
)));
|
|
305
329
|
super({
|
|
306
330
|
id: Markers.MARKER_COPY_ACTION_ID,
|
|
307
|
-
title: ( localize2(
|
|
331
|
+
title: ( localize2(2364, 'Copy')),
|
|
308
332
|
menu: {
|
|
309
333
|
id: MenuId.ProblemsPanelContext,
|
|
310
334
|
when,
|
|
@@ -344,7 +368,7 @@ registerAction2(class extends ViewAction {
|
|
|
344
368
|
constructor() {
|
|
345
369
|
super({
|
|
346
370
|
id: Markers.MARKER_COPY_MESSAGE_ACTION_ID,
|
|
347
|
-
title: ( localize2(
|
|
371
|
+
title: ( localize2(2365, 'Copy Message')),
|
|
348
372
|
menu: {
|
|
349
373
|
id: MenuId.ProblemsPanelContext,
|
|
350
374
|
when: MarkersContextKeys.MarkerFocusContextKey,
|
|
@@ -365,7 +389,7 @@ registerAction2(class extends ViewAction {
|
|
|
365
389
|
constructor() {
|
|
366
390
|
super({
|
|
367
391
|
id: Markers.RELATED_INFORMATION_COPY_MESSAGE_ACTION_ID,
|
|
368
|
-
title: ( localize2(
|
|
392
|
+
title: ( localize2(2365, 'Copy Message')),
|
|
369
393
|
menu: {
|
|
370
394
|
id: MenuId.ProblemsPanelContext,
|
|
371
395
|
when: MarkersContextKeys.RelatedInformationFocusContextKey,
|
|
@@ -386,7 +410,7 @@ registerAction2(class extends ViewAction {
|
|
|
386
410
|
constructor() {
|
|
387
411
|
super({
|
|
388
412
|
id: Markers.FOCUS_PROBLEMS_FROM_FILTER,
|
|
389
|
-
title: ( localize(
|
|
413
|
+
title: ( localize(2366, "Focus problems view")),
|
|
390
414
|
keybinding: {
|
|
391
415
|
when: MarkersContextKeys.MarkerViewFilterFocusContextKey,
|
|
392
416
|
weight: 200 ,
|
|
@@ -403,7 +427,7 @@ registerAction2(class extends ViewAction {
|
|
|
403
427
|
constructor() {
|
|
404
428
|
super({
|
|
405
429
|
id: Markers.MARKERS_VIEW_FOCUS_FILTER,
|
|
406
|
-
title: ( localize(
|
|
430
|
+
title: ( localize(2367, "Focus problems filter")),
|
|
407
431
|
keybinding: {
|
|
408
432
|
when: ( (FocusedViewContext.isEqualTo(Markers.MARKERS_VIEW_ID))),
|
|
409
433
|
weight: 200 ,
|
|
@@ -420,7 +444,7 @@ registerAction2(class extends ViewAction {
|
|
|
420
444
|
constructor() {
|
|
421
445
|
super({
|
|
422
446
|
id: Markers.MARKERS_VIEW_SHOW_MULTILINE_MESSAGE,
|
|
423
|
-
title: ( localize2(
|
|
447
|
+
title: ( localize2(2368, "Show message in multiple lines")),
|
|
424
448
|
category: ( localize(2355, "Problems")),
|
|
425
449
|
menu: {
|
|
426
450
|
id: MenuId.CommandPalette,
|
|
@@ -437,7 +461,7 @@ registerAction2(class extends ViewAction {
|
|
|
437
461
|
constructor() {
|
|
438
462
|
super({
|
|
439
463
|
id: Markers.MARKERS_VIEW_SHOW_SINGLELINE_MESSAGE,
|
|
440
|
-
title: ( localize2(
|
|
464
|
+
title: ( localize2(2369, "Show message in single line")),
|
|
441
465
|
category: ( localize(2355, "Problems")),
|
|
442
466
|
menu: {
|
|
443
467
|
id: MenuId.CommandPalette,
|
|
@@ -454,7 +478,7 @@ registerAction2(class extends ViewAction {
|
|
|
454
478
|
constructor() {
|
|
455
479
|
super({
|
|
456
480
|
id: Markers.MARKERS_VIEW_CLEAR_FILTER_TEXT,
|
|
457
|
-
title: ( localize(
|
|
481
|
+
title: ( localize(2370, "Clear filters text")),
|
|
458
482
|
category: ( localize(2355, "Problems")),
|
|
459
483
|
keybinding: {
|
|
460
484
|
when: MarkersContextKeys.MarkerViewFilterFocusContextKey,
|
|
@@ -472,7 +496,7 @@ registerAction2(class extends ViewAction {
|
|
|
472
496
|
constructor() {
|
|
473
497
|
super({
|
|
474
498
|
id: `workbench.actions.treeView.${Markers.MARKERS_VIEW_ID}.collapseAll`,
|
|
475
|
-
title: ( localize(
|
|
499
|
+
title: ( localize(2371, "Collapse All")),
|
|
476
500
|
menu: {
|
|
477
501
|
id: MenuId.ViewTitle,
|
|
478
502
|
when: ( (ContextKeyExpr.and(
|
|
@@ -542,7 +566,7 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
|
|
|
542
566
|
const markersStatistics = this.markerService.getStatistics();
|
|
543
567
|
const tooltip = this.getMarkersTooltip(markersStatistics);
|
|
544
568
|
return {
|
|
545
|
-
name: ( localize(
|
|
569
|
+
name: ( localize(2372, "Problems")),
|
|
546
570
|
text: this.getMarkersText(markersStatistics),
|
|
547
571
|
ariaLabel: tooltip,
|
|
548
572
|
tooltip,
|
|
@@ -553,9 +577,9 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
|
|
|
553
577
|
this.statusbarService.updateEntryVisibility('status.problemsVisibility', true);
|
|
554
578
|
const openSettingsCommand = 'workbench.action.openSettings';
|
|
555
579
|
const configureSettingsLabel = '@id:problems.visibility';
|
|
556
|
-
const tooltip = ( localize(
|
|
580
|
+
const tooltip = ( localize(2373, "Problems are turned off. Click to open settings."));
|
|
557
581
|
return {
|
|
558
|
-
name: ( localize(
|
|
582
|
+
name: ( localize(2374, "Problems Visibility")),
|
|
559
583
|
text: '$(whole-word)',
|
|
560
584
|
ariaLabel: tooltip,
|
|
561
585
|
tooltip,
|
|
@@ -564,9 +588,9 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
|
|
|
564
588
|
};
|
|
565
589
|
}
|
|
566
590
|
getMarkersTooltip(stats) {
|
|
567
|
-
const errorTitle = (n) => ( localize(
|
|
568
|
-
const warningTitle = (n) => ( localize(
|
|
569
|
-
const infoTitle = (n) => ( localize(
|
|
591
|
+
const errorTitle = (n) => ( localize(2375, "Errors: {0}", n));
|
|
592
|
+
const warningTitle = (n) => ( localize(2376, "Warnings: {0}", n));
|
|
593
|
+
const infoTitle = (n) => ( localize(2377, "Infos: {0}", n));
|
|
570
594
|
const titles = [];
|
|
571
595
|
if (stats.errors > 0) {
|
|
572
596
|
titles.push(errorTitle(stats.errors));
|
|
@@ -578,7 +602,7 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
|
|
|
578
602
|
titles.push(infoTitle(stats.infos));
|
|
579
603
|
}
|
|
580
604
|
if (titles.length === 0) {
|
|
581
|
-
return ( localize(
|
|
605
|
+
return ( localize(2378, "No Problems"));
|
|
582
606
|
}
|
|
583
607
|
return titles.join(', ');
|
|
584
608
|
}
|
|
@@ -592,7 +616,7 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
|
|
|
592
616
|
return problemsText.join(' ');
|
|
593
617
|
}
|
|
594
618
|
packNumber(n) {
|
|
595
|
-
const manyProblems = ( localize(
|
|
619
|
+
const manyProblems = ( localize(2379, "10K+"));
|
|
596
620
|
return n > 9999 ? manyProblems : n > 999 ? ( (n.toString())).charAt(0) + 'K' : ( (n.toString()));
|
|
597
621
|
}
|
|
598
622
|
};
|
|
@@ -615,7 +639,7 @@ let ActivityUpdater = class ActivityUpdater extends Disposable {
|
|
|
615
639
|
const { errors, warnings, infos } = this.markerService.getStatistics();
|
|
616
640
|
const total = errors + warnings + infos;
|
|
617
641
|
if (total > 0) {
|
|
618
|
-
const message = ( localize(
|
|
642
|
+
const message = ( localize(2380, 'Total {0} Problems', total));
|
|
619
643
|
this.activity.value = this.activityService.showViewActivity(Markers.MARKERS_VIEW_ID, { badge: ( (new NumberBadge(total, () => message))) });
|
|
620
644
|
}
|
|
621
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(5625, "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(5626, "1 problem in this file")) : ( localize(5627, "{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
|
+
5628,
|
|
107
107
|
"Show Errors & Warnings on files and folder. Overwritten by {0} when it is off.",
|
|
108
108
|
'`#problems.visibility#`'
|
|
109
109
|
)),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { extUri, basename } from 'vscode/vscode/vs/base/common/resources';
|
|
2
|
-
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
3
|
-
import { MarkerSeverity, IMarkerData } from 'vscode/vscode/vs/platform/markers/common/markers';
|
|
4
1
|
import { isNonEmptyArray } from 'vscode/vscode/vs/base/common/arrays';
|
|
5
|
-
import { ResourceMap } from 'vscode/vscode/vs/base/common/map';
|
|
6
2
|
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
7
|
-
import {
|
|
3
|
+
import { hash } from 'vscode/vscode/vs/base/common/hash';
|
|
4
|
+
import { ResourceMap } from 'vscode/vscode/vs/base/common/map';
|
|
5
|
+
import { extUri, basename } from 'vscode/vscode/vs/base/common/resources';
|
|
8
6
|
import { splitLines } from 'vscode/vscode/vs/base/common/strings';
|
|
7
|
+
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
8
|
+
import { MarkerSeverity, IMarkerData } from 'vscode/vscode/vs/platform/markers/common/markers';
|
|
9
9
|
import { unsupportedSchemas } from 'vscode/vscode/vs/platform/markers/common/markerService';
|
|
10
10
|
|
|
11
11
|
function compareMarkersByUri(a, b) {
|
|
@@ -187,11 +187,7 @@ class MarkersModel {
|
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
id(...values) {
|
|
190
|
-
|
|
191
|
-
for (const value of values) {
|
|
192
|
-
hasher.hash(value);
|
|
193
|
-
}
|
|
194
|
-
return `${hasher.value}`;
|
|
190
|
+
return `${hash(values)}`;
|
|
195
191
|
}
|
|
196
192
|
dispose() {
|
|
197
193
|
this._onDidChange.dispose();
|
|
@@ -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(10329, "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(10330, "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(10331, "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(10332, "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(10324, "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
|
+
10325,
|
|
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
|
+
10326,
|
|
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(10327, "Show message in single line")) : ( localize(10328, "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(5629, "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(5630, "Showing {0} problems", total)));
|
|
561
561
|
}
|
|
562
562
|
else {
|
|
563
|
-
this.setAriaLabel(( localize(
|
|
563
|
+
this.setAriaLabel(( localize(5631, "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(5632, "Clear Filters"));
|
|
581
581
|
link.setAttribute('tabIndex', '0');
|
|
582
582
|
const span2 = append(container, $('span'));
|
|
583
583
|
span2.textContent = '.';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import n from 'vscode/external/rollup-plugin-styles/dist/runtime/inject-css.js';
|
|
2
2
|
|
|
3
|
-
var css = ".markers-panel .markers-panel-container{height:100%}.markers-panel .hide{display:none}.markers-panel .markers-panel-container .message-box-container{line-height:22px;padding-left:20px}.markers-panel .markers-panel-container .message-box-container .messageAction{cursor:pointer;margin-left:4px;text-decoration:underline}.markers-panel .markers-panel-container .hidden{display:none}.markers-panel .markers-panel-container .codicon.codicon-light-bulb{color:var(--vscode-editorLightBulb-foreground)}.markers-panel .markers-panel-container .codicon.codicon-lightbulb-autofix{color:var(--vscode-editorLightBulbAutoFix-foreground)}.markers-panel .markers-panel-container .tree-container.hidden{display:none;visibility:hidden}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents{display:flex;line-height:22px;padding-right:10px}.monaco-workbench.hc-black .markers-panel .markers-panel-container .tree-container .monaco-tl-contents,.monaco-workbench.hc-light .markers-panel .markers-panel-container .tree-container .monaco-tl-contents{line-height:20px}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .marker-stats{display:inline-block;margin-left:10px}.markers-panel:not(.wide) .markers-panel-container .tree-container .monaco-tl-contents .resource-label-container{flex:1}.markers-panel.wide .markers-panel-container .tree-container .monaco-tl-contents .count-badge-wrapper{margin-left:10px}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .marker-message-details-container{flex:1;overflow:hidden}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .marker-message-details-container>.marker-message-line{overflow:hidden}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .marker-message-details-container>.marker-message-line>.marker-message{overflow:hidden;text-overflow:ellipsis;white-space:
|
|
3
|
+
var css = ".markers-panel .markers-panel-container{height:100%}.markers-panel .hide{display:none}.markers-panel .markers-panel-container .message-box-container{line-height:22px;padding-left:20px}.markers-panel .markers-panel-container .message-box-container .messageAction{cursor:pointer;margin-left:4px;text-decoration:underline}.markers-panel .markers-panel-container .hidden{display:none}.markers-panel .markers-panel-container .codicon.codicon-light-bulb{color:var(--vscode-editorLightBulb-foreground)}.markers-panel .markers-panel-container .codicon.codicon-lightbulb-autofix{color:var(--vscode-editorLightBulbAutoFix-foreground)}.markers-panel .markers-panel-container .tree-container.hidden{display:none;visibility:hidden}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents{display:flex;line-height:22px;padding-right:10px}.monaco-workbench.hc-black .markers-panel .markers-panel-container .tree-container .monaco-tl-contents,.monaco-workbench.hc-light .markers-panel .markers-panel-container .tree-container .monaco-tl-contents{line-height:20px}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .marker-stats{display:inline-block;margin-left:10px}.markers-panel:not(.wide) .markers-panel-container .tree-container .monaco-tl-contents .resource-label-container{flex:1}.markers-panel.wide .markers-panel-container .tree-container .monaco-tl-contents .count-badge-wrapper{margin-left:10px}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .marker-message-details-container{flex:1;overflow:hidden}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .marker-message-details-container>.marker-message-line{overflow:hidden}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .marker-message-details-container>.marker-message-line>.marker-message{overflow:hidden;text-overflow:ellipsis;white-space:pre}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .marker-message-details-container>.marker-message-line.details-container{display:flex}.markers-panel .markers-panel-container .tree-container .monaco-list:focus .monaco-list-row.focused .monaco-tl-contents .details-container a.monaco-link{color:inherit}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .details-container a.monaco-link .monaco-highlighted-label{text-decoration:underline;text-underline-position:under}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .marker-code:before{content:\"(\"}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .marker-code:after{content:\")\"}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .details-container .marker-line,.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .details-container .marker-source,.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .details-container .multiline-actions{margin-left:6px}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .marker-code,.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .marker-line,.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .marker-source,.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .related-info-resource,.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .related-info-resource-separator{opacity:.7}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .highlight{font-weight:700}.markers-panel .monaco-tl-contents .marker-icon{align-items:center;display:flex;height:22px;justify-content:center;margin:0 6px}.markers-panel .monaco-list-row.focused .monaco-tl-contents>.marker-icon.quickFix,.markers-panel .monaco-list-row.selected .monaco-tl-contents>.marker-icon.quickFix,.markers-panel .monaco-list-row:hover .monaco-tl-contents>.marker-icon.quickFix,.markers-panel .monaco-tl-contents .actions .monaco-action-bar{display:none}.markers-panel .monaco-list-row.focused .monaco-tl-contents .actions .monaco-action-bar,.markers-panel .monaco-list-row.selected .monaco-tl-contents .actions .monaco-action-bar,.markers-panel .monaco-list-row:hover .monaco-tl-contents .actions .monaco-action-bar{display:block}.markers-panel .monaco-tl-contents .actions,.markers-panel .monaco-tl-contents .multiline-actions .monaco-action-bar{height:22px}.markers-panel .monaco-tl-contents .actions .action-label,.markers-panel .monaco-tl-contents .multiline-actions .monaco-action-bar .action-label{padding:2px}.markers-panel .monaco-tl-contents .actions .action-item{margin:0 4px}.markers-panel .monaco-tl-contents .actions .action-item.disabled,.markers-panel .monaco-tl-contents .multiline-actions .action-item.disabled{display:none}.markers-panel .markers-table-container .monaco-table .monaco-table-th{align-items:center;display:flex;font-weight:600;padding-left:10px}.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td{align-items:center;display:flex;padding-left:10px}.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td .highlight{font-weight:700}.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.code,.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.file,.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.message,.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.owner{overflow:hidden;text-overflow:ellipsis}.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.severity{display:flex}.markers-panel .markers-table-container .monaco-table .monaco-list-row.focused .monaco-table-tr>.monaco-table-td.quickFix>.severity,.markers-panel .markers-table-container .monaco-table .monaco-list-row.selected .monaco-table-tr>.monaco-table-td.quickFix>.severity,.markers-panel .markers-table-container .monaco-table .monaco-list-row:hover .monaco-table-tr>.monaco-table-td.quickFix>.severity{display:none}.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.actions{margin-left:-3px}.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.actions>.monaco-action-bar .action-item{display:none}.markers-panel .markers-table-container .monaco-table .monaco-list-row.focused .monaco-table-tr>.monaco-table-td.quickFix>.actions>.monaco-action-bar .action-item,.markers-panel .markers-table-container .monaco-table .monaco-list-row.selected .monaco-table-tr>.monaco-table-td.quickFix>.actions>.monaco-action-bar .action-item,.markers-panel .markers-table-container .monaco-table .monaco-list-row:hover .monaco-table-tr>.monaco-table-td.quickFix>.actions>.monaco-action-bar .action-item{display:flex}.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.code>.code-label:before,.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.code>.monaco-link:before{content:\"(\"}.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.code>.code-label:after,.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.code>.monaco-link:after{content:\")\"}.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.code>.code-label,.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.code>.monaco-link{display:none}.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.code.code-label>.code-label{display:inline}.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.code.code-link>.monaco-link{display:inline;text-decoration:underline}.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.file>.file-position{margin-left:6px;opacity:.7}";
|
|
4
4
|
n(css,{});
|
|
5
5
|
|
|
6
6
|
export { css, css as default };
|
|
@@ -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(5633, "Toggle Problems (Errors, Warnings, Infos)")); }
|
|
7
|
+
static { this.MARKERS_PANEL_SHOW_LABEL = ( localize2(5634, "Focus Problems (Errors, Warnings, Infos)")); }
|
|
8
|
+
static { this.PROBLEMS_PANEL_CONFIGURATION_TITLE = ( localize(5635, "Problems View")); }
|
|
9
9
|
static { this.PROBLEMS_PANEL_CONFIGURATION_AUTO_REVEAL = ( localize(
|
|
10
|
-
|
|
10
|
+
5636,
|
|
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(5637, "Controls the default view mode of the Problems view.")); }
|
|
14
|
+
static { this.PROBLEMS_PANEL_CONFIGURATION_SHOW_CURRENT_STATUS = ( localize(5638, "When enabled shows the current problem in the status bar.")); }
|
|
15
|
+
static { this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER = ( localize(5639, "Controls the order in which problems are navigated.")); }
|
|
16
|
+
static { this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER_SEVERITY = ( localize(5640, "Navigate problems ordered by severity")); }
|
|
17
|
+
static { this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER_POSITION = ( localize(5641, "Navigate problems ordered by position")); }
|
|
18
|
+
static { this.MARKERS_PANEL_TITLE_PROBLEMS = ( localize2(5642, "Problems")); }
|
|
19
|
+
static { this.MARKERS_PANEL_NO_PROBLEMS_BUILT = ( localize(5643, "No problems have been detected in the workspace.")); }
|
|
20
|
+
static { this.MARKERS_PANEL_NO_PROBLEMS_ACTIVE_FILE_BUILT = ( localize(5644, "No problems have been detected in the current file.")); }
|
|
21
|
+
static { this.MARKERS_PANEL_NO_PROBLEMS_FILTERS = ( localize(5645, "No results found with provided filter criteria.")); }
|
|
22
|
+
static { this.MARKERS_PANEL_ACTION_TOOLTIP_MORE_FILTERS = ( localize(5646, "More Filters...")); }
|
|
23
|
+
static { this.MARKERS_PANEL_FILTER_LABEL_SHOW_ERRORS = ( localize(5647, "Show Errors")); }
|
|
24
|
+
static { this.MARKERS_PANEL_FILTER_LABEL_SHOW_WARNINGS = ( localize(5648, "Show Warnings")); }
|
|
25
|
+
static { this.MARKERS_PANEL_FILTER_LABEL_SHOW_INFOS = ( localize(5649, "Show Infos")); }
|
|
26
|
+
static { this.MARKERS_PANEL_FILTER_LABEL_EXCLUDED_FILES = ( localize(5650, "Hide Excluded Files")); }
|
|
27
|
+
static { this.MARKERS_PANEL_FILTER_LABEL_ACTIVE_FILE = ( localize(5651, "Show Active File Only")); }
|
|
28
|
+
static { this.MARKERS_PANEL_ACTION_TOOLTIP_FILTER = ( localize(5652, "Filter Problems")); }
|
|
29
|
+
static { this.MARKERS_PANEL_ACTION_TOOLTIP_QUICKFIX = ( localize(5653, "Show fixes")); }
|
|
30
|
+
static { this.MARKERS_PANEL_FILTER_ARIA_LABEL = ( localize(5654, "Filter Problems")); }
|
|
31
|
+
static { this.MARKERS_PANEL_FILTER_PLACEHOLDER = ( localize(5655, "Filter (e.g. text, **/*.ts, !**/node_modules/**)")); }
|
|
32
|
+
static { this.MARKERS_PANEL_FILTER_ERRORS = ( localize(5656, "errors")); }
|
|
33
|
+
static { this.MARKERS_PANEL_FILTER_WARNINGS = ( localize(5657, "warnings")); }
|
|
34
|
+
static { this.MARKERS_PANEL_FILTER_INFOS = ( localize(5658, "infos")); }
|
|
35
|
+
static { this.MARKERS_PANEL_SINGLE_ERROR_LABEL = ( localize(5659, "1 Error")); }
|
|
36
|
+
static { this.MARKERS_PANEL_MULTIPLE_ERRORS_LABEL = (noOfErrors) => { return ( localize(5660, "{0} Errors", '' + noOfErrors)); }; }
|
|
37
|
+
static { this.MARKERS_PANEL_SINGLE_WARNING_LABEL = ( localize(5661, "1 Warning")); }
|
|
38
|
+
static { this.MARKERS_PANEL_MULTIPLE_WARNINGS_LABEL = (noOfWarnings) => { return ( localize(5662, "{0} Warnings", '' + noOfWarnings)); }; }
|
|
39
|
+
static { this.MARKERS_PANEL_SINGLE_INFO_LABEL = ( localize(5663, "1 Info")); }
|
|
40
|
+
static { this.MARKERS_PANEL_MULTIPLE_INFOS_LABEL = (noOfInfos) => { return ( localize(5664, "{0} Infos", '' + noOfInfos)); }; }
|
|
41
|
+
static { this.MARKERS_PANEL_SINGLE_UNKNOWN_LABEL = ( localize(5665, "1 Unknown")); }
|
|
42
|
+
static { this.MARKERS_PANEL_MULTIPLE_UNKNOWNS_LABEL = (noOfUnknowns) => { return ( localize(5666, "{0} Unknowns", '' + noOfUnknowns)); }; }
|
|
43
|
+
static { this.MARKERS_PANEL_AT_LINE_COL_NUMBER = (ln, col) => { return ( localize(5667, "[Ln {0}, Col {1}]", '' + ln, '' + col)); }; }
|
|
44
44
|
static { this.MARKERS_TREE_ARIA_LABEL_RESOURCE = (noOfProblems, fileName, folder) => { return ( localize(
|
|
45
|
-
|
|
45
|
+
5668,
|
|
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
|
+
5669,
|
|
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
|
+
5670,
|
|
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
|
+
5671,
|
|
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
|
+
5672,
|
|
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
|
+
5673,
|
|
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
|
+
5674,
|
|
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
|
+
5675,
|
|
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
|
+
5676,
|
|
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
|
+
5677,
|
|
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
|
+
5678,
|
|
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(5679, "Show Errors and Warnings")); }
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
export { Messages as default };
|