@codingame/monaco-vscode-markers-service-override 26.1.1 → 26.2.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 +2 -2
- 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": "26.
|
|
3
|
+
"version": "26.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - markers service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "26.
|
|
18
|
+
"@codingame/monaco-vscode-api": "26.2.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"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(9111, "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,
|
|
@@ -138,7 +138,7 @@ const VIEW_CONTAINER = ( Registry.as(Extensions$1.ViewContainersRegistry)).regis
|
|
|
138
138
|
ctorDescriptor: ( new SyncDescriptor(MarkersView)),
|
|
139
139
|
openCommandActionDescriptor: {
|
|
140
140
|
id: "workbench.actions.view.problems",
|
|
141
|
-
mnemonicTitle: ( localize(
|
|
141
|
+
mnemonicTitle: ( localize(9112, "&&Problems")),
|
|
142
142
|
keybindings: {
|
|
143
143
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyM
|
|
144
144
|
},
|
|
@@ -150,9 +150,9 @@ registerAction2(class extends ViewAction {
|
|
|
150
150
|
constructor() {
|
|
151
151
|
super({
|
|
152
152
|
id: `workbench.actions.table.${Markers.MARKERS_VIEW_ID}.viewAsTree`,
|
|
153
|
-
title: ( localize(
|
|
153
|
+
title: ( localize(9113, "View as Tree")),
|
|
154
154
|
metadata: {
|
|
155
|
-
description: ( localize2(
|
|
155
|
+
description: ( localize2(9114, "Show the problems view as a tree."))
|
|
156
156
|
},
|
|
157
157
|
menu: {
|
|
158
158
|
id: MenuId.ViewTitle,
|
|
@@ -172,9 +172,9 @@ registerAction2(class extends ViewAction {
|
|
|
172
172
|
constructor() {
|
|
173
173
|
super({
|
|
174
174
|
id: `workbench.actions.table.${Markers.MARKERS_VIEW_ID}.viewAsTable`,
|
|
175
|
-
title: ( localize(
|
|
175
|
+
title: ( localize(9115, "View as Table")),
|
|
176
176
|
metadata: {
|
|
177
|
-
description: ( localize2(
|
|
177
|
+
description: ( localize2(9116, "Show the problems view as a table."))
|
|
178
178
|
},
|
|
179
179
|
menu: {
|
|
180
180
|
id: MenuId.ViewTitle,
|
|
@@ -194,11 +194,11 @@ registerAction2(class extends ViewAction {
|
|
|
194
194
|
constructor() {
|
|
195
195
|
super({
|
|
196
196
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleErrors`,
|
|
197
|
-
title: ( localize(
|
|
197
|
+
title: ( localize(9117, "Show Errors")),
|
|
198
198
|
metadata: {
|
|
199
|
-
description: ( localize2(
|
|
199
|
+
description: ( localize2(9118, "Show or hide errors in the problems view."))
|
|
200
200
|
},
|
|
201
|
-
category: ( localize(
|
|
201
|
+
category: ( localize(9119, "Problems")),
|
|
202
202
|
toggled: MarkersContextKeys.ShowErrorsFilterContextKey,
|
|
203
203
|
menu: {
|
|
204
204
|
id: viewFilterSubmenu,
|
|
@@ -217,11 +217,11 @@ registerAction2(class extends ViewAction {
|
|
|
217
217
|
constructor() {
|
|
218
218
|
super({
|
|
219
219
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleWarnings`,
|
|
220
|
-
title: ( localize(
|
|
220
|
+
title: ( localize(9120, "Show Warnings")),
|
|
221
221
|
metadata: {
|
|
222
|
-
description: ( localize2(
|
|
222
|
+
description: ( localize2(9121, "Show or hide warnings in the problems view."))
|
|
223
223
|
},
|
|
224
|
-
category: ( localize(
|
|
224
|
+
category: ( localize(9119, "Problems")),
|
|
225
225
|
toggled: MarkersContextKeys.ShowWarningsFilterContextKey,
|
|
226
226
|
menu: {
|
|
227
227
|
id: viewFilterSubmenu,
|
|
@@ -240,11 +240,11 @@ registerAction2(class extends ViewAction {
|
|
|
240
240
|
constructor() {
|
|
241
241
|
super({
|
|
242
242
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleInfos`,
|
|
243
|
-
title: ( localize(
|
|
244
|
-
category: ( localize(
|
|
243
|
+
title: ( localize(9122, "Show Infos")),
|
|
244
|
+
category: ( localize(9119, "Problems")),
|
|
245
245
|
toggled: MarkersContextKeys.ShowInfoFilterContextKey,
|
|
246
246
|
metadata: {
|
|
247
|
-
description: ( localize2(
|
|
247
|
+
description: ( localize2(9123, "Show or hide infos in the problems view."))
|
|
248
248
|
},
|
|
249
249
|
menu: {
|
|
250
250
|
id: viewFilterSubmenu,
|
|
@@ -263,14 +263,14 @@ registerAction2(class extends ViewAction {
|
|
|
263
263
|
constructor() {
|
|
264
264
|
super({
|
|
265
265
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleActiveFile`,
|
|
266
|
-
title: ( localize(
|
|
266
|
+
title: ( localize(9124, "Show Active File Only")),
|
|
267
267
|
metadata: {
|
|
268
268
|
description: ( localize2(
|
|
269
|
-
|
|
269
|
+
9125,
|
|
270
270
|
"Show or hide problems (errors, warnings, info) only from the active file in the problems view."
|
|
271
271
|
))
|
|
272
272
|
},
|
|
273
|
-
category: ( localize(
|
|
273
|
+
category: ( localize(9119, "Problems")),
|
|
274
274
|
toggled: MarkersContextKeys.ShowActiveFileFilterContextKey,
|
|
275
275
|
menu: {
|
|
276
276
|
id: viewFilterSubmenu,
|
|
@@ -289,11 +289,11 @@ registerAction2(class extends ViewAction {
|
|
|
289
289
|
constructor() {
|
|
290
290
|
super({
|
|
291
291
|
id: `workbench.actions.${Markers.MARKERS_VIEW_ID}.toggleExcludedFiles`,
|
|
292
|
-
title: ( localize(
|
|
292
|
+
title: ( localize(9126, "Show Excluded Files")),
|
|
293
293
|
metadata: {
|
|
294
|
-
description: ( localize2(
|
|
294
|
+
description: ( localize2(9127, "Show or hide excluded files in the problems view."))
|
|
295
295
|
},
|
|
296
|
-
category: ( localize(
|
|
296
|
+
category: ( localize(9119, "Problems")),
|
|
297
297
|
toggled: ( MarkersContextKeys.ShowExcludedFilesFilterContextKey.negate()),
|
|
298
298
|
menu: {
|
|
299
299
|
id: viewFilterSubmenu,
|
|
@@ -345,7 +345,7 @@ registerAction2(class extends MarkersViewAction {
|
|
|
345
345
|
const when = ( ContextKeyExpr.and(( FocusedViewContext.isEqualTo(Markers.MARKERS_VIEW_ID)), MarkersContextKeys.MarkersTreeVisibilityContextKey, ( MarkersContextKeys.RelatedInformationFocusContextKey.toNegated())));
|
|
346
346
|
super({
|
|
347
347
|
id: Markers.MARKER_COPY_ACTION_ID,
|
|
348
|
-
title: ( localize2(
|
|
348
|
+
title: ( localize2(9128, "Copy")),
|
|
349
349
|
menu: {
|
|
350
350
|
id: MenuId.ProblemsPanelContext,
|
|
351
351
|
when,
|
|
@@ -371,7 +371,7 @@ registerAction2(class extends MarkersViewAction {
|
|
|
371
371
|
constructor() {
|
|
372
372
|
super({
|
|
373
373
|
id: Markers.MARKER_COPY_MESSAGE_ACTION_ID,
|
|
374
|
-
title: ( localize2(
|
|
374
|
+
title: ( localize2(9129, "Copy Message")),
|
|
375
375
|
menu: {
|
|
376
376
|
id: MenuId.ProblemsPanelContext,
|
|
377
377
|
when: MarkersContextKeys.MarkerFocusContextKey,
|
|
@@ -392,7 +392,7 @@ registerAction2(class extends ViewAction {
|
|
|
392
392
|
constructor() {
|
|
393
393
|
super({
|
|
394
394
|
id: Markers.RELATED_INFORMATION_COPY_MESSAGE_ACTION_ID,
|
|
395
|
-
title: ( localize2(
|
|
395
|
+
title: ( localize2(9129, "Copy Message")),
|
|
396
396
|
menu: {
|
|
397
397
|
id: MenuId.ProblemsPanelContext,
|
|
398
398
|
when: MarkersContextKeys.RelatedInformationFocusContextKey,
|
|
@@ -413,7 +413,7 @@ registerAction2(class extends ViewAction {
|
|
|
413
413
|
constructor() {
|
|
414
414
|
super({
|
|
415
415
|
id: Markers.FOCUS_PROBLEMS_FROM_FILTER,
|
|
416
|
-
title: ( localize(
|
|
416
|
+
title: ( localize(9130, "Focus problems view")),
|
|
417
417
|
keybinding: {
|
|
418
418
|
when: MarkersContextKeys.MarkerViewFilterFocusContextKey,
|
|
419
419
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -430,7 +430,7 @@ registerAction2(class extends ViewAction {
|
|
|
430
430
|
constructor() {
|
|
431
431
|
super({
|
|
432
432
|
id: Markers.MARKERS_VIEW_FOCUS_FILTER,
|
|
433
|
-
title: ( localize(
|
|
433
|
+
title: ( localize(9131, "Focus problems filter")),
|
|
434
434
|
keybinding: {
|
|
435
435
|
when: ( FocusedViewContext.isEqualTo(Markers.MARKERS_VIEW_ID)),
|
|
436
436
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -447,8 +447,8 @@ registerAction2(class extends ViewAction {
|
|
|
447
447
|
constructor() {
|
|
448
448
|
super({
|
|
449
449
|
id: Markers.MARKERS_VIEW_SHOW_MULTILINE_MESSAGE,
|
|
450
|
-
title: ( localize2(
|
|
451
|
-
category: ( localize(
|
|
450
|
+
title: ( localize2(9132, "Show message in multiple lines")),
|
|
451
|
+
category: ( localize(9119, "Problems")),
|
|
452
452
|
menu: {
|
|
453
453
|
id: MenuId.CommandPalette,
|
|
454
454
|
when: ( ContextKeyExpr.has(getVisbileViewContextKey(Markers.MARKERS_VIEW_ID)))
|
|
@@ -464,8 +464,8 @@ registerAction2(class extends ViewAction {
|
|
|
464
464
|
constructor() {
|
|
465
465
|
super({
|
|
466
466
|
id: Markers.MARKERS_VIEW_SHOW_SINGLELINE_MESSAGE,
|
|
467
|
-
title: ( localize2(
|
|
468
|
-
category: ( localize(
|
|
467
|
+
title: ( localize2(9133, "Show message in single line")),
|
|
468
|
+
category: ( localize(9119, "Problems")),
|
|
469
469
|
menu: {
|
|
470
470
|
id: MenuId.CommandPalette,
|
|
471
471
|
when: ( ContextKeyExpr.has(getVisbileViewContextKey(Markers.MARKERS_VIEW_ID)))
|
|
@@ -481,8 +481,8 @@ registerAction2(class extends ViewAction {
|
|
|
481
481
|
constructor() {
|
|
482
482
|
super({
|
|
483
483
|
id: Markers.MARKERS_VIEW_CLEAR_FILTER_TEXT,
|
|
484
|
-
title: ( localize(
|
|
485
|
-
category: ( localize(
|
|
484
|
+
title: ( localize(9134, "Clear filters text")),
|
|
485
|
+
category: ( localize(9119, "Problems")),
|
|
486
486
|
keybinding: {
|
|
487
487
|
when: MarkersContextKeys.MarkerViewFilterFocusContextKey,
|
|
488
488
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -499,7 +499,7 @@ registerAction2(class extends ViewAction {
|
|
|
499
499
|
constructor() {
|
|
500
500
|
super({
|
|
501
501
|
id: `workbench.actions.treeView.${Markers.MARKERS_VIEW_ID}.collapseAll`,
|
|
502
|
-
title: ( localize(
|
|
502
|
+
title: ( localize(9135, "Collapse All")),
|
|
503
503
|
menu: {
|
|
504
504
|
id: MenuId.ViewTitle,
|
|
505
505
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("view", Markers.MARKERS_VIEW_ID)), ( MarkersContextKeys.MarkersViewModeContextKey.isEqualTo(MarkersViewMode.Tree)))),
|
|
@@ -574,7 +574,7 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
|
|
|
574
574
|
const markersStatistics = this.markerService.getStatistics();
|
|
575
575
|
const tooltip = this.getMarkersTooltip(markersStatistics);
|
|
576
576
|
return {
|
|
577
|
-
name: ( localize(
|
|
577
|
+
name: ( localize(9136, "Problems")),
|
|
578
578
|
text: this.getMarkersText(markersStatistics),
|
|
579
579
|
ariaLabel: tooltip,
|
|
580
580
|
tooltip,
|
|
@@ -585,9 +585,9 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
|
|
|
585
585
|
this.statusbarService.updateEntryVisibility("status.problemsVisibility", true);
|
|
586
586
|
const openSettingsCommand = "workbench.action.openSettings";
|
|
587
587
|
const configureSettingsLabel = "@id:problems.visibility";
|
|
588
|
-
const tooltip = ( localize(
|
|
588
|
+
const tooltip = ( localize(9137, "Problems are turned off. Click to open settings."));
|
|
589
589
|
return {
|
|
590
|
-
name: ( localize(
|
|
590
|
+
name: ( localize(9138, "Problems Visibility")),
|
|
591
591
|
text: "$(whole-word)",
|
|
592
592
|
ariaLabel: tooltip,
|
|
593
593
|
tooltip,
|
|
@@ -600,9 +600,9 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
|
|
|
600
600
|
};
|
|
601
601
|
}
|
|
602
602
|
getMarkersTooltip(stats) {
|
|
603
|
-
const errorTitle = n => ( localize(
|
|
604
|
-
const warningTitle = n => ( localize(
|
|
605
|
-
const infoTitle = n => ( localize(
|
|
603
|
+
const errorTitle = n => ( localize(9139, "Errors: {0}", n));
|
|
604
|
+
const warningTitle = n => ( localize(9140, "Warnings: {0}", n));
|
|
605
|
+
const infoTitle = n => ( localize(9141, "Infos: {0}", n));
|
|
606
606
|
const titles = [];
|
|
607
607
|
if (stats.errors > 0) {
|
|
608
608
|
titles.push(errorTitle(stats.errors));
|
|
@@ -614,7 +614,7 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
|
|
|
614
614
|
titles.push(infoTitle(stats.infos));
|
|
615
615
|
}
|
|
616
616
|
if (titles.length === 0) {
|
|
617
|
-
return localize(
|
|
617
|
+
return localize(9142, "No Problems");
|
|
618
618
|
}
|
|
619
619
|
return titles.join(", ");
|
|
620
620
|
}
|
|
@@ -628,7 +628,7 @@ let MarkersStatusBarContributions = class MarkersStatusBarContributions extends
|
|
|
628
628
|
return problemsText.join(" ");
|
|
629
629
|
}
|
|
630
630
|
packNumber(n) {
|
|
631
|
-
const manyProblems = ( localize(
|
|
631
|
+
const manyProblems = ( localize(9143, "10K+"));
|
|
632
632
|
return n > 9999 ? manyProblems : n > 999 ? ( n.toString()).charAt(0) + "K" : ( n.toString());
|
|
633
633
|
}
|
|
634
634
|
};
|
|
@@ -656,7 +656,7 @@ let ActivityUpdater = class ActivityUpdater extends Disposable {
|
|
|
656
656
|
} = this.markerService.getStatistics();
|
|
657
657
|
const total = errors + warnings + infos;
|
|
658
658
|
if (total > 0) {
|
|
659
|
-
const message = ( localize(
|
|
659
|
+
const message = ( localize(9144, "Total {0} Problems", total));
|
|
660
660
|
this.activity.value = this.activityService.showViewActivity(Markers.MARKERS_VIEW_ID, {
|
|
661
661
|
badge: ( new NumberBadge(total, () => message))
|
|
662
662
|
});
|
|
@@ -21,7 +21,7 @@ let MarkerChatContextPick = class MarkerChatContextPick {
|
|
|
21
21
|
this._labelService = _labelService;
|
|
22
22
|
this._editorService = _editorService;
|
|
23
23
|
this.type = "pickerPick";
|
|
24
|
-
this.label = ( localize(
|
|
24
|
+
this.label = ( localize(9145, "Problems..."));
|
|
25
25
|
this.icon = Codicon.error;
|
|
26
26
|
this.ordinal = -100;
|
|
27
27
|
}
|
|
@@ -30,7 +30,7 @@ let MarkerChatContextPick = class MarkerChatContextPick {
|
|
|
30
30
|
}
|
|
31
31
|
asPicker() {
|
|
32
32
|
return {
|
|
33
|
-
placeholder: ( localize(
|
|
33
|
+
placeholder: ( localize(9146, "Select a problem to attach")),
|
|
34
34
|
picks: picksWithPromiseFn(async (query, token) => {
|
|
35
35
|
return this.getPicksForQuery(query);
|
|
36
36
|
})
|
|
@@ -75,7 +75,7 @@ let MarkerChatContextPick = class MarkerChatContextPick {
|
|
|
75
75
|
items.push({
|
|
76
76
|
label: marker.message,
|
|
77
77
|
description: ( localize(
|
|
78
|
-
|
|
78
|
+
9147,
|
|
79
79
|
"[Ln {0}, Col {1}]",
|
|
80
80
|
"" + marker.startLineNumber,
|
|
81
81
|
"" + marker.startColumn
|
|
@@ -87,7 +87,7 @@ let MarkerChatContextPick = class MarkerChatContextPick {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
items.unshift({
|
|
90
|
-
label: ( localize(
|
|
90
|
+
label: ( localize(9148, "All Problems")),
|
|
91
91
|
asAttachment() {
|
|
92
92
|
return IDiagnosticVariableEntryFilterData.toEntry({
|
|
93
93
|
filterSeverity: MarkerSeverity.Info
|
|
@@ -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(9149, "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(9150, "1 problem in this file")) : ( localize(9151, "{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
|
};
|
|
@@ -98,7 +98,7 @@ MarkersFileDecorations = ( __decorate([( __param(0, IMarkerService)), ( __param(
|
|
|
98
98
|
"properties": {
|
|
99
99
|
"problems.decorations.enabled": {
|
|
100
100
|
"markdownDescription": ( localize(
|
|
101
|
-
|
|
101
|
+
9152,
|
|
102
102
|
"Show Errors & Warnings on files and folder. Overwritten by {0} when it is off.",
|
|
103
103
|
"`#problems.visibility#`"
|
|
104
104
|
)),
|
|
@@ -274,7 +274,7 @@ let MarkersTable = class MarkersTable extends Disposable {
|
|
|
274
274
|
return row;
|
|
275
275
|
}
|
|
276
276
|
}, {
|
|
277
|
-
label: ( localize(
|
|
277
|
+
label: ( localize(9153, "Code")),
|
|
278
278
|
tooltip: "",
|
|
279
279
|
weight: 1,
|
|
280
280
|
minimumWidth: 100,
|
|
@@ -284,7 +284,7 @@ let MarkersTable = class MarkersTable extends Disposable {
|
|
|
284
284
|
return row;
|
|
285
285
|
}
|
|
286
286
|
}, {
|
|
287
|
-
label: ( localize(
|
|
287
|
+
label: ( localize(9154, "Message")),
|
|
288
288
|
tooltip: "",
|
|
289
289
|
weight: 4,
|
|
290
290
|
templateId: MarkerMessageColumnRenderer.TEMPLATE_ID,
|
|
@@ -292,7 +292,7 @@ let MarkersTable = class MarkersTable extends Disposable {
|
|
|
292
292
|
return row;
|
|
293
293
|
}
|
|
294
294
|
}, {
|
|
295
|
-
label: ( localize(
|
|
295
|
+
label: ( localize(9155, "File")),
|
|
296
296
|
tooltip: "",
|
|
297
297
|
weight: 2,
|
|
298
298
|
templateId: MarkerFileColumnRenderer.TEMPLATE_ID,
|
|
@@ -300,7 +300,7 @@ let MarkersTable = class MarkersTable extends Disposable {
|
|
|
300
300
|
return row;
|
|
301
301
|
}
|
|
302
302
|
}, {
|
|
303
|
-
label: ( localize(
|
|
303
|
+
label: ( localize(9156, "Source")),
|
|
304
304
|
tooltip: "",
|
|
305
305
|
weight: 1,
|
|
306
306
|
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(9157, "Problems View");
|
|
53
53
|
}
|
|
54
54
|
getAriaLabel(element) {
|
|
55
55
|
if (element instanceof ResourceMarkers) {
|
|
@@ -192,9 +192,9 @@ let MarkerRenderer = class MarkerRenderer {
|
|
|
192
192
|
}
|
|
193
193
|
};
|
|
194
194
|
MarkerRenderer = ( __decorate([( __param(1, IHoverService)), ( __param(2, IInstantiationService)), ( __param(3, IOpenerService))], MarkerRenderer));
|
|
195
|
-
const expandedIcon = registerIcon("markers-view-multi-line-expanded", Codicon.chevronUp, ( localize(
|
|
195
|
+
const expandedIcon = registerIcon("markers-view-multi-line-expanded", Codicon.chevronUp, ( localize(9158, "Icon indicating that multiple lines are shown in the markers view.")));
|
|
196
196
|
const collapsedIcon = registerIcon("markers-view-multi-line-collapsed", Codicon.chevronDown, ( localize(
|
|
197
|
-
|
|
197
|
+
9159,
|
|
198
198
|
"Icon indicating that multiple lines are collapsed in the markers view."
|
|
199
199
|
)));
|
|
200
200
|
const toggleMultilineAction = "problems.action.toggleMultiline";
|
|
@@ -300,7 +300,7 @@ class MarkerWidget extends Disposable {
|
|
|
300
300
|
const multiline = viewModel && viewModel.multiline;
|
|
301
301
|
const action = this.disposables.add(( new Action(toggleMultilineAction)));
|
|
302
302
|
action.enabled = !!viewModel && marker.lines.length > 1;
|
|
303
|
-
action.tooltip = multiline ? ( localize(
|
|
303
|
+
action.tooltip = multiline ? ( localize(9160, "Show message in single line")) : ( localize(9161, "Show message in multiple lines"));
|
|
304
304
|
action.class = ThemeIcon.asClassName(multiline ? expandedIcon : collapsedIcon);
|
|
305
305
|
action.run = () => {
|
|
306
306
|
if (viewModel) {
|
|
@@ -210,7 +210,7 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
210
210
|
this.filterWidget.focus();
|
|
211
211
|
}
|
|
212
212
|
updateBadge(total, filtered) {
|
|
213
|
-
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( localize(
|
|
213
|
+
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( localize(9162, "Showing {0} of {1}", filtered, total)));
|
|
214
214
|
}
|
|
215
215
|
checkMoreFilters() {
|
|
216
216
|
this.filterWidget.checkMoreFilters(
|
|
@@ -638,9 +638,9 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
638
638
|
} else {
|
|
639
639
|
this.messageBoxContainer.style.display = "none";
|
|
640
640
|
if (filtered === total) {
|
|
641
|
-
this.setAriaLabel(( localize(
|
|
641
|
+
this.setAriaLabel(( localize(9163, "Showing {0} problems", total)));
|
|
642
642
|
} else {
|
|
643
|
-
this.setAriaLabel(( localize(
|
|
643
|
+
this.setAriaLabel(( localize(9164, "Showing {0} of {1} problems", filtered, total)));
|
|
644
644
|
}
|
|
645
645
|
this.messageBoxContainer.removeAttribute("tabIndex");
|
|
646
646
|
}
|
|
@@ -656,7 +656,7 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
656
656
|
const span1 = append(container, $("span"));
|
|
657
657
|
span1.textContent = Messages.MARKERS_PANEL_NO_PROBLEMS_FILTERS;
|
|
658
658
|
const link = append(container, $("a.messageAction"));
|
|
659
|
-
link.textContent = ( localize(
|
|
659
|
+
link.textContent = ( localize(9165, "Clear Filters"));
|
|
660
660
|
link.setAttribute("tabIndex", "0");
|
|
661
661
|
const span2 = append(container, $("span"));
|
|
662
662
|
span2.textContent = ".";
|
|
@@ -5,127 +5,127 @@ import { MarkerSeverity } from '@codingame/monaco-vscode-api/vscode/vs/platform/
|
|
|
5
5
|
|
|
6
6
|
class Messages {
|
|
7
7
|
static {
|
|
8
|
-
this.MARKERS_PANEL_TOGGLE_LABEL = ( localize(
|
|
8
|
+
this.MARKERS_PANEL_TOGGLE_LABEL = ( localize(9166, "Toggle Problems (Errors, Warnings, Infos)"));
|
|
9
9
|
}
|
|
10
10
|
static {
|
|
11
|
-
this.MARKERS_PANEL_SHOW_LABEL = ( localize2(
|
|
11
|
+
this.MARKERS_PANEL_SHOW_LABEL = ( localize2(9167, "Focus Problems (Errors, Warnings, Infos)"));
|
|
12
12
|
}
|
|
13
13
|
static {
|
|
14
|
-
this.PROBLEMS_PANEL_CONFIGURATION_TITLE = ( localize(
|
|
14
|
+
this.PROBLEMS_PANEL_CONFIGURATION_TITLE = ( localize(9168, "Problems View"));
|
|
15
15
|
}
|
|
16
16
|
static {
|
|
17
17
|
this.PROBLEMS_PANEL_CONFIGURATION_AUTO_REVEAL = ( localize(
|
|
18
|
-
|
|
18
|
+
9169,
|
|
19
19
|
"Controls whether Problems view should automatically reveal files when opening them."
|
|
20
20
|
));
|
|
21
21
|
}
|
|
22
22
|
static {
|
|
23
|
-
this.PROBLEMS_PANEL_CONFIGURATION_VIEW_MODE = ( localize(
|
|
23
|
+
this.PROBLEMS_PANEL_CONFIGURATION_VIEW_MODE = ( localize(9170, "Controls the default view mode of the Problems view."));
|
|
24
24
|
}
|
|
25
25
|
static {
|
|
26
|
-
this.PROBLEMS_PANEL_CONFIGURATION_SHOW_CURRENT_STATUS = ( localize(
|
|
26
|
+
this.PROBLEMS_PANEL_CONFIGURATION_SHOW_CURRENT_STATUS = ( localize(9171, "When enabled shows the current problem in the status bar."));
|
|
27
27
|
}
|
|
28
28
|
static {
|
|
29
|
-
this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER = ( localize(
|
|
29
|
+
this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER = ( localize(9172, "Controls the order in which problems are navigated."));
|
|
30
30
|
}
|
|
31
31
|
static {
|
|
32
|
-
this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER_SEVERITY = ( localize(
|
|
32
|
+
this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER_SEVERITY = ( localize(9173, "Navigate problems ordered by severity"));
|
|
33
33
|
}
|
|
34
34
|
static {
|
|
35
|
-
this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER_POSITION = ( localize(
|
|
35
|
+
this.PROBLEMS_PANEL_CONFIGURATION_COMPARE_ORDER_POSITION = ( localize(9174, "Navigate problems ordered by position"));
|
|
36
36
|
}
|
|
37
37
|
static {
|
|
38
|
-
this.MARKERS_PANEL_TITLE_PROBLEMS = ( localize2(
|
|
38
|
+
this.MARKERS_PANEL_TITLE_PROBLEMS = ( localize2(9175, "Problems"));
|
|
39
39
|
}
|
|
40
40
|
static {
|
|
41
|
-
this.MARKERS_PANEL_NO_PROBLEMS_BUILT = ( localize(
|
|
41
|
+
this.MARKERS_PANEL_NO_PROBLEMS_BUILT = ( localize(9176, "No problems have been detected in the workspace."));
|
|
42
42
|
}
|
|
43
43
|
static {
|
|
44
|
-
this.MARKERS_PANEL_NO_PROBLEMS_ACTIVE_FILE_BUILT = ( localize(
|
|
44
|
+
this.MARKERS_PANEL_NO_PROBLEMS_ACTIVE_FILE_BUILT = ( localize(9177, "No problems have been detected in the current file."));
|
|
45
45
|
}
|
|
46
46
|
static {
|
|
47
|
-
this.MARKERS_PANEL_NO_PROBLEMS_FILTERS = ( localize(
|
|
47
|
+
this.MARKERS_PANEL_NO_PROBLEMS_FILTERS = ( localize(9178, "No results found with provided filter criteria."));
|
|
48
48
|
}
|
|
49
49
|
static {
|
|
50
|
-
this.MARKERS_PANEL_ACTION_TOOLTIP_MORE_FILTERS = ( localize(
|
|
50
|
+
this.MARKERS_PANEL_ACTION_TOOLTIP_MORE_FILTERS = ( localize(9179, "More Filters..."));
|
|
51
51
|
}
|
|
52
52
|
static {
|
|
53
|
-
this.MARKERS_PANEL_FILTER_LABEL_SHOW_ERRORS = ( localize(
|
|
53
|
+
this.MARKERS_PANEL_FILTER_LABEL_SHOW_ERRORS = ( localize(9180, "Show Errors"));
|
|
54
54
|
}
|
|
55
55
|
static {
|
|
56
|
-
this.MARKERS_PANEL_FILTER_LABEL_SHOW_WARNINGS = ( localize(
|
|
56
|
+
this.MARKERS_PANEL_FILTER_LABEL_SHOW_WARNINGS = ( localize(9181, "Show Warnings"));
|
|
57
57
|
}
|
|
58
58
|
static {
|
|
59
|
-
this.MARKERS_PANEL_FILTER_LABEL_SHOW_INFOS = ( localize(
|
|
59
|
+
this.MARKERS_PANEL_FILTER_LABEL_SHOW_INFOS = ( localize(9182, "Show Infos"));
|
|
60
60
|
}
|
|
61
61
|
static {
|
|
62
|
-
this.MARKERS_PANEL_FILTER_LABEL_EXCLUDED_FILES = ( localize(
|
|
62
|
+
this.MARKERS_PANEL_FILTER_LABEL_EXCLUDED_FILES = ( localize(9183, "Hide Excluded Files"));
|
|
63
63
|
}
|
|
64
64
|
static {
|
|
65
|
-
this.MARKERS_PANEL_FILTER_LABEL_ACTIVE_FILE = ( localize(
|
|
65
|
+
this.MARKERS_PANEL_FILTER_LABEL_ACTIVE_FILE = ( localize(9184, "Show Active File Only"));
|
|
66
66
|
}
|
|
67
67
|
static {
|
|
68
|
-
this.MARKERS_PANEL_ACTION_TOOLTIP_FILTER = ( localize(
|
|
68
|
+
this.MARKERS_PANEL_ACTION_TOOLTIP_FILTER = ( localize(9185, "Filter Problems"));
|
|
69
69
|
}
|
|
70
70
|
static {
|
|
71
|
-
this.MARKERS_PANEL_ACTION_TOOLTIP_QUICKFIX = ( localize(
|
|
71
|
+
this.MARKERS_PANEL_ACTION_TOOLTIP_QUICKFIX = ( localize(9186, "Show fixes"));
|
|
72
72
|
}
|
|
73
73
|
static {
|
|
74
|
-
this.MARKERS_PANEL_FILTER_ARIA_LABEL = ( localize(
|
|
74
|
+
this.MARKERS_PANEL_FILTER_ARIA_LABEL = ( localize(9187, "Filter Problems"));
|
|
75
75
|
}
|
|
76
76
|
static {
|
|
77
|
-
this.MARKERS_PANEL_FILTER_PLACEHOLDER = ( localize(
|
|
77
|
+
this.MARKERS_PANEL_FILTER_PLACEHOLDER = ( localize(9188, "Filter (e.g. text, **/*.ts, !**/node_modules/**, @source:ts)"));
|
|
78
78
|
}
|
|
79
79
|
static {
|
|
80
|
-
this.MARKERS_PANEL_FILTER_ERRORS = ( localize(
|
|
80
|
+
this.MARKERS_PANEL_FILTER_ERRORS = ( localize(9189, "errors"));
|
|
81
81
|
}
|
|
82
82
|
static {
|
|
83
|
-
this.MARKERS_PANEL_FILTER_WARNINGS = ( localize(
|
|
83
|
+
this.MARKERS_PANEL_FILTER_WARNINGS = ( localize(9190, "warnings"));
|
|
84
84
|
}
|
|
85
85
|
static {
|
|
86
|
-
this.MARKERS_PANEL_FILTER_INFOS = ( localize(
|
|
86
|
+
this.MARKERS_PANEL_FILTER_INFOS = ( localize(9191, "infos"));
|
|
87
87
|
}
|
|
88
88
|
static {
|
|
89
|
-
this.MARKERS_PANEL_SINGLE_ERROR_LABEL = ( localize(
|
|
89
|
+
this.MARKERS_PANEL_SINGLE_ERROR_LABEL = ( localize(9192, "1 Error"));
|
|
90
90
|
}
|
|
91
91
|
static {
|
|
92
92
|
this.MARKERS_PANEL_MULTIPLE_ERRORS_LABEL = noOfErrors => {
|
|
93
|
-
return localize(
|
|
93
|
+
return localize(9193, "{0} Errors", "" + noOfErrors);
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
96
|
static {
|
|
97
|
-
this.MARKERS_PANEL_SINGLE_WARNING_LABEL = ( localize(
|
|
97
|
+
this.MARKERS_PANEL_SINGLE_WARNING_LABEL = ( localize(9194, "1 Warning"));
|
|
98
98
|
}
|
|
99
99
|
static {
|
|
100
100
|
this.MARKERS_PANEL_MULTIPLE_WARNINGS_LABEL = noOfWarnings => {
|
|
101
|
-
return localize(
|
|
101
|
+
return localize(9195, "{0} Warnings", "" + noOfWarnings);
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
static {
|
|
105
|
-
this.MARKERS_PANEL_SINGLE_INFO_LABEL = ( localize(
|
|
105
|
+
this.MARKERS_PANEL_SINGLE_INFO_LABEL = ( localize(9196, "1 Info"));
|
|
106
106
|
}
|
|
107
107
|
static {
|
|
108
108
|
this.MARKERS_PANEL_MULTIPLE_INFOS_LABEL = noOfInfos => {
|
|
109
|
-
return localize(
|
|
109
|
+
return localize(9197, "{0} Infos", "" + noOfInfos);
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
static {
|
|
113
|
-
this.MARKERS_PANEL_SINGLE_UNKNOWN_LABEL = ( localize(
|
|
113
|
+
this.MARKERS_PANEL_SINGLE_UNKNOWN_LABEL = ( localize(9198, "1 Unknown"));
|
|
114
114
|
}
|
|
115
115
|
static {
|
|
116
116
|
this.MARKERS_PANEL_MULTIPLE_UNKNOWNS_LABEL = noOfUnknowns => {
|
|
117
|
-
return localize(
|
|
117
|
+
return localize(9199, "{0} Unknowns", "" + noOfUnknowns);
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
120
|
static {
|
|
121
121
|
this.MARKERS_PANEL_AT_LINE_COL_NUMBER = (ln, col) => {
|
|
122
|
-
return localize(
|
|
122
|
+
return localize(9200, "[Ln {0}, Col {1}]", "" + ln, "" + col);
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
125
|
static {
|
|
126
126
|
this.MARKERS_TREE_ARIA_LABEL_RESOURCE = (noOfProblems, fileName, folder) => {
|
|
127
127
|
return localize(
|
|
128
|
-
|
|
128
|
+
9201,
|
|
129
129
|
"{0} problems in file {1} of folder {2}",
|
|
130
130
|
noOfProblems,
|
|
131
131
|
fileName,
|
|
@@ -136,14 +136,14 @@ class Messages {
|
|
|
136
136
|
static {
|
|
137
137
|
this.MARKERS_TREE_ARIA_LABEL_MARKER = marker => {
|
|
138
138
|
const relatedInformationMessage = marker.relatedInformation.length ? ( localize(
|
|
139
|
-
|
|
139
|
+
9202,
|
|
140
140
|
" This problem has references to {0} locations.",
|
|
141
141
|
marker.relatedInformation.length
|
|
142
142
|
)) : "";
|
|
143
143
|
switch (marker.marker.severity) {
|
|
144
144
|
case MarkerSeverity.Error:
|
|
145
145
|
return marker.marker.source ? ( localize(
|
|
146
|
-
|
|
146
|
+
9203,
|
|
147
147
|
"Error: {0} at line {1} and character {2}.{3} generated by {4}",
|
|
148
148
|
marker.marker.message,
|
|
149
149
|
marker.marker.startLineNumber,
|
|
@@ -151,7 +151,7 @@ class Messages {
|
|
|
151
151
|
relatedInformationMessage,
|
|
152
152
|
marker.marker.source
|
|
153
153
|
)) : ( localize(
|
|
154
|
-
|
|
154
|
+
9204,
|
|
155
155
|
"Error: {0} at line {1} and character {2}.{3}",
|
|
156
156
|
marker.marker.message,
|
|
157
157
|
marker.marker.startLineNumber,
|
|
@@ -160,7 +160,7 @@ class Messages {
|
|
|
160
160
|
));
|
|
161
161
|
case MarkerSeverity.Warning:
|
|
162
162
|
return marker.marker.source ? ( localize(
|
|
163
|
-
|
|
163
|
+
9205,
|
|
164
164
|
"Warning: {0} at line {1} and character {2}.{3} generated by {4}",
|
|
165
165
|
marker.marker.message,
|
|
166
166
|
marker.marker.startLineNumber,
|
|
@@ -168,7 +168,7 @@ class Messages {
|
|
|
168
168
|
relatedInformationMessage,
|
|
169
169
|
marker.marker.source
|
|
170
170
|
)) : ( localize(
|
|
171
|
-
|
|
171
|
+
9206,
|
|
172
172
|
"Warning: {0} at line {1} and character {2}.{3}",
|
|
173
173
|
marker.marker.message,
|
|
174
174
|
marker.marker.startLineNumber,
|
|
@@ -178,7 +178,7 @@ class Messages {
|
|
|
178
178
|
));
|
|
179
179
|
case MarkerSeverity.Info:
|
|
180
180
|
return marker.marker.source ? ( localize(
|
|
181
|
-
|
|
181
|
+
9207,
|
|
182
182
|
"Info: {0} at line {1} and character {2}.{3} generated by {4}",
|
|
183
183
|
marker.marker.message,
|
|
184
184
|
marker.marker.startLineNumber,
|
|
@@ -186,7 +186,7 @@ class Messages {
|
|
|
186
186
|
relatedInformationMessage,
|
|
187
187
|
marker.marker.source
|
|
188
188
|
)) : ( localize(
|
|
189
|
-
|
|
189
|
+
9208,
|
|
190
190
|
"Info: {0} at line {1} and character {2}.{3}",
|
|
191
191
|
marker.marker.message,
|
|
192
192
|
marker.marker.startLineNumber,
|
|
@@ -195,7 +195,7 @@ class Messages {
|
|
|
195
195
|
));
|
|
196
196
|
default:
|
|
197
197
|
return marker.marker.source ? ( localize(
|
|
198
|
-
|
|
198
|
+
9209,
|
|
199
199
|
"Problem: {0} at line {1} and character {2}.{3} generated by {4}",
|
|
200
200
|
marker.marker.source,
|
|
201
201
|
marker.marker.message,
|
|
@@ -204,7 +204,7 @@ class Messages {
|
|
|
204
204
|
relatedInformationMessage,
|
|
205
205
|
marker.marker.source
|
|
206
206
|
)) : ( localize(
|
|
207
|
-
|
|
207
|
+
9210,
|
|
208
208
|
"Problem: {0} at line {1} and character {2}.{3}",
|
|
209
209
|
marker.marker.message,
|
|
210
210
|
marker.marker.startLineNumber,
|
|
@@ -216,7 +216,7 @@ class Messages {
|
|
|
216
216
|
}
|
|
217
217
|
static {
|
|
218
218
|
this.MARKERS_TREE_ARIA_LABEL_RELATED_INFORMATION = relatedInformation => ( localize(
|
|
219
|
-
|
|
219
|
+
9211,
|
|
220
220
|
"{0} at line {1} and character {2} in {3}",
|
|
221
221
|
relatedInformation.message,
|
|
222
222
|
relatedInformation.startLineNumber,
|
|
@@ -225,7 +225,7 @@ class Messages {
|
|
|
225
225
|
));
|
|
226
226
|
}
|
|
227
227
|
static {
|
|
228
|
-
this.SHOW_ERRORS_WARNINGS_ACTION_LABEL = ( localize(
|
|
228
|
+
this.SHOW_ERRORS_WARNINGS_ACTION_LABEL = ( localize(9212, "Show Errors and Warnings"));
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
|