@codingame/monaco-vscode-markers-service-override 20.0.0 → 20.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -8
- package/vscode/src/vs/workbench/contrib/markers/browser/markers.contribution.js +42 -42
- package/vscode/src/vs/workbench/contrib/markers/browser/markersChatContext.js +4 -4
- 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": "20.
|
|
3
|
+
"version": "20.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - markers service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-262ed59d-4f76-57cd-9e9f-1877f26ae049-common": "20.
|
|
19
|
-
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "20.
|
|
20
|
-
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "20.
|
|
21
|
-
"@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "20.
|
|
22
|
-
"@codingame/monaco-vscode-ab07af84-42e8-5a0f-8aef-b83fb90ede21-common": "20.
|
|
23
|
-
"@codingame/monaco-vscode-api": "20.
|
|
24
|
-
"@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common": "20.
|
|
18
|
+
"@codingame/monaco-vscode-262ed59d-4f76-57cd-9e9f-1877f26ae049-common": "20.1.0",
|
|
19
|
+
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "20.1.0",
|
|
20
|
+
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "20.1.0",
|
|
21
|
+
"@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "20.1.0",
|
|
22
|
+
"@codingame/monaco-vscode-ab07af84-42e8-5a0f-8aef-b83fb90ede21-common": "20.1.0",
|
|
23
|
+
"@codingame/monaco-vscode-api": "20.1.0",
|
|
24
|
+
"@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common": "20.1.0"
|
|
25
25
|
},
|
|
26
26
|
"main": "index.js",
|
|
27
27
|
"module": "index.js",
|
|
@@ -115,7 +115,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
115
115
|
},
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
|
-
const markersViewIcon = registerIcon('markers-view-icon', Codicon.warning, ( localize(
|
|
118
|
+
const markersViewIcon = registerIcon('markers-view-icon', Codicon.warning, ( localize(7958, 'View icon of the markers view.')));
|
|
119
119
|
const VIEW_CONTAINER = ( Registry.as(Extensions$1.ViewContainersRegistry)).registerViewContainer({
|
|
120
120
|
id: Markers.MARKERS_CONTAINER_ID,
|
|
121
121
|
title: Messages.MARKERS_PANEL_TITLE_PROBLEMS,
|
|
@@ -137,7 +137,7 @@ const VIEW_CONTAINER = ( Registry.as(Extensions$1.ViewContainersRegistry)).regis
|
|
|
137
137
|
ctorDescriptor: ( new SyncDescriptor(MarkersView)),
|
|
138
138
|
openCommandActionDescriptor: {
|
|
139
139
|
id: 'workbench.actions.view.problems',
|
|
140
|
-
mnemonicTitle: ( localize(
|
|
140
|
+
mnemonicTitle: ( localize(7959, "&&Problems")),
|
|
141
141
|
keybindings: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyM },
|
|
142
142
|
order: 0,
|
|
143
143
|
}
|
|
@@ -147,9 +147,9 @@ registerAction2(class extends ViewAction {
|
|
|
147
147
|
constructor() {
|
|
148
148
|
super({
|
|
149
149
|
id: `workbench.actions.table.${Markers.MARKERS_VIEW_ID}.viewAsTree`,
|
|
150
|
-
title: ( localize(
|
|
150
|
+
title: ( localize(7960, "View as Tree")),
|
|
151
151
|
metadata: {
|
|
152
|
-
description: ( localize2(
|
|
152
|
+
description: ( localize2(7961, "Show the problems view as a tree."))
|
|
153
153
|
},
|
|
154
154
|
menu: {
|
|
155
155
|
id: MenuId.ViewTitle,
|
|
@@ -169,9 +169,9 @@ registerAction2(class extends ViewAction {
|
|
|
169
169
|
constructor() {
|
|
170
170
|
super({
|
|
171
171
|
id: `workbench.actions.table.${Markers.MARKERS_VIEW_ID}.viewAsTable`,
|
|
172
|
-
title: ( localize(
|
|
172
|
+
title: ( localize(7962, "View as Table")),
|
|
173
173
|
metadata: {
|
|
174
|
-
description: ( localize2(
|
|
174
|
+
description: ( localize2(7963, "Show the problems view as a table."))
|
|
175
175
|
},
|
|
176
176
|
menu: {
|
|
177
177
|
id: MenuId.ViewTitle,
|
|
@@ -191,11 +191,11 @@ registerAction2(class extends ViewAction {
|
|
|
191
191
|
constructor() {
|
|
192
192
|
super({
|
|
193
193
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleErrors`,
|
|
194
|
-
title: ( localize(
|
|
194
|
+
title: ( localize(7964, "Show Errors")),
|
|
195
195
|
metadata: {
|
|
196
|
-
description: ( localize2(
|
|
196
|
+
description: ( localize2(7965, "Show or hide errors in the problems view."))
|
|
197
197
|
},
|
|
198
|
-
category: ( localize(
|
|
198
|
+
category: ( localize(7966, "Problems")),
|
|
199
199
|
toggled: MarkersContextKeys.ShowErrorsFilterContextKey,
|
|
200
200
|
menu: {
|
|
201
201
|
id: viewFilterSubmenu,
|
|
@@ -214,11 +214,11 @@ registerAction2(class extends ViewAction {
|
|
|
214
214
|
constructor() {
|
|
215
215
|
super({
|
|
216
216
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleWarnings`,
|
|
217
|
-
title: ( localize(
|
|
217
|
+
title: ( localize(7967, "Show Warnings")),
|
|
218
218
|
metadata: {
|
|
219
|
-
description: ( localize2(
|
|
219
|
+
description: ( localize2(7968, "Show or hide warnings in the problems view."))
|
|
220
220
|
},
|
|
221
|
-
category: ( localize(
|
|
221
|
+
category: ( localize(7966, "Problems")),
|
|
222
222
|
toggled: MarkersContextKeys.ShowWarningsFilterContextKey,
|
|
223
223
|
menu: {
|
|
224
224
|
id: viewFilterSubmenu,
|
|
@@ -237,11 +237,11 @@ registerAction2(class extends ViewAction {
|
|
|
237
237
|
constructor() {
|
|
238
238
|
super({
|
|
239
239
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleInfos`,
|
|
240
|
-
title: ( localize(
|
|
241
|
-
category: ( localize(
|
|
240
|
+
title: ( localize(7969, "Show Infos")),
|
|
241
|
+
category: ( localize(7966, "Problems")),
|
|
242
242
|
toggled: MarkersContextKeys.ShowInfoFilterContextKey,
|
|
243
243
|
metadata: {
|
|
244
|
-
description: ( localize2(
|
|
244
|
+
description: ( localize2(7970, "Show or hide infos in the problems view."))
|
|
245
245
|
},
|
|
246
246
|
menu: {
|
|
247
247
|
id: viewFilterSubmenu,
|
|
@@ -260,14 +260,14 @@ registerAction2(class extends ViewAction {
|
|
|
260
260
|
constructor() {
|
|
261
261
|
super({
|
|
262
262
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleActiveFile`,
|
|
263
|
-
title: ( localize(
|
|
263
|
+
title: ( localize(7971, "Show Active File Only")),
|
|
264
264
|
metadata: {
|
|
265
265
|
description: ( localize2(
|
|
266
|
-
|
|
266
|
+
7972,
|
|
267
267
|
"Show or hide problems (errors, warnings, info) only from the active file in the problems view."
|
|
268
268
|
))
|
|
269
269
|
},
|
|
270
|
-
category: ( localize(
|
|
270
|
+
category: ( localize(7966, "Problems")),
|
|
271
271
|
toggled: MarkersContextKeys.ShowActiveFileFilterContextKey,
|
|
272
272
|
menu: {
|
|
273
273
|
id: viewFilterSubmenu,
|
|
@@ -286,11 +286,11 @@ registerAction2(class extends ViewAction {
|
|
|
286
286
|
constructor() {
|
|
287
287
|
super({
|
|
288
288
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleExcludedFiles`,
|
|
289
|
-
title: ( localize(
|
|
289
|
+
title: ( localize(7973, "Show Excluded Files")),
|
|
290
290
|
metadata: {
|
|
291
|
-
description: ( localize2(
|
|
291
|
+
description: ( localize2(7974, "Show or hide excluded files in the problems view."))
|
|
292
292
|
},
|
|
293
|
-
category: ( localize(
|
|
293
|
+
category: ( localize(7966, "Problems")),
|
|
294
294
|
toggled: ( MarkersContextKeys.ShowExcludedFilesFilterContextKey.negate()),
|
|
295
295
|
menu: {
|
|
296
296
|
id: viewFilterSubmenu,
|
|
@@ -343,7 +343,7 @@ registerAction2(class extends MarkersViewAction {
|
|
|
343
343
|
const when = ( ContextKeyExpr.and(( FocusedViewContext.isEqualTo(Markers.MARKERS_VIEW_ID)), MarkersContextKeys.MarkersTreeVisibilityContextKey, ( MarkersContextKeys.RelatedInformationFocusContextKey.toNegated())));
|
|
344
344
|
super({
|
|
345
345
|
id: Markers.MARKER_COPY_ACTION_ID,
|
|
346
|
-
title: ( localize2(
|
|
346
|
+
title: ( localize2(7975, 'Copy')),
|
|
347
347
|
menu: {
|
|
348
348
|
id: MenuId.ProblemsPanelContext,
|
|
349
349
|
when,
|
|
@@ -369,7 +369,7 @@ registerAction2(class extends MarkersViewAction {
|
|
|
369
369
|
constructor() {
|
|
370
370
|
super({
|
|
371
371
|
id: Markers.MARKER_COPY_MESSAGE_ACTION_ID,
|
|
372
|
-
title: ( localize2(
|
|
372
|
+
title: ( localize2(7976, 'Copy Message')),
|
|
373
373
|
menu: {
|
|
374
374
|
id: MenuId.ProblemsPanelContext,
|
|
375
375
|
when: MarkersContextKeys.MarkerFocusContextKey,
|
|
@@ -390,7 +390,7 @@ registerAction2(class extends ViewAction {
|
|
|
390
390
|
constructor() {
|
|
391
391
|
super({
|
|
392
392
|
id: Markers.RELATED_INFORMATION_COPY_MESSAGE_ACTION_ID,
|
|
393
|
-
title: ( localize2(
|
|
393
|
+
title: ( localize2(7976, 'Copy Message')),
|
|
394
394
|
menu: {
|
|
395
395
|
id: MenuId.ProblemsPanelContext,
|
|
396
396
|
when: MarkersContextKeys.RelatedInformationFocusContextKey,
|
|
@@ -411,7 +411,7 @@ registerAction2(class extends ViewAction {
|
|
|
411
411
|
constructor() {
|
|
412
412
|
super({
|
|
413
413
|
id: Markers.FOCUS_PROBLEMS_FROM_FILTER,
|
|
414
|
-
title: ( localize(
|
|
414
|
+
title: ( localize(7977, "Focus problems view")),
|
|
415
415
|
keybinding: {
|
|
416
416
|
when: MarkersContextKeys.MarkerViewFilterFocusContextKey,
|
|
417
417
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -428,7 +428,7 @@ registerAction2(class extends ViewAction {
|
|
|
428
428
|
constructor() {
|
|
429
429
|
super({
|
|
430
430
|
id: Markers.MARKERS_VIEW_FOCUS_FILTER,
|
|
431
|
-
title: ( localize(
|
|
431
|
+
title: ( localize(7978, "Focus problems filter")),
|
|
432
432
|
keybinding: {
|
|
433
433
|
when: ( FocusedViewContext.isEqualTo(Markers.MARKERS_VIEW_ID)),
|
|
434
434
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -445,8 +445,8 @@ registerAction2(class extends ViewAction {
|
|
|
445
445
|
constructor() {
|
|
446
446
|
super({
|
|
447
447
|
id: Markers.MARKERS_VIEW_SHOW_MULTILINE_MESSAGE,
|
|
448
|
-
title: ( localize2(
|
|
449
|
-
category: ( localize(
|
|
448
|
+
title: ( localize2(7979, "Show message in multiple lines")),
|
|
449
|
+
category: ( localize(7966, "Problems")),
|
|
450
450
|
menu: {
|
|
451
451
|
id: MenuId.CommandPalette,
|
|
452
452
|
when: ( ContextKeyExpr.has(getVisbileViewContextKey(Markers.MARKERS_VIEW_ID)))
|
|
@@ -462,8 +462,8 @@ registerAction2(class extends ViewAction {
|
|
|
462
462
|
constructor() {
|
|
463
463
|
super({
|
|
464
464
|
id: Markers.MARKERS_VIEW_SHOW_SINGLELINE_MESSAGE,
|
|
465
|
-
title: ( localize2(
|
|
466
|
-
category: ( localize(
|
|
465
|
+
title: ( localize2(7980, "Show message in single line")),
|
|
466
|
+
category: ( localize(7966, "Problems")),
|
|
467
467
|
menu: {
|
|
468
468
|
id: MenuId.CommandPalette,
|
|
469
469
|
when: ( ContextKeyExpr.has(getVisbileViewContextKey(Markers.MARKERS_VIEW_ID)))
|
|
@@ -479,8 +479,8 @@ registerAction2(class extends ViewAction {
|
|
|
479
479
|
constructor() {
|
|
480
480
|
super({
|
|
481
481
|
id: Markers.MARKERS_VIEW_CLEAR_FILTER_TEXT,
|
|
482
|
-
title: ( localize(
|
|
483
|
-
category: ( localize(
|
|
482
|
+
title: ( localize(7981, "Clear filters text")),
|
|
483
|
+
category: ( localize(7966, "Problems")),
|
|
484
484
|
keybinding: {
|
|
485
485
|
when: MarkersContextKeys.MarkerViewFilterFocusContextKey,
|
|
486
486
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -497,7 +497,7 @@ registerAction2(class extends ViewAction {
|
|
|
497
497
|
constructor() {
|
|
498
498
|
super({
|
|
499
499
|
id: `workbench.actions.treeView.${Markers.MARKERS_VIEW_ID}.collapseAll`,
|
|
500
|
-
title: ( localize(
|
|
500
|
+
title: ( localize(7982, "Collapse All")),
|
|
501
501
|
menu: {
|
|
502
502
|
id: MenuId.ViewTitle,
|
|
503
503
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('view', Markers.MARKERS_VIEW_ID)), ( MarkersContextKeys.MarkersViewModeContextKey.isEqualTo(MarkersViewMode.Tree)))),
|
|
@@ -564,7 +564,7 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
|
|
|
564
564
|
const markersStatistics = this.markerService.getStatistics();
|
|
565
565
|
const tooltip = this.getMarkersTooltip(markersStatistics);
|
|
566
566
|
return {
|
|
567
|
-
name: ( localize(
|
|
567
|
+
name: ( localize(7983, "Problems")),
|
|
568
568
|
text: this.getMarkersText(markersStatistics),
|
|
569
569
|
ariaLabel: tooltip,
|
|
570
570
|
tooltip,
|
|
@@ -575,9 +575,9 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
|
|
|
575
575
|
this.statusbarService.updateEntryVisibility('status.problemsVisibility', true);
|
|
576
576
|
const openSettingsCommand = 'workbench.action.openSettings';
|
|
577
577
|
const configureSettingsLabel = '@id:problems.visibility';
|
|
578
|
-
const tooltip = ( localize(
|
|
578
|
+
const tooltip = ( localize(7984, "Problems are turned off. Click to open settings."));
|
|
579
579
|
return {
|
|
580
|
-
name: ( localize(
|
|
580
|
+
name: ( localize(7985, "Problems Visibility")),
|
|
581
581
|
text: '$(whole-word)',
|
|
582
582
|
ariaLabel: tooltip,
|
|
583
583
|
tooltip,
|
|
@@ -586,9 +586,9 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
|
|
|
586
586
|
};
|
|
587
587
|
}
|
|
588
588
|
getMarkersTooltip(stats) {
|
|
589
|
-
const errorTitle = (n) => ( localize(
|
|
590
|
-
const warningTitle = (n) => ( localize(
|
|
591
|
-
const infoTitle = (n) => ( localize(
|
|
589
|
+
const errorTitle = (n) => ( localize(7986, "Errors: {0}", n));
|
|
590
|
+
const warningTitle = (n) => ( localize(7987, "Warnings: {0}", n));
|
|
591
|
+
const infoTitle = (n) => ( localize(7988, "Infos: {0}", n));
|
|
592
592
|
const titles = [];
|
|
593
593
|
if (stats.errors > 0) {
|
|
594
594
|
titles.push(errorTitle(stats.errors));
|
|
@@ -600,7 +600,7 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
|
|
|
600
600
|
titles.push(infoTitle(stats.infos));
|
|
601
601
|
}
|
|
602
602
|
if (titles.length === 0) {
|
|
603
|
-
return localize(
|
|
603
|
+
return localize(7989, "No Problems");
|
|
604
604
|
}
|
|
605
605
|
return titles.join(', ');
|
|
606
606
|
}
|
|
@@ -614,7 +614,7 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
|
|
|
614
614
|
return problemsText.join(' ');
|
|
615
615
|
}
|
|
616
616
|
packNumber(n) {
|
|
617
|
-
const manyProblems = ( localize(
|
|
617
|
+
const manyProblems = ( localize(7990, "10K+"));
|
|
618
618
|
return n > 9999 ? manyProblems : n > 999 ? ( n.toString()).charAt(0) + 'K' : ( n.toString());
|
|
619
619
|
}
|
|
620
620
|
};
|
|
@@ -638,7 +638,7 @@ let ActivityUpdater = class ActivityUpdater extends Disposable {
|
|
|
638
638
|
const { errors, warnings, infos } = this.markerService.getStatistics();
|
|
639
639
|
const total = errors + warnings + infos;
|
|
640
640
|
if (total > 0) {
|
|
641
|
-
const message = ( localize(
|
|
641
|
+
const message = ( localize(7991, 'Total {0} Problems', total));
|
|
642
642
|
this.activity.value = this.activityService.showViewActivity(Markers.MARKERS_VIEW_ID, { badge: ( new NumberBadge(total, () => message)) });
|
|
643
643
|
}
|
|
644
644
|
else {
|
|
@@ -17,7 +17,7 @@ let MarkerChatContextPick = class MarkerChatContextPick {
|
|
|
17
17
|
this._markerService = _markerService;
|
|
18
18
|
this._labelService = _labelService;
|
|
19
19
|
this.type = 'pickerPick';
|
|
20
|
-
this.label = ( localize(
|
|
20
|
+
this.label = ( localize(7992, 'Problems...'));
|
|
21
21
|
this.icon = Codicon.error;
|
|
22
22
|
this.ordinal = -100;
|
|
23
23
|
}
|
|
@@ -34,7 +34,7 @@ let MarkerChatContextPick = class MarkerChatContextPick {
|
|
|
34
34
|
items.push({
|
|
35
35
|
label: marker.message,
|
|
36
36
|
description: ( localize(
|
|
37
|
-
|
|
37
|
+
7993,
|
|
38
38
|
"[Ln {0}, Col {1}]",
|
|
39
39
|
'' + marker.startLineNumber,
|
|
40
40
|
'' + marker.startColumn
|
|
@@ -46,7 +46,7 @@ let MarkerChatContextPick = class MarkerChatContextPick {
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
items.unshift({
|
|
49
|
-
label: ( localize(
|
|
49
|
+
label: ( localize(7994, 'All Problems')),
|
|
50
50
|
asAttachment() {
|
|
51
51
|
return IDiagnosticVariableEntryFilterData.toEntry({
|
|
52
52
|
filterSeverity: MarkerSeverity.Info
|
|
@@ -54,7 +54,7 @@ let MarkerChatContextPick = class MarkerChatContextPick {
|
|
|
54
54
|
},
|
|
55
55
|
});
|
|
56
56
|
return {
|
|
57
|
-
placeholder: ( localize(
|
|
57
|
+
placeholder: ( localize(7995, 'Select a problem to attach')),
|
|
58
58
|
picks: Promise.resolve(items)
|
|
59
59
|
};
|
|
60
60
|
}
|
|
@@ -25,7 +25,7 @@ import { LifecyclePhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench
|
|
|
25
25
|
class MarkersDecorationsProvider {
|
|
26
26
|
constructor(_markerService) {
|
|
27
27
|
this._markerService = _markerService;
|
|
28
|
-
this.label = ( localize(
|
|
28
|
+
this.label = ( localize(7996, "Problems"));
|
|
29
29
|
this.onDidChange = _markerService.onMarkerChanged;
|
|
30
30
|
}
|
|
31
31
|
provideDecorations(resource) {
|
|
@@ -45,7 +45,7 @@ class MarkersDecorationsProvider {
|
|
|
45
45
|
return {
|
|
46
46
|
weight: 100 * first.severity,
|
|
47
47
|
bubble: true,
|
|
48
|
-
tooltip: markers.length === 1 ? ( localize(
|
|
48
|
+
tooltip: markers.length === 1 ? ( localize(7997, "1 problem in this file")) : ( localize(7998, "{0} problems in this file", markers.length)),
|
|
49
49
|
letter: markers.length < 10 ? ( markers.length.toString()) : '9+',
|
|
50
50
|
color: first.severity === MarkerSeverity.Error ? listErrorForeground : listWarningForeground,
|
|
51
51
|
};
|
|
@@ -105,7 +105,7 @@ MarkersFileDecorations = ( __decorate([
|
|
|
105
105
|
'properties': {
|
|
106
106
|
'problems.decorations.enabled': {
|
|
107
107
|
'markdownDescription': ( localize(
|
|
108
|
-
|
|
108
|
+
7999,
|
|
109
109
|
"Show Errors & Warnings on files and folder. Overwritten by {0} when it is off.",
|
|
110
110
|
'`#problems.visibility#`'
|
|
111
111
|
)),
|
|
@@ -228,7 +228,7 @@ let MarkersTable = class MarkersTable extends Disposable {
|
|
|
228
228
|
project(row) { return row; }
|
|
229
229
|
},
|
|
230
230
|
{
|
|
231
|
-
label: ( localize(
|
|
231
|
+
label: ( localize(8000, "Code")),
|
|
232
232
|
tooltip: '',
|
|
233
233
|
weight: 1,
|
|
234
234
|
minimumWidth: 100,
|
|
@@ -237,21 +237,21 @@ let MarkersTable = class MarkersTable extends Disposable {
|
|
|
237
237
|
project(row) { return row; }
|
|
238
238
|
},
|
|
239
239
|
{
|
|
240
|
-
label: ( localize(
|
|
240
|
+
label: ( localize(8001, "Message")),
|
|
241
241
|
tooltip: '',
|
|
242
242
|
weight: 4,
|
|
243
243
|
templateId: MarkerMessageColumnRenderer.TEMPLATE_ID,
|
|
244
244
|
project(row) { return row; }
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
|
-
label: ( localize(
|
|
247
|
+
label: ( localize(8002, "File")),
|
|
248
248
|
tooltip: '',
|
|
249
249
|
weight: 2,
|
|
250
250
|
templateId: MarkerFileColumnRenderer.TEMPLATE_ID,
|
|
251
251
|
project(row) { return row; }
|
|
252
252
|
},
|
|
253
253
|
{
|
|
254
|
-
label: ( localize(
|
|
254
|
+
label: ( localize(8003, "Source")),
|
|
255
255
|
tooltip: '',
|
|
256
256
|
weight: 1,
|
|
257
257
|
minimumWidth: 100,
|
|
@@ -49,7 +49,7 @@ let MarkersWidgetAccessibilityProvider = class MarkersWidgetAccessibilityProvide
|
|
|
49
49
|
this.labelService = labelService;
|
|
50
50
|
}
|
|
51
51
|
getWidgetAriaLabel() {
|
|
52
|
-
return localize(
|
|
52
|
+
return localize(8004, "Problems View");
|
|
53
53
|
}
|
|
54
54
|
getAriaLabel(element) {
|
|
55
55
|
if (element instanceof ResourceMarkers) {
|
|
@@ -190,9 +190,9 @@ MarkerRenderer = ( __decorate([
|
|
|
190
190
|
( __param(2, IInstantiationService)),
|
|
191
191
|
( __param(3, IOpenerService))
|
|
192
192
|
], MarkerRenderer));
|
|
193
|
-
const expandedIcon = registerIcon('markers-view-multi-line-expanded', Codicon.chevronUp, ( localize(
|
|
193
|
+
const expandedIcon = registerIcon('markers-view-multi-line-expanded', Codicon.chevronUp, ( localize(8005, 'Icon indicating that multiple lines are shown in the markers view.')));
|
|
194
194
|
const collapsedIcon = registerIcon('markers-view-multi-line-collapsed', Codicon.chevronDown, ( localize(
|
|
195
|
-
|
|
195
|
+
8006,
|
|
196
196
|
'Icon indicating that multiple lines are collapsed in the markers view.'
|
|
197
197
|
)));
|
|
198
198
|
const toggleMultilineAction = 'problems.action.toggleMultiline';
|
|
@@ -269,7 +269,7 @@ class MarkerWidget extends Disposable {
|
|
|
269
269
|
const multiline = viewModel && viewModel.multiline;
|
|
270
270
|
const action = this.disposables.add(( new Action(toggleMultilineAction)));
|
|
271
271
|
action.enabled = !!viewModel && marker.lines.length > 1;
|
|
272
|
-
action.tooltip = multiline ? ( localize(
|
|
272
|
+
action.tooltip = multiline ? ( localize(8007, "Show message in single line")) : ( localize(8008, "Show message in multiple lines"));
|
|
273
273
|
action.class = ThemeIcon.asClassName(multiline ? expandedIcon : collapsedIcon);
|
|
274
274
|
action.run = () => { if (viewModel) {
|
|
275
275
|
viewModel.multiline = !viewModel.multiline;
|
|
@@ -180,7 +180,7 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
180
180
|
this.filterWidget.focus();
|
|
181
181
|
}
|
|
182
182
|
updateBadge(total, filtered) {
|
|
183
|
-
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( localize(
|
|
183
|
+
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( localize(8009, "Showing {0} of {1}", filtered, total)));
|
|
184
184
|
}
|
|
185
185
|
checkMoreFilters() {
|
|
186
186
|
this.filterWidget.checkMoreFilters(!this.filters.showErrors || !this.filters.showWarnings || !this.filters.showInfos || this.filters.excludedFiles || this.filters.activeFile);
|
|
@@ -547,10 +547,10 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
547
547
|
else {
|
|
548
548
|
this.messageBoxContainer.style.display = 'none';
|
|
549
549
|
if (filtered === total) {
|
|
550
|
-
this.setAriaLabel(( localize(
|
|
550
|
+
this.setAriaLabel(( localize(8010, "Showing {0} problems", total)));
|
|
551
551
|
}
|
|
552
552
|
else {
|
|
553
|
-
this.setAriaLabel(( localize(
|
|
553
|
+
this.setAriaLabel(( localize(8011, "Showing {0} of {1} problems", filtered, total)));
|
|
554
554
|
}
|
|
555
555
|
this.messageBoxContainer.removeAttribute('tabIndex');
|
|
556
556
|
}
|
|
@@ -567,7 +567,7 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
567
567
|
const span1 = append(container, $('span'));
|
|
568
568
|
span1.textContent = Messages.MARKERS_PANEL_NO_PROBLEMS_FILTERS;
|
|
569
569
|
const link = append(container, $('a.messageAction'));
|
|
570
|
-
link.textContent = ( localize(
|
|
570
|
+
link.textContent = ( localize(8012, "Clear Filters"));
|
|
571
571
|
link.setAttribute('tabIndex', '0');
|
|
572
572
|
const span2 = append(container, $('span'));
|
|
573
573
|
span2.textContent = '.';
|
|
@@ -4,46 +4,46 @@ import { basename } from '@codingame/monaco-vscode-api/vscode/vs/base/common/res
|
|
|
4
4
|
import { MarkerSeverity } from '@codingame/monaco-vscode-api/vscode/vs/platform/markers/common/markers';
|
|
5
5
|
|
|
6
6
|
class Messages {
|
|
7
|
-
static { this.MARKERS_PANEL_TOGGLE_LABEL = ( localize(
|
|
8
|
-
static { this.MARKERS_PANEL_SHOW_LABEL = ( localize2(
|
|
9
|
-
static { this.PROBLEMS_PANEL_CONFIGURATION_TITLE = ( localize(
|
|
7
|
+
static { this.MARKERS_PANEL_TOGGLE_LABEL = ( localize(8013, "Toggle Problems (Errors, Warnings, Infos)")); }
|
|
8
|
+
static { this.MARKERS_PANEL_SHOW_LABEL = ( localize2(8014, "Focus Problems (Errors, Warnings, Infos)")); }
|
|
9
|
+
static { this.PROBLEMS_PANEL_CONFIGURATION_TITLE = ( localize(8015, "Problems View")); }
|
|
10
10
|
static { this.PROBLEMS_PANEL_CONFIGURATION_AUTO_REVEAL = ( localize(
|
|
11
|
-
|
|
11
|
+
8016,
|
|
12
12
|
"Controls whether Problems view should automatically reveal files when opening them."
|
|
13
13
|
)); }
|
|
14
|
-
static { this.PROBLEMS_PANEL_CONFIGURATION_VIEW_MODE = ( localize(
|
|
15
|
-
static { this.PROBLEMS_PANEL_CONFIGURATION_SHOW_CURRENT_STATUS = ( localize(
|
|
16
|
-
static { this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER = ( localize(
|
|
17
|
-
static { this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER_SEVERITY = ( localize(
|
|
18
|
-
static { this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER_POSITION = ( localize(
|
|
19
|
-
static { this.MARKERS_PANEL_TITLE_PROBLEMS = ( localize2(
|
|
20
|
-
static { this.MARKERS_PANEL_NO_PROBLEMS_BUILT = ( localize(
|
|
21
|
-
static { this.MARKERS_PANEL_NO_PROBLEMS_ACTIVE_FILE_BUILT = ( localize(
|
|
22
|
-
static { this.MARKERS_PANEL_NO_PROBLEMS_FILTERS = ( localize(
|
|
23
|
-
static { this.MARKERS_PANEL_ACTION_TOOLTIP_MORE_FILTERS = ( localize(
|
|
24
|
-
static { this.MARKERS_PANEL_FILTER_LABEL_SHOW_ERRORS = ( localize(
|
|
25
|
-
static { this.MARKERS_PANEL_FILTER_LABEL_SHOW_WARNINGS = ( localize(
|
|
26
|
-
static { this.MARKERS_PANEL_FILTER_LABEL_SHOW_INFOS = ( localize(
|
|
27
|
-
static { this.MARKERS_PANEL_FILTER_LABEL_EXCLUDED_FILES = ( localize(
|
|
28
|
-
static { this.MARKERS_PANEL_FILTER_LABEL_ACTIVE_FILE = ( localize(
|
|
29
|
-
static { this.MARKERS_PANEL_ACTION_TOOLTIP_FILTER = ( localize(
|
|
30
|
-
static { this.MARKERS_PANEL_ACTION_TOOLTIP_QUICKFIX = ( localize(
|
|
31
|
-
static { this.MARKERS_PANEL_FILTER_ARIA_LABEL = ( localize(
|
|
32
|
-
static { this.MARKERS_PANEL_FILTER_PLACEHOLDER = ( localize(
|
|
33
|
-
static { this.MARKERS_PANEL_FILTER_ERRORS = ( localize(
|
|
34
|
-
static { this.MARKERS_PANEL_FILTER_WARNINGS = ( localize(
|
|
35
|
-
static { this.MARKERS_PANEL_FILTER_INFOS = ( localize(
|
|
36
|
-
static { this.MARKERS_PANEL_SINGLE_ERROR_LABEL = ( localize(
|
|
37
|
-
static { this.MARKERS_PANEL_MULTIPLE_ERRORS_LABEL = (noOfErrors) => { return localize(
|
|
38
|
-
static { this.MARKERS_PANEL_SINGLE_WARNING_LABEL = ( localize(
|
|
39
|
-
static { this.MARKERS_PANEL_MULTIPLE_WARNINGS_LABEL = (noOfWarnings) => { return localize(
|
|
40
|
-
static { this.MARKERS_PANEL_SINGLE_INFO_LABEL = ( localize(
|
|
41
|
-
static { this.MARKERS_PANEL_MULTIPLE_INFOS_LABEL = (noOfInfos) => { return localize(
|
|
42
|
-
static { this.MARKERS_PANEL_SINGLE_UNKNOWN_LABEL = ( localize(
|
|
43
|
-
static { this.MARKERS_PANEL_MULTIPLE_UNKNOWNS_LABEL = (noOfUnknowns) => { return localize(
|
|
44
|
-
static { this.MARKERS_PANEL_AT_LINE_COL_NUMBER = (ln, col) => { return localize(
|
|
14
|
+
static { this.PROBLEMS_PANEL_CONFIGURATION_VIEW_MODE = ( localize(8017, "Controls the default view mode of the Problems view.")); }
|
|
15
|
+
static { this.PROBLEMS_PANEL_CONFIGURATION_SHOW_CURRENT_STATUS = ( localize(8018, "When enabled shows the current problem in the status bar.")); }
|
|
16
|
+
static { this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER = ( localize(8019, "Controls the order in which problems are navigated.")); }
|
|
17
|
+
static { this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER_SEVERITY = ( localize(8020, "Navigate problems ordered by severity")); }
|
|
18
|
+
static { this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER_POSITION = ( localize(8021, "Navigate problems ordered by position")); }
|
|
19
|
+
static { this.MARKERS_PANEL_TITLE_PROBLEMS = ( localize2(8022, "Problems")); }
|
|
20
|
+
static { this.MARKERS_PANEL_NO_PROBLEMS_BUILT = ( localize(8023, "No problems have been detected in the workspace.")); }
|
|
21
|
+
static { this.MARKERS_PANEL_NO_PROBLEMS_ACTIVE_FILE_BUILT = ( localize(8024, "No problems have been detected in the current file.")); }
|
|
22
|
+
static { this.MARKERS_PANEL_NO_PROBLEMS_FILTERS = ( localize(8025, "No results found with provided filter criteria.")); }
|
|
23
|
+
static { this.MARKERS_PANEL_ACTION_TOOLTIP_MORE_FILTERS = ( localize(8026, "More Filters...")); }
|
|
24
|
+
static { this.MARKERS_PANEL_FILTER_LABEL_SHOW_ERRORS = ( localize(8027, "Show Errors")); }
|
|
25
|
+
static { this.MARKERS_PANEL_FILTER_LABEL_SHOW_WARNINGS = ( localize(8028, "Show Warnings")); }
|
|
26
|
+
static { this.MARKERS_PANEL_FILTER_LABEL_SHOW_INFOS = ( localize(8029, "Show Infos")); }
|
|
27
|
+
static { this.MARKERS_PANEL_FILTER_LABEL_EXCLUDED_FILES = ( localize(8030, "Hide Excluded Files")); }
|
|
28
|
+
static { this.MARKERS_PANEL_FILTER_LABEL_ACTIVE_FILE = ( localize(8031, "Show Active File Only")); }
|
|
29
|
+
static { this.MARKERS_PANEL_ACTION_TOOLTIP_FILTER = ( localize(8032, "Filter Problems")); }
|
|
30
|
+
static { this.MARKERS_PANEL_ACTION_TOOLTIP_QUICKFIX = ( localize(8033, "Show fixes")); }
|
|
31
|
+
static { this.MARKERS_PANEL_FILTER_ARIA_LABEL = ( localize(8034, "Filter Problems")); }
|
|
32
|
+
static { this.MARKERS_PANEL_FILTER_PLACEHOLDER = ( localize(8035, "Filter (e.g. text, **/*.ts, !**/node_modules/**)")); }
|
|
33
|
+
static { this.MARKERS_PANEL_FILTER_ERRORS = ( localize(8036, "errors")); }
|
|
34
|
+
static { this.MARKERS_PANEL_FILTER_WARNINGS = ( localize(8037, "warnings")); }
|
|
35
|
+
static { this.MARKERS_PANEL_FILTER_INFOS = ( localize(8038, "infos")); }
|
|
36
|
+
static { this.MARKERS_PANEL_SINGLE_ERROR_LABEL = ( localize(8039, "1 Error")); }
|
|
37
|
+
static { this.MARKERS_PANEL_MULTIPLE_ERRORS_LABEL = (noOfErrors) => { return localize(8040, "{0} Errors", '' + noOfErrors); }; }
|
|
38
|
+
static { this.MARKERS_PANEL_SINGLE_WARNING_LABEL = ( localize(8041, "1 Warning")); }
|
|
39
|
+
static { this.MARKERS_PANEL_MULTIPLE_WARNINGS_LABEL = (noOfWarnings) => { return localize(8042, "{0} Warnings", '' + noOfWarnings); }; }
|
|
40
|
+
static { this.MARKERS_PANEL_SINGLE_INFO_LABEL = ( localize(8043, "1 Info")); }
|
|
41
|
+
static { this.MARKERS_PANEL_MULTIPLE_INFOS_LABEL = (noOfInfos) => { return localize(8044, "{0} Infos", '' + noOfInfos); }; }
|
|
42
|
+
static { this.MARKERS_PANEL_SINGLE_UNKNOWN_LABEL = ( localize(8045, "1 Unknown")); }
|
|
43
|
+
static { this.MARKERS_PANEL_MULTIPLE_UNKNOWNS_LABEL = (noOfUnknowns) => { return localize(8046, "{0} Unknowns", '' + noOfUnknowns); }; }
|
|
44
|
+
static { this.MARKERS_PANEL_AT_LINE_COL_NUMBER = (ln, col) => { return localize(8047, "[Ln {0}, Col {1}]", '' + ln, '' + col); }; }
|
|
45
45
|
static { this.MARKERS_TREE_ARIA_LABEL_RESOURCE = (noOfProblems, fileName, folder) => { return localize(
|
|
46
|
-
|
|
46
|
+
8048,
|
|
47
47
|
"{0} problems in file {1} of folder {2}",
|
|
48
48
|
noOfProblems,
|
|
49
49
|
fileName,
|
|
@@ -51,14 +51,14 @@ class Messages {
|
|
|
51
51
|
); }; }
|
|
52
52
|
static { this.MARKERS_TREE_ARIA_LABEL_MARKER = (marker) => {
|
|
53
53
|
const relatedInformationMessage = marker.relatedInformation.length ? ( localize(
|
|
54
|
-
|
|
54
|
+
8049,
|
|
55
55
|
" This problem has references to {0} locations.",
|
|
56
56
|
marker.relatedInformation.length
|
|
57
57
|
)) : '';
|
|
58
58
|
switch (marker.marker.severity) {
|
|
59
59
|
case MarkerSeverity.Error:
|
|
60
60
|
return marker.marker.source ? ( localize(
|
|
61
|
-
|
|
61
|
+
8050,
|
|
62
62
|
"Error: {0} at line {1} and character {2}.{3} generated by {4}",
|
|
63
63
|
marker.marker.message,
|
|
64
64
|
marker.marker.startLineNumber,
|
|
@@ -67,7 +67,7 @@ class Messages {
|
|
|
67
67
|
marker.marker.source
|
|
68
68
|
))
|
|
69
69
|
: ( localize(
|
|
70
|
-
|
|
70
|
+
8051,
|
|
71
71
|
"Error: {0} at line {1} and character {2}.{3}",
|
|
72
72
|
marker.marker.message,
|
|
73
73
|
marker.marker.startLineNumber,
|
|
@@ -76,7 +76,7 @@ class Messages {
|
|
|
76
76
|
));
|
|
77
77
|
case MarkerSeverity.Warning:
|
|
78
78
|
return marker.marker.source ? ( localize(
|
|
79
|
-
|
|
79
|
+
8052,
|
|
80
80
|
"Warning: {0} at line {1} and character {2}.{3} generated by {4}",
|
|
81
81
|
marker.marker.message,
|
|
82
82
|
marker.marker.startLineNumber,
|
|
@@ -85,7 +85,7 @@ class Messages {
|
|
|
85
85
|
marker.marker.source
|
|
86
86
|
))
|
|
87
87
|
: ( localize(
|
|
88
|
-
|
|
88
|
+
8053,
|
|
89
89
|
"Warning: {0} at line {1} and character {2}.{3}",
|
|
90
90
|
marker.marker.message,
|
|
91
91
|
marker.marker.startLineNumber,
|
|
@@ -95,7 +95,7 @@ class Messages {
|
|
|
95
95
|
));
|
|
96
96
|
case MarkerSeverity.Info:
|
|
97
97
|
return marker.marker.source ? ( localize(
|
|
98
|
-
|
|
98
|
+
8054,
|
|
99
99
|
"Info: {0} at line {1} and character {2}.{3} generated by {4}",
|
|
100
100
|
marker.marker.message,
|
|
101
101
|
marker.marker.startLineNumber,
|
|
@@ -104,7 +104,7 @@ class Messages {
|
|
|
104
104
|
marker.marker.source
|
|
105
105
|
))
|
|
106
106
|
: ( localize(
|
|
107
|
-
|
|
107
|
+
8055,
|
|
108
108
|
"Info: {0} at line {1} and character {2}.{3}",
|
|
109
109
|
marker.marker.message,
|
|
110
110
|
marker.marker.startLineNumber,
|
|
@@ -113,7 +113,7 @@ class Messages {
|
|
|
113
113
|
));
|
|
114
114
|
default:
|
|
115
115
|
return marker.marker.source ? ( localize(
|
|
116
|
-
|
|
116
|
+
8056,
|
|
117
117
|
"Problem: {0} at line {1} and character {2}.{3} generated by {4}",
|
|
118
118
|
marker.marker.source,
|
|
119
119
|
marker.marker.message,
|
|
@@ -123,7 +123,7 @@ class Messages {
|
|
|
123
123
|
marker.marker.source
|
|
124
124
|
))
|
|
125
125
|
: ( localize(
|
|
126
|
-
|
|
126
|
+
8057,
|
|
127
127
|
"Problem: {0} at line {1} and character {2}.{3}",
|
|
128
128
|
marker.marker.message,
|
|
129
129
|
marker.marker.startLineNumber,
|
|
@@ -133,14 +133,14 @@ class Messages {
|
|
|
133
133
|
}
|
|
134
134
|
}; }
|
|
135
135
|
static { this.MARKERS_TREE_ARIA_LABEL_RELATED_INFORMATION = (relatedInformation) => ( localize(
|
|
136
|
-
|
|
136
|
+
8058,
|
|
137
137
|
"{0} at line {1} and character {2} in {3}",
|
|
138
138
|
relatedInformation.message,
|
|
139
139
|
relatedInformation.startLineNumber,
|
|
140
140
|
relatedInformation.startColumn,
|
|
141
141
|
basename(relatedInformation.resource)
|
|
142
142
|
)); }
|
|
143
|
-
static { this.SHOW_ERRORS_WARNINGS_ACTION_LABEL = ( localize(
|
|
143
|
+
static { this.SHOW_ERRORS_WARNINGS_ACTION_LABEL = ( localize(8059, "Show Errors and Warnings")); }
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
export { Messages as default };
|