@codingame/monaco-vscode-markers-service-override 1.83.5 → 1.83.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/markers/browser/markers.contribution.js +194 -38
- package/vscode/src/vs/workbench/contrib/markers/browser/markersTable.js +20 -4
- package/vscode/src/vs/workbench/contrib/markers/browser/markersTreeViewer.js +24 -4
- package/vscode/src/vs/workbench/contrib/markers/browser/markersView.js +25 -4
- package/vscode/src/vs/workbench/contrib/markers/browser/messages.js +287 -47
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-markers-service-override",
|
|
3
|
-
"version": "1.83.
|
|
3
|
+
"version": "1.83.6",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@1.83.
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@1.83.6",
|
|
22
22
|
"monaco-editor": "0.44.0"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -108,7 +108,11 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
108
108
|
},
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
|
-
const markersViewIcon = registerIcon('markers-view-icon', Codicon.warning, localizeWithPath(
|
|
111
|
+
const markersViewIcon = registerIcon('markers-view-icon', Codicon.warning, ( localizeWithPath(
|
|
112
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
113
|
+
'markersViewIcon',
|
|
114
|
+
'View icon of the markers view.'
|
|
115
|
+
)));
|
|
112
116
|
const VIEW_CONTAINER = ( Registry.as(Extensions$1.ViewContainersRegistry)).registerViewContainer({
|
|
113
117
|
id: Markers.MARKERS_CONTAINER_ID,
|
|
114
118
|
title: { value: Messages.MARKERS_PANEL_TITLE_PROBLEMS, original: Messages.MARKERS_PANEL_ORIGINAL_TITLE_PROBLEMS },
|
|
@@ -130,7 +134,11 @@ const VIEW_CONTAINER = ( Registry.as(Extensions$1.ViewContainersRegistry)).regis
|
|
|
130
134
|
ctorDescriptor: ( new SyncDescriptor(MarkersView)),
|
|
131
135
|
openCommandActionDescriptor: {
|
|
132
136
|
id: 'workbench.actions.view.problems',
|
|
133
|
-
mnemonicTitle: localizeWithPath(
|
|
137
|
+
mnemonicTitle: ( localizeWithPath(
|
|
138
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
139
|
+
{ key: 'miMarker', comment: ['&& denotes a mnemonic'] },
|
|
140
|
+
"&&Problems"
|
|
141
|
+
)),
|
|
134
142
|
keybindings: { primary: 2048 | 1024 | 43 },
|
|
135
143
|
order: 0,
|
|
136
144
|
}
|
|
@@ -140,7 +148,11 @@ registerAction2(class extends ViewAction {
|
|
|
140
148
|
constructor() {
|
|
141
149
|
super({
|
|
142
150
|
id: `workbench.actions.table.${Markers.MARKERS_VIEW_ID}.viewAsTree`,
|
|
143
|
-
title: localizeWithPath(
|
|
151
|
+
title: ( localizeWithPath(
|
|
152
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
153
|
+
'viewAsTree',
|
|
154
|
+
"View as Tree"
|
|
155
|
+
)),
|
|
144
156
|
menu: {
|
|
145
157
|
id: MenuId.ViewTitle,
|
|
146
158
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('view', Markers.MARKERS_VIEW_ID)), ( MarkersContextKeys.MarkersViewModeContextKey.isEqualTo("table" )))),
|
|
@@ -159,7 +171,11 @@ registerAction2(class extends ViewAction {
|
|
|
159
171
|
constructor() {
|
|
160
172
|
super({
|
|
161
173
|
id: `workbench.actions.table.${Markers.MARKERS_VIEW_ID}.viewAsTable`,
|
|
162
|
-
title: localizeWithPath(
|
|
174
|
+
title: ( localizeWithPath(
|
|
175
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
176
|
+
'viewAsTable',
|
|
177
|
+
"View as Table"
|
|
178
|
+
)),
|
|
163
179
|
menu: {
|
|
164
180
|
id: MenuId.ViewTitle,
|
|
165
181
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('view', Markers.MARKERS_VIEW_ID)), ( MarkersContextKeys.MarkersViewModeContextKey.isEqualTo("tree" )))),
|
|
@@ -178,11 +194,23 @@ registerAction2(class extends ViewAction {
|
|
|
178
194
|
constructor() {
|
|
179
195
|
super({
|
|
180
196
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleErrors`,
|
|
181
|
-
title: localizeWithPath(
|
|
182
|
-
|
|
197
|
+
title: ( localizeWithPath(
|
|
198
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
199
|
+
'toggle errors',
|
|
200
|
+
"Toggle Errors"
|
|
201
|
+
)),
|
|
202
|
+
category: ( localizeWithPath(
|
|
203
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
204
|
+
'problems',
|
|
205
|
+
"Problems"
|
|
206
|
+
)),
|
|
183
207
|
toggled: {
|
|
184
208
|
condition: MarkersContextKeys.ShowErrorsFilterContextKey,
|
|
185
|
-
title: localizeWithPath(
|
|
209
|
+
title: ( localizeWithPath(
|
|
210
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
211
|
+
'errors',
|
|
212
|
+
"Show Errors"
|
|
213
|
+
))
|
|
186
214
|
},
|
|
187
215
|
menu: {
|
|
188
216
|
id: viewFilterSubmenu,
|
|
@@ -201,11 +229,23 @@ registerAction2(class extends ViewAction {
|
|
|
201
229
|
constructor() {
|
|
202
230
|
super({
|
|
203
231
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleWarnings`,
|
|
204
|
-
title: localizeWithPath(
|
|
205
|
-
|
|
232
|
+
title: ( localizeWithPath(
|
|
233
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
234
|
+
'toggle warnings',
|
|
235
|
+
"Toggle Warnings"
|
|
236
|
+
)),
|
|
237
|
+
category: ( localizeWithPath(
|
|
238
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
239
|
+
'problems',
|
|
240
|
+
"Problems"
|
|
241
|
+
)),
|
|
206
242
|
toggled: {
|
|
207
243
|
condition: MarkersContextKeys.ShowWarningsFilterContextKey,
|
|
208
|
-
title: localizeWithPath(
|
|
244
|
+
title: ( localizeWithPath(
|
|
245
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
246
|
+
'warnings',
|
|
247
|
+
"Show Warnings"
|
|
248
|
+
))
|
|
209
249
|
},
|
|
210
250
|
menu: {
|
|
211
251
|
id: viewFilterSubmenu,
|
|
@@ -224,11 +264,23 @@ registerAction2(class extends ViewAction {
|
|
|
224
264
|
constructor() {
|
|
225
265
|
super({
|
|
226
266
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleInfos`,
|
|
227
|
-
title: localizeWithPath(
|
|
228
|
-
|
|
267
|
+
title: ( localizeWithPath(
|
|
268
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
269
|
+
'toggle infos',
|
|
270
|
+
"Toggle Infos"
|
|
271
|
+
)),
|
|
272
|
+
category: ( localizeWithPath(
|
|
273
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
274
|
+
'problems',
|
|
275
|
+
"Problems"
|
|
276
|
+
)),
|
|
229
277
|
toggled: {
|
|
230
278
|
condition: MarkersContextKeys.ShowInfoFilterContextKey,
|
|
231
|
-
title: localizeWithPath(
|
|
279
|
+
title: ( localizeWithPath(
|
|
280
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
281
|
+
'Infos',
|
|
282
|
+
"Show Infos"
|
|
283
|
+
))
|
|
232
284
|
},
|
|
233
285
|
menu: {
|
|
234
286
|
id: viewFilterSubmenu,
|
|
@@ -247,11 +299,23 @@ registerAction2(class extends ViewAction {
|
|
|
247
299
|
constructor() {
|
|
248
300
|
super({
|
|
249
301
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleActiveFile`,
|
|
250
|
-
title: localizeWithPath(
|
|
251
|
-
|
|
302
|
+
title: ( localizeWithPath(
|
|
303
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
304
|
+
'toggle active file',
|
|
305
|
+
"Toggle Active File"
|
|
306
|
+
)),
|
|
307
|
+
category: ( localizeWithPath(
|
|
308
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
309
|
+
'problems',
|
|
310
|
+
"Problems"
|
|
311
|
+
)),
|
|
252
312
|
toggled: {
|
|
253
313
|
condition: MarkersContextKeys.ShowActiveFileFilterContextKey,
|
|
254
|
-
title: localizeWithPath(
|
|
314
|
+
title: ( localizeWithPath(
|
|
315
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
316
|
+
'Active File',
|
|
317
|
+
"Show Active File Only"
|
|
318
|
+
))
|
|
255
319
|
},
|
|
256
320
|
menu: {
|
|
257
321
|
id: viewFilterSubmenu,
|
|
@@ -270,11 +334,23 @@ registerAction2(class extends ViewAction {
|
|
|
270
334
|
constructor() {
|
|
271
335
|
super({
|
|
272
336
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleExcludedFiles`,
|
|
273
|
-
title: localizeWithPath(
|
|
274
|
-
|
|
337
|
+
title: ( localizeWithPath(
|
|
338
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
339
|
+
'toggle Excluded Files',
|
|
340
|
+
"Toggle Excluded Files"
|
|
341
|
+
)),
|
|
342
|
+
category: ( localizeWithPath(
|
|
343
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
344
|
+
'problems',
|
|
345
|
+
"Problems"
|
|
346
|
+
)),
|
|
275
347
|
toggled: {
|
|
276
348
|
condition: MarkersContextKeys.ShowExcludedFilesFilterContextKey,
|
|
277
|
-
title: localizeWithPath(
|
|
349
|
+
title: ( localizeWithPath(
|
|
350
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
351
|
+
'Excluded Files',
|
|
352
|
+
"Hide Excluded Files"
|
|
353
|
+
))
|
|
278
354
|
},
|
|
279
355
|
menu: {
|
|
280
356
|
id: viewFilterSubmenu,
|
|
@@ -307,7 +383,11 @@ registerAction2(class extends ViewAction {
|
|
|
307
383
|
const when = ( ContextKeyExpr.and(( FocusedViewContext.isEqualTo(Markers.MARKERS_VIEW_ID)), MarkersContextKeys.MarkersTreeVisibilityContextKey, ( MarkersContextKeys.RelatedInformationFocusContextKey.toNegated())));
|
|
308
384
|
super({
|
|
309
385
|
id: Markers.MARKER_COPY_ACTION_ID,
|
|
310
|
-
title: { value: localizeWithPath(
|
|
386
|
+
title: { value: ( localizeWithPath(
|
|
387
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
388
|
+
'copyMarker',
|
|
389
|
+
"Copy"
|
|
390
|
+
)), original: 'Copy' },
|
|
311
391
|
menu: {
|
|
312
392
|
id: MenuId.ProblemsPanelContext,
|
|
313
393
|
when,
|
|
@@ -347,7 +427,11 @@ registerAction2(class extends ViewAction {
|
|
|
347
427
|
constructor() {
|
|
348
428
|
super({
|
|
349
429
|
id: Markers.MARKER_COPY_MESSAGE_ACTION_ID,
|
|
350
|
-
title: { value: localizeWithPath(
|
|
430
|
+
title: { value: ( localizeWithPath(
|
|
431
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
432
|
+
'copyMessage',
|
|
433
|
+
"Copy Message"
|
|
434
|
+
)), original: 'Copy Message' },
|
|
351
435
|
menu: {
|
|
352
436
|
id: MenuId.ProblemsPanelContext,
|
|
353
437
|
when: MarkersContextKeys.MarkerFocusContextKey,
|
|
@@ -368,7 +452,11 @@ registerAction2(class extends ViewAction {
|
|
|
368
452
|
constructor() {
|
|
369
453
|
super({
|
|
370
454
|
id: Markers.RELATED_INFORMATION_COPY_MESSAGE_ACTION_ID,
|
|
371
|
-
title: { value: localizeWithPath(
|
|
455
|
+
title: { value: ( localizeWithPath(
|
|
456
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
457
|
+
'copyMessage',
|
|
458
|
+
"Copy Message"
|
|
459
|
+
)), original: 'Copy Message' },
|
|
372
460
|
menu: {
|
|
373
461
|
id: MenuId.ProblemsPanelContext,
|
|
374
462
|
when: MarkersContextKeys.RelatedInformationFocusContextKey,
|
|
@@ -389,7 +477,11 @@ registerAction2(class extends ViewAction {
|
|
|
389
477
|
constructor() {
|
|
390
478
|
super({
|
|
391
479
|
id: Markers.FOCUS_PROBLEMS_FROM_FILTER,
|
|
392
|
-
title: localizeWithPath(
|
|
480
|
+
title: ( localizeWithPath(
|
|
481
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
482
|
+
'focusProblemsList',
|
|
483
|
+
"Focus problems view"
|
|
484
|
+
)),
|
|
393
485
|
keybinding: {
|
|
394
486
|
when: MarkersContextKeys.MarkerViewFilterFocusContextKey,
|
|
395
487
|
weight: 200 ,
|
|
@@ -406,7 +498,11 @@ registerAction2(class extends ViewAction {
|
|
|
406
498
|
constructor() {
|
|
407
499
|
super({
|
|
408
500
|
id: Markers.MARKERS_VIEW_FOCUS_FILTER,
|
|
409
|
-
title: localizeWithPath(
|
|
501
|
+
title: ( localizeWithPath(
|
|
502
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
503
|
+
'focusProblemsFilter',
|
|
504
|
+
"Focus problems filter"
|
|
505
|
+
)),
|
|
410
506
|
keybinding: {
|
|
411
507
|
when: ( FocusedViewContext.isEqualTo(Markers.MARKERS_VIEW_ID)),
|
|
412
508
|
weight: 200 ,
|
|
@@ -423,8 +519,16 @@ registerAction2(class extends ViewAction {
|
|
|
423
519
|
constructor() {
|
|
424
520
|
super({
|
|
425
521
|
id: Markers.MARKERS_VIEW_SHOW_MULTILINE_MESSAGE,
|
|
426
|
-
title: { value: localizeWithPath(
|
|
427
|
-
|
|
522
|
+
title: { value: ( localizeWithPath(
|
|
523
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
524
|
+
'show multiline',
|
|
525
|
+
"Show message in multiple lines"
|
|
526
|
+
)), original: 'Problems: Show message in multiple lines' },
|
|
527
|
+
category: ( localizeWithPath(
|
|
528
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
529
|
+
'problems',
|
|
530
|
+
"Problems"
|
|
531
|
+
)),
|
|
428
532
|
menu: {
|
|
429
533
|
id: MenuId.CommandPalette,
|
|
430
534
|
when: ( ContextKeyExpr.has(getVisbileViewContextKey(Markers.MARKERS_VIEW_ID)))
|
|
@@ -440,8 +544,16 @@ registerAction2(class extends ViewAction {
|
|
|
440
544
|
constructor() {
|
|
441
545
|
super({
|
|
442
546
|
id: Markers.MARKERS_VIEW_SHOW_SINGLELINE_MESSAGE,
|
|
443
|
-
title: { value: localizeWithPath(
|
|
444
|
-
|
|
547
|
+
title: { value: ( localizeWithPath(
|
|
548
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
549
|
+
'show singleline',
|
|
550
|
+
"Show message in single line"
|
|
551
|
+
)), original: 'Problems: Show message in single line' },
|
|
552
|
+
category: ( localizeWithPath(
|
|
553
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
554
|
+
'problems',
|
|
555
|
+
"Problems"
|
|
556
|
+
)),
|
|
445
557
|
menu: {
|
|
446
558
|
id: MenuId.CommandPalette,
|
|
447
559
|
when: ( ContextKeyExpr.has(getVisbileViewContextKey(Markers.MARKERS_VIEW_ID)))
|
|
@@ -457,8 +569,16 @@ registerAction2(class extends ViewAction {
|
|
|
457
569
|
constructor() {
|
|
458
570
|
super({
|
|
459
571
|
id: Markers.MARKERS_VIEW_CLEAR_FILTER_TEXT,
|
|
460
|
-
title: localizeWithPath(
|
|
461
|
-
|
|
572
|
+
title: ( localizeWithPath(
|
|
573
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
574
|
+
'clearFiltersText',
|
|
575
|
+
"Clear filters text"
|
|
576
|
+
)),
|
|
577
|
+
category: ( localizeWithPath(
|
|
578
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
579
|
+
'problems',
|
|
580
|
+
"Problems"
|
|
581
|
+
)),
|
|
462
582
|
keybinding: {
|
|
463
583
|
when: MarkersContextKeys.MarkerViewFilterFocusContextKey,
|
|
464
584
|
weight: 200 ,
|
|
@@ -475,7 +595,11 @@ registerAction2(class extends ViewAction {
|
|
|
475
595
|
constructor() {
|
|
476
596
|
super({
|
|
477
597
|
id: `workbench.actions.treeView.${Markers.MARKERS_VIEW_ID}.collapseAll`,
|
|
478
|
-
title: localizeWithPath(
|
|
598
|
+
title: ( localizeWithPath(
|
|
599
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
600
|
+
'collapseAll',
|
|
601
|
+
"Collapse All"
|
|
602
|
+
)),
|
|
479
603
|
menu: {
|
|
480
604
|
id: MenuId.ViewTitle,
|
|
481
605
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('view', Markers.MARKERS_VIEW_ID)), ( MarkersContextKeys.MarkersViewModeContextKey.isEqualTo("tree" )))),
|
|
@@ -519,7 +643,11 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
|
|
|
519
643
|
const markersStatistics = this.markerService.getStatistics();
|
|
520
644
|
const tooltip = this.getMarkersTooltip(markersStatistics);
|
|
521
645
|
return {
|
|
522
|
-
name: localizeWithPath(
|
|
646
|
+
name: ( localizeWithPath(
|
|
647
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
648
|
+
'status.problems',
|
|
649
|
+
"Problems"
|
|
650
|
+
)),
|
|
523
651
|
text: this.getMarkersText(markersStatistics),
|
|
524
652
|
ariaLabel: tooltip,
|
|
525
653
|
tooltip,
|
|
@@ -527,9 +655,24 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
|
|
|
527
655
|
};
|
|
528
656
|
}
|
|
529
657
|
getMarkersTooltip(stats) {
|
|
530
|
-
const errorTitle = (n) => localizeWithPath(
|
|
531
|
-
|
|
532
|
-
|
|
658
|
+
const errorTitle = (n) => ( localizeWithPath(
|
|
659
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
660
|
+
'totalErrors',
|
|
661
|
+
"Errors: {0}",
|
|
662
|
+
n
|
|
663
|
+
));
|
|
664
|
+
const warningTitle = (n) => ( localizeWithPath(
|
|
665
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
666
|
+
'totalWarnings',
|
|
667
|
+
"Warnings: {0}",
|
|
668
|
+
n
|
|
669
|
+
));
|
|
670
|
+
const infoTitle = (n) => ( localizeWithPath(
|
|
671
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
672
|
+
'totalInfos',
|
|
673
|
+
"Infos: {0}",
|
|
674
|
+
n
|
|
675
|
+
));
|
|
533
676
|
const titles = [];
|
|
534
677
|
if (stats.errors > 0) {
|
|
535
678
|
titles.push(errorTitle(stats.errors));
|
|
@@ -541,7 +684,11 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
|
|
|
541
684
|
titles.push(infoTitle(stats.infos));
|
|
542
685
|
}
|
|
543
686
|
if (titles.length === 0) {
|
|
544
|
-
return localizeWithPath(
|
|
687
|
+
return ( localizeWithPath(
|
|
688
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
689
|
+
'noProblems',
|
|
690
|
+
"No Problems"
|
|
691
|
+
));
|
|
545
692
|
}
|
|
546
693
|
return titles.join(', ');
|
|
547
694
|
}
|
|
@@ -555,7 +702,11 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
|
|
|
555
702
|
return problemsText.join(' ');
|
|
556
703
|
}
|
|
557
704
|
packNumber(n) {
|
|
558
|
-
const manyProblems = localizeWithPath(
|
|
705
|
+
const manyProblems = ( localizeWithPath(
|
|
706
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
707
|
+
'manyProblems',
|
|
708
|
+
"10K+"
|
|
709
|
+
));
|
|
559
710
|
return n > 9999 ? manyProblems : n > 999 ? ( n.toString()).charAt(0) + 'K' : ( n.toString());
|
|
560
711
|
}
|
|
561
712
|
};
|
|
@@ -576,7 +727,12 @@ let ActivityUpdater = class ActivityUpdater extends Disposable {
|
|
|
576
727
|
updateBadge() {
|
|
577
728
|
const { errors, warnings, infos } = this.markerService.getStatistics();
|
|
578
729
|
const total = errors + warnings + infos;
|
|
579
|
-
const message = localizeWithPath(
|
|
730
|
+
const message = ( localizeWithPath(
|
|
731
|
+
'vs/workbench/contrib/markers/browser/markers.contribution',
|
|
732
|
+
'totalProblems',
|
|
733
|
+
'Total {0} Problems',
|
|
734
|
+
total
|
|
735
|
+
));
|
|
580
736
|
this.activity.value = this.activityService.showViewActivity(Markers.MARKERS_VIEW_ID, { badge: ( new NumberBadge(total, () => message)) });
|
|
581
737
|
}
|
|
582
738
|
};
|
|
@@ -209,7 +209,11 @@ let MarkersTable = class MarkersTable extends Disposable {
|
|
|
209
209
|
project(row) { return row; }
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
|
-
label: localizeWithPath(
|
|
212
|
+
label: ( localizeWithPath(
|
|
213
|
+
'vs/workbench/contrib/markers/browser/markersTable',
|
|
214
|
+
'codeColumnLabel',
|
|
215
|
+
"Code"
|
|
216
|
+
)),
|
|
213
217
|
tooltip: '',
|
|
214
218
|
weight: 1,
|
|
215
219
|
minimumWidth: 100,
|
|
@@ -218,21 +222,33 @@ let MarkersTable = class MarkersTable extends Disposable {
|
|
|
218
222
|
project(row) { return row; }
|
|
219
223
|
},
|
|
220
224
|
{
|
|
221
|
-
label: localizeWithPath(
|
|
225
|
+
label: ( localizeWithPath(
|
|
226
|
+
'vs/workbench/contrib/markers/browser/markersTable',
|
|
227
|
+
'messageColumnLabel',
|
|
228
|
+
"Message"
|
|
229
|
+
)),
|
|
222
230
|
tooltip: '',
|
|
223
231
|
weight: 4,
|
|
224
232
|
templateId: MarkerMessageColumnRenderer.TEMPLATE_ID,
|
|
225
233
|
project(row) { return row; }
|
|
226
234
|
},
|
|
227
235
|
{
|
|
228
|
-
label: localizeWithPath(
|
|
236
|
+
label: ( localizeWithPath(
|
|
237
|
+
'vs/workbench/contrib/markers/browser/markersTable',
|
|
238
|
+
'fileColumnLabel',
|
|
239
|
+
"File"
|
|
240
|
+
)),
|
|
229
241
|
tooltip: '',
|
|
230
242
|
weight: 2,
|
|
231
243
|
templateId: MarkerFileColumnRenderer.TEMPLATE_ID,
|
|
232
244
|
project(row) { return row; }
|
|
233
245
|
},
|
|
234
246
|
{
|
|
235
|
-
label: localizeWithPath(
|
|
247
|
+
label: ( localizeWithPath(
|
|
248
|
+
'vs/workbench/contrib/markers/browser/markersTable',
|
|
249
|
+
'sourceColumnLabel',
|
|
250
|
+
"Source"
|
|
251
|
+
)),
|
|
236
252
|
tooltip: '',
|
|
237
253
|
weight: 1,
|
|
238
254
|
minimumWidth: 100,
|
|
@@ -45,7 +45,11 @@ let MarkersWidgetAccessibilityProvider = class MarkersWidgetAccessibilityProvide
|
|
|
45
45
|
this.labelService = labelService;
|
|
46
46
|
}
|
|
47
47
|
getWidgetAriaLabel() {
|
|
48
|
-
return localizeWithPath(
|
|
48
|
+
return ( localizeWithPath(
|
|
49
|
+
'vs/workbench/contrib/markers/browser/markersTreeViewer',
|
|
50
|
+
'problemsView',
|
|
51
|
+
"Problems View"
|
|
52
|
+
));
|
|
49
53
|
}
|
|
50
54
|
getAriaLabel(element) {
|
|
51
55
|
if (element instanceof ResourceMarkers) {
|
|
@@ -170,8 +174,16 @@ MarkerRenderer = ( __decorate([
|
|
|
170
174
|
( __param(1, IInstantiationService)),
|
|
171
175
|
( __param(2, IOpenerService))
|
|
172
176
|
], MarkerRenderer));
|
|
173
|
-
const expandedIcon = registerIcon('markers-view-multi-line-expanded', Codicon.chevronUp, localizeWithPath(
|
|
174
|
-
|
|
177
|
+
const expandedIcon = registerIcon('markers-view-multi-line-expanded', Codicon.chevronUp, ( localizeWithPath(
|
|
178
|
+
'vs/workbench/contrib/markers/browser/markersTreeViewer',
|
|
179
|
+
'expandedIcon',
|
|
180
|
+
'Icon indicating that multiple lines are shown in the markers view.'
|
|
181
|
+
)));
|
|
182
|
+
const collapsedIcon = registerIcon('markers-view-multi-line-collapsed', Codicon.chevronDown, ( localizeWithPath(
|
|
183
|
+
'vs/workbench/contrib/markers/browser/markersTreeViewer',
|
|
184
|
+
'collapsedIcon',
|
|
185
|
+
'Icon indicating that multiple lines are collapsed in the markers view.'
|
|
186
|
+
)));
|
|
175
187
|
const toggleMultilineAction = 'problems.action.toggleMultiline';
|
|
176
188
|
class ToggleMultilineActionViewItem extends ActionViewItem {
|
|
177
189
|
render(container) {
|
|
@@ -244,7 +256,15 @@ class MarkerWidget extends Disposable {
|
|
|
244
256
|
const multiline = viewModel && viewModel.multiline;
|
|
245
257
|
const action = ( new Action(toggleMultilineAction));
|
|
246
258
|
action.enabled = !!viewModel && marker.lines.length > 1;
|
|
247
|
-
action.tooltip = multiline ?
|
|
259
|
+
action.tooltip = multiline ? ( localizeWithPath(
|
|
260
|
+
'vs/workbench/contrib/markers/browser/markersTreeViewer',
|
|
261
|
+
'single line',
|
|
262
|
+
"Show message in single line"
|
|
263
|
+
)) : ( localizeWithPath(
|
|
264
|
+
'vs/workbench/contrib/markers/browser/markersTreeViewer',
|
|
265
|
+
'multi line',
|
|
266
|
+
"Show message in multiple lines"
|
|
267
|
+
));
|
|
248
268
|
action.class = ThemeIcon.asClassName(multiline ? expandedIcon : collapsedIcon);
|
|
249
269
|
action.run = () => { if (viewModel) {
|
|
250
270
|
viewModel.multiline = !viewModel.multiline;
|
|
@@ -158,7 +158,13 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
158
158
|
this.filterWidget.focus();
|
|
159
159
|
}
|
|
160
160
|
updateBadge(total, filtered) {
|
|
161
|
-
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : localizeWithPath(
|
|
161
|
+
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( localizeWithPath(
|
|
162
|
+
'vs/workbench/contrib/markers/browser/markersView',
|
|
163
|
+
'showing filtered problems',
|
|
164
|
+
"Showing {0} of {1}",
|
|
165
|
+
filtered,
|
|
166
|
+
total
|
|
167
|
+
)));
|
|
162
168
|
}
|
|
163
169
|
checkMoreFilters() {
|
|
164
170
|
this.filterWidget.checkMoreFilters(!this.filters.showErrors || !this.filters.showWarnings || !this.filters.showInfos || this.filters.excludedFiles || this.filters.activeFile);
|
|
@@ -538,10 +544,21 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
538
544
|
else {
|
|
539
545
|
this.messageBoxContainer.style.display = 'none';
|
|
540
546
|
if (filtered === total) {
|
|
541
|
-
this.setAriaLabel(localizeWithPath(
|
|
547
|
+
this.setAriaLabel(( localizeWithPath(
|
|
548
|
+
'vs/workbench/contrib/markers/browser/markersView',
|
|
549
|
+
'No problems filtered',
|
|
550
|
+
"Showing {0} problems",
|
|
551
|
+
total
|
|
552
|
+
)));
|
|
542
553
|
}
|
|
543
554
|
else {
|
|
544
|
-
this.setAriaLabel(localizeWithPath(
|
|
555
|
+
this.setAriaLabel(( localizeWithPath(
|
|
556
|
+
'vs/workbench/contrib/markers/browser/markersView',
|
|
557
|
+
'problems filtered',
|
|
558
|
+
"Showing {0} of {1} problems",
|
|
559
|
+
filtered,
|
|
560
|
+
total
|
|
561
|
+
)));
|
|
545
562
|
}
|
|
546
563
|
this.messageBoxContainer.removeAttribute('tabIndex');
|
|
547
564
|
}
|
|
@@ -558,7 +575,11 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
558
575
|
const span1 = dom.append(container, dom.$('span'));
|
|
559
576
|
span1.textContent = Messages.MARKERS_PANEL_NO_PROBLEMS_FILTERS;
|
|
560
577
|
const link = dom.append(container, dom.$('a.messageAction'));
|
|
561
|
-
link.textContent = localizeWithPath(
|
|
578
|
+
link.textContent = ( localizeWithPath(
|
|
579
|
+
'vs/workbench/contrib/markers/browser/markersView',
|
|
580
|
+
'clearFilter',
|
|
581
|
+
"Clear Filters"
|
|
582
|
+
));
|
|
562
583
|
link.setAttribute('tabIndex', '0');
|
|
563
584
|
const span2 = dom.append(container, dom.$('span'));
|
|
564
585
|
span2.textContent = '.';
|
|
@@ -3,62 +3,302 @@ import { basename } from 'monaco-editor/esm/vs/base/common/resources.js';
|
|
|
3
3
|
import { MarkerSeverity } from 'monaco-editor/esm/vs/platform/markers/common/markers.js';
|
|
4
4
|
|
|
5
5
|
class Messages {
|
|
6
|
-
static { this.MARKERS_PANEL_TOGGLE_LABEL = nls.localizeWithPath(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
static { this.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
static { this.MARKERS_PANEL_TOGGLE_LABEL = ( nls.localizeWithPath(
|
|
7
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
8
|
+
'problems.view.toggle.label',
|
|
9
|
+
"Toggle Problems (Errors, Warnings, Infos)"
|
|
10
|
+
)); }
|
|
11
|
+
static { this.MARKERS_PANEL_SHOW_LABEL = ( nls.localizeWithPath(
|
|
12
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
13
|
+
'problems.view.focus.label',
|
|
14
|
+
"Focus Problems (Errors, Warnings, Infos)"
|
|
15
|
+
)); }
|
|
16
|
+
static { this.PROBLEMS_PANEL_CONFIGURATION_TITLE = ( nls.localizeWithPath(
|
|
17
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
18
|
+
'problems.panel.configuration.title',
|
|
19
|
+
"Problems View"
|
|
20
|
+
)); }
|
|
21
|
+
static { this.PROBLEMS_PANEL_CONFIGURATION_AUTO_REVEAL = ( nls.localizeWithPath(
|
|
22
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
23
|
+
'problems.panel.configuration.autoreveal',
|
|
24
|
+
"Controls whether Problems view should automatically reveal files when opening them."
|
|
25
|
+
)); }
|
|
26
|
+
static { this.PROBLEMS_PANEL_CONFIGURATION_VIEW_MODE = ( nls.localizeWithPath(
|
|
27
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
28
|
+
'problems.panel.configuration.viewMode',
|
|
29
|
+
"Controls the default view mode of the Problems view."
|
|
30
|
+
)); }
|
|
31
|
+
static { this.PROBLEMS_PANEL_CONFIGURATION_SHOW_CURRENT_STATUS = ( nls.localizeWithPath(
|
|
32
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
33
|
+
'problems.panel.configuration.showCurrentInStatus',
|
|
34
|
+
"When enabled shows the current problem in the status bar."
|
|
35
|
+
)); }
|
|
36
|
+
static { this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER = ( nls.localizeWithPath(
|
|
37
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
38
|
+
'problems.panel.configuration.compareOrder',
|
|
39
|
+
"Controls the order in which problems are navigated."
|
|
40
|
+
)); }
|
|
41
|
+
static { this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER_SEVERITY = ( nls.localizeWithPath(
|
|
42
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
43
|
+
'problems.panel.configuration.compareOrder.severity',
|
|
44
|
+
"Navigate problems ordered by severity"
|
|
45
|
+
)); }
|
|
46
|
+
static { this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER_POSITION = ( nls.localizeWithPath(
|
|
47
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
48
|
+
'problems.panel.configuration.compareOrder.position',
|
|
49
|
+
"Navigate problems ordered by position"
|
|
50
|
+
)); }
|
|
15
51
|
static { this.MARKERS_PANEL_ORIGINAL_TITLE_PROBLEMS = 'Problems'; }
|
|
16
|
-
static { this.MARKERS_PANEL_TITLE_PROBLEMS = nls.localizeWithPath(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
static { this.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
static { this.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
static { this.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
static { this.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
static { this.
|
|
42
|
-
|
|
52
|
+
static { this.MARKERS_PANEL_TITLE_PROBLEMS = ( nls.localizeWithPath(
|
|
53
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
54
|
+
'markers.panel.title.problems',
|
|
55
|
+
"Problems"
|
|
56
|
+
)); }
|
|
57
|
+
static { this.MARKERS_PANEL_NO_PROBLEMS_BUILT = ( nls.localizeWithPath(
|
|
58
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
59
|
+
'markers.panel.no.problems.build',
|
|
60
|
+
"No problems have been detected in the workspace."
|
|
61
|
+
)); }
|
|
62
|
+
static { this.MARKERS_PANEL_NO_PROBLEMS_ACTIVE_FILE_BUILT = ( nls.localizeWithPath(
|
|
63
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
64
|
+
'markers.panel.no.problems.activeFile.build',
|
|
65
|
+
"No problems have been detected in the current file."
|
|
66
|
+
)); }
|
|
67
|
+
static { this.MARKERS_PANEL_NO_PROBLEMS_FILTERS = ( nls.localizeWithPath(
|
|
68
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
69
|
+
'markers.panel.no.problems.filters',
|
|
70
|
+
"No results found with provided filter criteria."
|
|
71
|
+
)); }
|
|
72
|
+
static { this.MARKERS_PANEL_ACTION_TOOLTIP_MORE_FILTERS = ( nls.localizeWithPath(
|
|
73
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
74
|
+
'markers.panel.action.moreFilters',
|
|
75
|
+
"More Filters..."
|
|
76
|
+
)); }
|
|
77
|
+
static { this.MARKERS_PANEL_FILTER_LABEL_SHOW_ERRORS = ( nls.localizeWithPath(
|
|
78
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
79
|
+
'markers.panel.filter.showErrors',
|
|
80
|
+
"Show Errors"
|
|
81
|
+
)); }
|
|
82
|
+
static { this.MARKERS_PANEL_FILTER_LABEL_SHOW_WARNINGS = ( nls.localizeWithPath(
|
|
83
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
84
|
+
'markers.panel.filter.showWarnings',
|
|
85
|
+
"Show Warnings"
|
|
86
|
+
)); }
|
|
87
|
+
static { this.MARKERS_PANEL_FILTER_LABEL_SHOW_INFOS = ( nls.localizeWithPath(
|
|
88
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
89
|
+
'markers.panel.filter.showInfos',
|
|
90
|
+
"Show Infos"
|
|
91
|
+
)); }
|
|
92
|
+
static { this.MARKERS_PANEL_FILTER_LABEL_EXCLUDED_FILES = ( nls.localizeWithPath(
|
|
93
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
94
|
+
'markers.panel.filter.useFilesExclude',
|
|
95
|
+
"Hide Excluded Files"
|
|
96
|
+
)); }
|
|
97
|
+
static { this.MARKERS_PANEL_FILTER_LABEL_ACTIVE_FILE = ( nls.localizeWithPath(
|
|
98
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
99
|
+
'markers.panel.filter.activeFile',
|
|
100
|
+
"Show Active File Only"
|
|
101
|
+
)); }
|
|
102
|
+
static { this.MARKERS_PANEL_ACTION_TOOLTIP_FILTER = ( nls.localizeWithPath(
|
|
103
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
104
|
+
'markers.panel.action.filter',
|
|
105
|
+
"Filter Problems"
|
|
106
|
+
)); }
|
|
107
|
+
static { this.MARKERS_PANEL_ACTION_TOOLTIP_QUICKFIX = ( nls.localizeWithPath(
|
|
108
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
109
|
+
'markers.panel.action.quickfix',
|
|
110
|
+
"Show fixes"
|
|
111
|
+
)); }
|
|
112
|
+
static { this.MARKERS_PANEL_FILTER_ARIA_LABEL = ( nls.localizeWithPath(
|
|
113
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
114
|
+
'markers.panel.filter.ariaLabel',
|
|
115
|
+
"Filter Problems"
|
|
116
|
+
)); }
|
|
117
|
+
static { this.MARKERS_PANEL_FILTER_PLACEHOLDER = ( nls.localizeWithPath(
|
|
118
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
119
|
+
'markers.panel.filter.placeholder',
|
|
120
|
+
"Filter (e.g. text, **/*.ts, !**/node_modules/**)"
|
|
121
|
+
)); }
|
|
122
|
+
static { this.MARKERS_PANEL_FILTER_ERRORS = ( nls.localizeWithPath(
|
|
123
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
124
|
+
'markers.panel.filter.errors',
|
|
125
|
+
"errors"
|
|
126
|
+
)); }
|
|
127
|
+
static { this.MARKERS_PANEL_FILTER_WARNINGS = ( nls.localizeWithPath(
|
|
128
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
129
|
+
'markers.panel.filter.warnings',
|
|
130
|
+
"warnings"
|
|
131
|
+
)); }
|
|
132
|
+
static { this.MARKERS_PANEL_FILTER_INFOS = ( nls.localizeWithPath(
|
|
133
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
134
|
+
'markers.panel.filter.infos',
|
|
135
|
+
"infos"
|
|
136
|
+
)); }
|
|
137
|
+
static { this.MARKERS_PANEL_SINGLE_ERROR_LABEL = ( nls.localizeWithPath(
|
|
138
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
139
|
+
'markers.panel.single.error.label',
|
|
140
|
+
"1 Error"
|
|
141
|
+
)); }
|
|
142
|
+
static { this.MARKERS_PANEL_MULTIPLE_ERRORS_LABEL = (noOfErrors) => { return ( nls.localizeWithPath(
|
|
143
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
144
|
+
'markers.panel.multiple.errors.label',
|
|
145
|
+
"{0} Errors",
|
|
146
|
+
'' + noOfErrors
|
|
147
|
+
)); }; }
|
|
148
|
+
static { this.MARKERS_PANEL_SINGLE_WARNING_LABEL = ( nls.localizeWithPath(
|
|
149
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
150
|
+
'markers.panel.single.warning.label',
|
|
151
|
+
"1 Warning"
|
|
152
|
+
)); }
|
|
153
|
+
static { this.MARKERS_PANEL_MULTIPLE_WARNINGS_LABEL = (noOfWarnings) => { return ( nls.localizeWithPath(
|
|
154
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
155
|
+
'markers.panel.multiple.warnings.label',
|
|
156
|
+
"{0} Warnings",
|
|
157
|
+
'' + noOfWarnings
|
|
158
|
+
)); }; }
|
|
159
|
+
static { this.MARKERS_PANEL_SINGLE_INFO_LABEL = ( nls.localizeWithPath(
|
|
160
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
161
|
+
'markers.panel.single.info.label',
|
|
162
|
+
"1 Info"
|
|
163
|
+
)); }
|
|
164
|
+
static { this.MARKERS_PANEL_MULTIPLE_INFOS_LABEL = (noOfInfos) => { return ( nls.localizeWithPath(
|
|
165
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
166
|
+
'markers.panel.multiple.infos.label',
|
|
167
|
+
"{0} Infos",
|
|
168
|
+
'' + noOfInfos
|
|
169
|
+
)); }; }
|
|
170
|
+
static { this.MARKERS_PANEL_SINGLE_UNKNOWN_LABEL = ( nls.localizeWithPath(
|
|
171
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
172
|
+
'markers.panel.single.unknown.label',
|
|
173
|
+
"1 Unknown"
|
|
174
|
+
)); }
|
|
175
|
+
static { this.MARKERS_PANEL_MULTIPLE_UNKNOWNS_LABEL = (noOfUnknowns) => { return ( nls.localizeWithPath(
|
|
176
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
177
|
+
'markers.panel.multiple.unknowns.label',
|
|
178
|
+
"{0} Unknowns",
|
|
179
|
+
'' + noOfUnknowns
|
|
180
|
+
)); }; }
|
|
181
|
+
static { this.MARKERS_PANEL_AT_LINE_COL_NUMBER = (ln, col) => { return ( nls.localizeWithPath(
|
|
182
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
183
|
+
'markers.panel.at.ln.col.number',
|
|
184
|
+
"[Ln {0}, Col {1}]",
|
|
185
|
+
'' + ln,
|
|
186
|
+
'' + col
|
|
187
|
+
)); }; }
|
|
188
|
+
static { this.MARKERS_TREE_ARIA_LABEL_RESOURCE = (noOfProblems, fileName, folder) => { return ( nls.localizeWithPath(
|
|
189
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
190
|
+
'problems.tree.aria.label.resource',
|
|
191
|
+
"{0} problems in file {1} of folder {2}",
|
|
192
|
+
noOfProblems,
|
|
193
|
+
fileName,
|
|
194
|
+
folder
|
|
195
|
+
)); }; }
|
|
43
196
|
static { this.MARKERS_TREE_ARIA_LABEL_MARKER = (marker) => {
|
|
44
|
-
const relatedInformationMessage = marker.relatedInformation.length ? nls.localizeWithPath(
|
|
197
|
+
const relatedInformationMessage = marker.relatedInformation.length ? ( nls.localizeWithPath(
|
|
198
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
199
|
+
'problems.tree.aria.label.marker.relatedInformation',
|
|
200
|
+
" This problem has references to {0} locations.",
|
|
201
|
+
marker.relatedInformation.length
|
|
202
|
+
)) : '';
|
|
45
203
|
switch (marker.marker.severity) {
|
|
46
204
|
case MarkerSeverity.Error:
|
|
47
|
-
return marker.marker.source ? nls.localizeWithPath(
|
|
48
|
-
|
|
205
|
+
return marker.marker.source ? ( nls.localizeWithPath(
|
|
206
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
207
|
+
'problems.tree.aria.label.error.marker',
|
|
208
|
+
"Error: {0} at line {1} and character {2}.{3} generated by {4}",
|
|
209
|
+
marker.marker.message,
|
|
210
|
+
marker.marker.startLineNumber,
|
|
211
|
+
marker.marker.startColumn,
|
|
212
|
+
relatedInformationMessage,
|
|
213
|
+
marker.marker.source
|
|
214
|
+
))
|
|
215
|
+
: ( nls.localizeWithPath(
|
|
216
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
217
|
+
'problems.tree.aria.label.error.marker.nosource',
|
|
218
|
+
"Error: {0} at line {1} and character {2}.{3}",
|
|
219
|
+
marker.marker.message,
|
|
220
|
+
marker.marker.startLineNumber,
|
|
221
|
+
marker.marker.startColumn,
|
|
222
|
+
relatedInformationMessage
|
|
223
|
+
));
|
|
49
224
|
case MarkerSeverity.Warning:
|
|
50
|
-
return marker.marker.source ? nls.localizeWithPath(
|
|
51
|
-
|
|
225
|
+
return marker.marker.source ? ( nls.localizeWithPath(
|
|
226
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
227
|
+
'problems.tree.aria.label.warning.marker',
|
|
228
|
+
"Warning: {0} at line {1} and character {2}.{3} generated by {4}",
|
|
229
|
+
marker.marker.message,
|
|
230
|
+
marker.marker.startLineNumber,
|
|
231
|
+
marker.marker.startColumn,
|
|
232
|
+
relatedInformationMessage,
|
|
233
|
+
marker.marker.source
|
|
234
|
+
))
|
|
235
|
+
: ( nls.localizeWithPath(
|
|
236
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
237
|
+
'problems.tree.aria.label.warning.marker.nosource',
|
|
238
|
+
"Warning: {0} at line {1} and character {2}.{3}",
|
|
239
|
+
marker.marker.message,
|
|
240
|
+
marker.marker.startLineNumber,
|
|
241
|
+
marker.marker.startColumn,
|
|
242
|
+
relatedInformationMessage,
|
|
243
|
+
relatedInformationMessage
|
|
244
|
+
));
|
|
52
245
|
case MarkerSeverity.Info:
|
|
53
|
-
return marker.marker.source ? nls.localizeWithPath(
|
|
54
|
-
|
|
246
|
+
return marker.marker.source ? ( nls.localizeWithPath(
|
|
247
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
248
|
+
'problems.tree.aria.label.info.marker',
|
|
249
|
+
"Info: {0} at line {1} and character {2}.{3} generated by {4}",
|
|
250
|
+
marker.marker.message,
|
|
251
|
+
marker.marker.startLineNumber,
|
|
252
|
+
marker.marker.startColumn,
|
|
253
|
+
relatedInformationMessage,
|
|
254
|
+
marker.marker.source
|
|
255
|
+
))
|
|
256
|
+
: ( nls.localizeWithPath(
|
|
257
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
258
|
+
'problems.tree.aria.label.info.marker.nosource',
|
|
259
|
+
"Info: {0} at line {1} and character {2}.{3}",
|
|
260
|
+
marker.marker.message,
|
|
261
|
+
marker.marker.startLineNumber,
|
|
262
|
+
marker.marker.startColumn,
|
|
263
|
+
relatedInformationMessage
|
|
264
|
+
));
|
|
55
265
|
default:
|
|
56
|
-
return marker.marker.source ? nls.localizeWithPath(
|
|
57
|
-
|
|
266
|
+
return marker.marker.source ? ( nls.localizeWithPath(
|
|
267
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
268
|
+
'problems.tree.aria.label.marker',
|
|
269
|
+
"Problem: {0} at line {1} and character {2}.{3} generated by {4}",
|
|
270
|
+
marker.marker.source,
|
|
271
|
+
marker.marker.message,
|
|
272
|
+
marker.marker.startLineNumber,
|
|
273
|
+
marker.marker.startColumn,
|
|
274
|
+
relatedInformationMessage,
|
|
275
|
+
marker.marker.source
|
|
276
|
+
))
|
|
277
|
+
: ( nls.localizeWithPath(
|
|
278
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
279
|
+
'problems.tree.aria.label.marker.nosource',
|
|
280
|
+
"Problem: {0} at line {1} and character {2}.{3}",
|
|
281
|
+
marker.marker.message,
|
|
282
|
+
marker.marker.startLineNumber,
|
|
283
|
+
marker.marker.startColumn,
|
|
284
|
+
relatedInformationMessage
|
|
285
|
+
));
|
|
58
286
|
}
|
|
59
287
|
}; }
|
|
60
|
-
static { this.MARKERS_TREE_ARIA_LABEL_RELATED_INFORMATION = (relatedInformation) => nls.localizeWithPath(
|
|
61
|
-
|
|
288
|
+
static { this.MARKERS_TREE_ARIA_LABEL_RELATED_INFORMATION = (relatedInformation) => ( nls.localizeWithPath(
|
|
289
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
290
|
+
'problems.tree.aria.label.relatedinfo.message',
|
|
291
|
+
"{0} at line {1} and character {2} in {3}",
|
|
292
|
+
relatedInformation.message,
|
|
293
|
+
relatedInformation.startLineNumber,
|
|
294
|
+
relatedInformation.startColumn,
|
|
295
|
+
basename(relatedInformation.resource)
|
|
296
|
+
)); }
|
|
297
|
+
static { this.SHOW_ERRORS_WARNINGS_ACTION_LABEL = ( nls.localizeWithPath(
|
|
298
|
+
'vs/workbench/contrib/markers/browser/messages',
|
|
299
|
+
'errors.warnings.show.label',
|
|
300
|
+
"Show Errors and Warnings"
|
|
301
|
+
)); }
|
|
62
302
|
}
|
|
63
303
|
|
|
64
304
|
export { Messages as default };
|