@codingame/monaco-vscode-markers-service-override 4.1.0 → 4.1.2

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.
@@ -0,0 +1,6 @@
1
+ import n from '../../../../../../../external/rollup-plugin-styles/dist/runtime/inject-css.js';
2
+
3
+ var css = ".markers-panel-action-filter>.markers-panel-filter-controls>.monaco-action-bar .action-label.markers-filters.checked{background-color:var(--vscode-inputOption-activeBackground);border-color:var(--vscode-inputOption-activeBorder);color:var(--vscode-inputOption-activeForeground)}";
4
+ n(css,{});
5
+
6
+ export { css, css as default };
@@ -0,0 +1,134 @@
1
+ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
+ import { EventHelper, getDomNodePagePosition } from 'vscode/vscode/vs/base/browser/dom';
3
+ import { Action } from 'vscode/vscode/vs/base/common/actions';
4
+ import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView';
5
+ import Messages from './messages.js';
6
+ import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
7
+ import { Emitter } from 'vscode/vscode/vs/base/common/event';
8
+ import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
9
+ import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
10
+ import { ActionViewItem } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionViewItems';
11
+ import { MarkersContextKeys } from 'vscode/vscode/vs/workbench/contrib/markers/common/markers';
12
+ import './markersViewActions.css.js';
13
+
14
+ class MarkersFilters extends Disposable {
15
+ constructor(options, contextKeyService) {
16
+ super();
17
+ this.contextKeyService = contextKeyService;
18
+ this._onDidChange = this._register(( new Emitter()));
19
+ this.onDidChange = this._onDidChange.event;
20
+ this._excludedFiles = MarkersContextKeys.ShowExcludedFilesFilterContextKey.bindTo(this.contextKeyService);
21
+ this._activeFile = MarkersContextKeys.ShowActiveFileFilterContextKey.bindTo(this.contextKeyService);
22
+ this._showWarnings = MarkersContextKeys.ShowWarningsFilterContextKey.bindTo(this.contextKeyService);
23
+ this._showErrors = MarkersContextKeys.ShowErrorsFilterContextKey.bindTo(this.contextKeyService);
24
+ this._showInfos = MarkersContextKeys.ShowInfoFilterContextKey.bindTo(this.contextKeyService);
25
+ this._showErrors.set(options.showErrors);
26
+ this._showWarnings.set(options.showWarnings);
27
+ this._showInfos.set(options.showInfos);
28
+ this._excludedFiles.set(options.excludedFiles);
29
+ this._activeFile.set(options.activeFile);
30
+ this.filterHistory = options.filterHistory;
31
+ }
32
+ get excludedFiles() {
33
+ return !!this._excludedFiles.get();
34
+ }
35
+ set excludedFiles(filesExclude) {
36
+ if (this._excludedFiles.get() !== filesExclude) {
37
+ this._excludedFiles.set(filesExclude);
38
+ this._onDidChange.fire({ excludedFiles: true });
39
+ }
40
+ }
41
+ get activeFile() {
42
+ return !!this._activeFile.get();
43
+ }
44
+ set activeFile(activeFile) {
45
+ if (this._activeFile.get() !== activeFile) {
46
+ this._activeFile.set(activeFile);
47
+ this._onDidChange.fire({ activeFile: true });
48
+ }
49
+ }
50
+ get showWarnings() {
51
+ return !!this._showWarnings.get();
52
+ }
53
+ set showWarnings(showWarnings) {
54
+ if (this._showWarnings.get() !== showWarnings) {
55
+ this._showWarnings.set(showWarnings);
56
+ this._onDidChange.fire({ showWarnings: true });
57
+ }
58
+ }
59
+ get showErrors() {
60
+ return !!this._showErrors.get();
61
+ }
62
+ set showErrors(showErrors) {
63
+ if (this._showErrors.get() !== showErrors) {
64
+ this._showErrors.set(showErrors);
65
+ this._onDidChange.fire({ showErrors: true });
66
+ }
67
+ }
68
+ get showInfos() {
69
+ return !!this._showInfos.get();
70
+ }
71
+ set showInfos(showInfos) {
72
+ if (this._showInfos.get() !== showInfos) {
73
+ this._showInfos.set(showInfos);
74
+ this._onDidChange.fire({ showInfos: true });
75
+ }
76
+ }
77
+ }
78
+ class QuickFixAction extends Action {
79
+ static { this.ID = 'workbench.actions.problems.quickfix'; }
80
+ static { this.CLASS = 'markers-panel-action-quickfix ' + ThemeIcon.asClassName(Codicon.lightBulb); }
81
+ static { this.AUTO_FIX_CLASS = QuickFixAction.CLASS + ' autofixable'; }
82
+ get quickFixes() {
83
+ return this._quickFixes;
84
+ }
85
+ set quickFixes(quickFixes) {
86
+ this._quickFixes = quickFixes;
87
+ this.enabled = this._quickFixes.length > 0;
88
+ }
89
+ autoFixable(autofixable) {
90
+ this.class = autofixable ? QuickFixAction.AUTO_FIX_CLASS : QuickFixAction.CLASS;
91
+ }
92
+ constructor(marker) {
93
+ super(QuickFixAction.ID, Messages.MARKERS_PANEL_ACTION_TOOLTIP_QUICKFIX, QuickFixAction.CLASS, false);
94
+ this.marker = marker;
95
+ this._onShowQuickFixes = this._register(( new Emitter()));
96
+ this.onShowQuickFixes = this._onShowQuickFixes.event;
97
+ this._quickFixes = [];
98
+ }
99
+ run() {
100
+ this._onShowQuickFixes.fire();
101
+ return Promise.resolve();
102
+ }
103
+ }
104
+ let QuickFixActionViewItem = class QuickFixActionViewItem extends ActionViewItem {
105
+ constructor(action, options, contextMenuService) {
106
+ super(null, action, { ...options, icon: true, label: false });
107
+ this.contextMenuService = contextMenuService;
108
+ }
109
+ onClick(event) {
110
+ EventHelper.stop(event, true);
111
+ this.showQuickFixes();
112
+ }
113
+ showQuickFixes() {
114
+ if (!this.element) {
115
+ return;
116
+ }
117
+ if (!this.isEnabled()) {
118
+ return;
119
+ }
120
+ const elementPosition = getDomNodePagePosition(this.element);
121
+ const quickFixes = this.action.quickFixes;
122
+ if (quickFixes.length) {
123
+ this.contextMenuService.showContextMenu({
124
+ getAnchor: () => ({ x: elementPosition.left + 10, y: elementPosition.top + elementPosition.height + 4 }),
125
+ getActions: () => quickFixes
126
+ });
127
+ }
128
+ }
129
+ };
130
+ QuickFixActionViewItem = ( __decorate([
131
+ ( __param(2, IContextMenuService))
132
+ ], QuickFixActionViewItem));
133
+
134
+ export { MarkersFilters, QuickFixAction, QuickFixActionViewItem };
@@ -0,0 +1,6 @@
1
+ import n from '../../../../../../../../external/rollup-plugin-styles/dist/runtime/inject-css.js';
2
+
3
+ var css = ".markers-panel .markers-panel-container{height:100%}.markers-panel .hide{display:none}.markers-panel .markers-panel-container .message-box-container{line-height:22px;padding-left:20px}.markers-panel .markers-panel-container .message-box-container .messageAction{cursor:pointer;margin-left:4px;text-decoration:underline}.markers-panel .markers-panel-container .hidden{display:none}.markers-panel .markers-panel-container .codicon.codicon-light-bulb{color:var(--vscode-editorLightBulb-foreground)}.markers-panel .markers-panel-container .codicon.codicon-lightbulb-autofix{color:var(--vscode-editorLightBulbAutoFix-foreground)}.markers-panel .markers-panel-container .tree-container.hidden{display:none;visibility:hidden}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents{display:flex;line-height:22px;padding-right:10px}.monaco-workbench.hc-black .markers-panel .markers-panel-container .tree-container .monaco-tl-contents,.monaco-workbench.hc-light .markers-panel .markers-panel-container .tree-container .monaco-tl-contents{line-height:20px}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .marker-stats{display:inline-block;margin-left:10px}.markers-panel:not(.wide) .markers-panel-container .tree-container .monaco-tl-contents .resource-label-container{flex:1}.markers-panel.wide .markers-panel-container .tree-container .monaco-tl-contents .count-badge-wrapper{margin-left:10px}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .marker-message-details-container{flex:1;overflow:hidden}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .marker-message-details-container>.marker-message-line{overflow:hidden}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .marker-message-details-container>.marker-message-line>.marker-message{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .marker-message-details-container>.marker-message-line.details-container{display:flex}.markers-panel .markers-panel-container .tree-container .monaco-list:focus .monaco-list-row.focused .monaco-tl-contents .details-container a.monaco-link{color:inherit}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .details-container a.monaco-link .monaco-highlighted-label{text-decoration:underline;text-underline-position:under}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .marker-code:before{content:\"(\"}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .marker-code:after{content:\")\"}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .details-container .marker-line,.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .details-container .marker-source,.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .details-container .multiline-actions{margin-left:6px}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .marker-code,.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .marker-line,.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .marker-source,.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .related-info-resource,.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .related-info-resource-separator{opacity:.7}.markers-panel .markers-panel-container .tree-container .monaco-tl-contents .highlight{font-weight:700}.markers-panel .monaco-tl-contents .marker-icon{align-items:center;display:flex;height:22px;justify-content:center;margin:0 6px}.markers-panel .monaco-list-row.focused .monaco-tl-contents>.marker-icon.quickFix,.markers-panel .monaco-list-row.selected .monaco-tl-contents>.marker-icon.quickFix,.markers-panel .monaco-list-row:hover .monaco-tl-contents>.marker-icon.quickFix,.markers-panel .monaco-tl-contents .actions .monaco-action-bar{display:none}.markers-panel .monaco-list-row.focused .monaco-tl-contents .actions .monaco-action-bar,.markers-panel .monaco-list-row.selected .monaco-tl-contents .actions .monaco-action-bar,.markers-panel .monaco-list-row:hover .monaco-tl-contents .actions .monaco-action-bar{display:block}.markers-panel .monaco-tl-contents .actions,.markers-panel .monaco-tl-contents .multiline-actions .monaco-action-bar{height:22px}.markers-panel .monaco-tl-contents .actions .action-label,.markers-panel .monaco-tl-contents .multiline-actions .monaco-action-bar .action-label{padding:2px}.markers-panel .monaco-tl-contents .actions .action-item{margin:0 4px}.markers-panel .monaco-tl-contents .actions .action-item.disabled,.markers-panel .monaco-tl-contents .multiline-actions .action-item.disabled{display:none}.markers-panel .markers-table-container .monaco-table .monaco-table-th{align-items:center;display:flex;font-weight:600;padding-left:10px}.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td{align-items:center;display:flex;padding-left:10px}.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td .highlight{font-weight:700}.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.code,.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.file,.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.message,.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.owner{overflow:hidden;text-overflow:ellipsis}.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.severity{display:flex}.markers-panel .markers-table-container .monaco-table .monaco-list-row.focused .monaco-table-tr>.monaco-table-td.quickFix>.severity,.markers-panel .markers-table-container .monaco-table .monaco-list-row.selected .monaco-table-tr>.monaco-table-td.quickFix>.severity,.markers-panel .markers-table-container .monaco-table .monaco-list-row:hover .monaco-table-tr>.monaco-table-td.quickFix>.severity{display:none}.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.actions{margin-left:-3px}.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.actions>.monaco-action-bar .action-item{display:none}.markers-panel .markers-table-container .monaco-table .monaco-list-row.focused .monaco-table-tr>.monaco-table-td.quickFix>.actions>.monaco-action-bar .action-item,.markers-panel .markers-table-container .monaco-table .monaco-list-row.selected .monaco-table-tr>.monaco-table-td.quickFix>.actions>.monaco-action-bar .action-item,.markers-panel .markers-table-container .monaco-table .monaco-list-row:hover .monaco-table-tr>.monaco-table-td.quickFix>.actions>.monaco-action-bar .action-item{display:flex}.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.code>.code-label:before,.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.code>.monaco-link:before{content:\"(\"}.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.code>.code-label:after,.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.code>.monaco-link:after{content:\")\"}.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.code>.code-label,.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.code>.monaco-link{display:none}.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.code.code-label>.code-label{display:inline}.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.code.code-link>.monaco-link{display:inline;text-decoration:underline}.markers-panel .markers-table-container .monaco-table .monaco-list-row .monaco-table-tr>.monaco-table-td>.file>.file-position{margin-left:6px;opacity:.7}";
4
+ n(css,{});
5
+
6
+ export { css, css as default };
@@ -0,0 +1,303 @@
1
+ import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
2
+ import { basename } from 'vscode/vscode/vs/base/common/resources';
3
+ import { MarkerSeverity } from 'vscode/vscode/vs/platform/markers/common/markers';
4
+
5
+ class Messages {
6
+ static { this.MARKERS_PANEL_TOGGLE_LABEL = ( 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 = ( localize2WithPath(
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 = ( 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 = ( 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 = ( 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 = ( 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 = ( 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 = ( 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 = ( localizeWithPath(
47
+ 'vs/workbench/contrib/markers/browser/messages',
48
+ 'problems.panel.configuration.compareOrder.position',
49
+ "Navigate problems ordered by position"
50
+ )); }
51
+ static { this.MARKERS_PANEL_TITLE_PROBLEMS = ( localize2WithPath(
52
+ 'vs/workbench/contrib/markers/browser/messages',
53
+ 'markers.panel.title.problems',
54
+ "Problems"
55
+ )); }
56
+ static { this.MARKERS_PANEL_NO_PROBLEMS_BUILT = ( localizeWithPath(
57
+ 'vs/workbench/contrib/markers/browser/messages',
58
+ 'markers.panel.no.problems.build',
59
+ "No problems have been detected in the workspace."
60
+ )); }
61
+ static { this.MARKERS_PANEL_NO_PROBLEMS_ACTIVE_FILE_BUILT = ( localizeWithPath(
62
+ 'vs/workbench/contrib/markers/browser/messages',
63
+ 'markers.panel.no.problems.activeFile.build',
64
+ "No problems have been detected in the current file."
65
+ )); }
66
+ static { this.MARKERS_PANEL_NO_PROBLEMS_FILTERS = ( localizeWithPath(
67
+ 'vs/workbench/contrib/markers/browser/messages',
68
+ 'markers.panel.no.problems.filters',
69
+ "No results found with provided filter criteria."
70
+ )); }
71
+ static { this.MARKERS_PANEL_ACTION_TOOLTIP_MORE_FILTERS = ( localizeWithPath(
72
+ 'vs/workbench/contrib/markers/browser/messages',
73
+ 'markers.panel.action.moreFilters',
74
+ "More Filters..."
75
+ )); }
76
+ static { this.MARKERS_PANEL_FILTER_LABEL_SHOW_ERRORS = ( localizeWithPath(
77
+ 'vs/workbench/contrib/markers/browser/messages',
78
+ 'markers.panel.filter.showErrors',
79
+ "Show Errors"
80
+ )); }
81
+ static { this.MARKERS_PANEL_FILTER_LABEL_SHOW_WARNINGS = ( localizeWithPath(
82
+ 'vs/workbench/contrib/markers/browser/messages',
83
+ 'markers.panel.filter.showWarnings',
84
+ "Show Warnings"
85
+ )); }
86
+ static { this.MARKERS_PANEL_FILTER_LABEL_SHOW_INFOS = ( localizeWithPath(
87
+ 'vs/workbench/contrib/markers/browser/messages',
88
+ 'markers.panel.filter.showInfos',
89
+ "Show Infos"
90
+ )); }
91
+ static { this.MARKERS_PANEL_FILTER_LABEL_EXCLUDED_FILES = ( localizeWithPath(
92
+ 'vs/workbench/contrib/markers/browser/messages',
93
+ 'markers.panel.filter.useFilesExclude',
94
+ "Hide Excluded Files"
95
+ )); }
96
+ static { this.MARKERS_PANEL_FILTER_LABEL_ACTIVE_FILE = ( localizeWithPath(
97
+ 'vs/workbench/contrib/markers/browser/messages',
98
+ 'markers.panel.filter.activeFile',
99
+ "Show Active File Only"
100
+ )); }
101
+ static { this.MARKERS_PANEL_ACTION_TOOLTIP_FILTER = ( localizeWithPath(
102
+ 'vs/workbench/contrib/markers/browser/messages',
103
+ 'markers.panel.action.filter',
104
+ "Filter Problems"
105
+ )); }
106
+ static { this.MARKERS_PANEL_ACTION_TOOLTIP_QUICKFIX = ( localizeWithPath(
107
+ 'vs/workbench/contrib/markers/browser/messages',
108
+ 'markers.panel.action.quickfix',
109
+ "Show fixes"
110
+ )); }
111
+ static { this.MARKERS_PANEL_FILTER_ARIA_LABEL = ( localizeWithPath(
112
+ 'vs/workbench/contrib/markers/browser/messages',
113
+ 'markers.panel.filter.ariaLabel',
114
+ "Filter Problems"
115
+ )); }
116
+ static { this.MARKERS_PANEL_FILTER_PLACEHOLDER = ( localizeWithPath(
117
+ 'vs/workbench/contrib/markers/browser/messages',
118
+ 'markers.panel.filter.placeholder',
119
+ "Filter (e.g. text, **/*.ts, !**/node_modules/**)"
120
+ )); }
121
+ static { this.MARKERS_PANEL_FILTER_ERRORS = ( localizeWithPath(
122
+ 'vs/workbench/contrib/markers/browser/messages',
123
+ 'markers.panel.filter.errors',
124
+ "errors"
125
+ )); }
126
+ static { this.MARKERS_PANEL_FILTER_WARNINGS = ( localizeWithPath(
127
+ 'vs/workbench/contrib/markers/browser/messages',
128
+ 'markers.panel.filter.warnings',
129
+ "warnings"
130
+ )); }
131
+ static { this.MARKERS_PANEL_FILTER_INFOS = ( localizeWithPath(
132
+ 'vs/workbench/contrib/markers/browser/messages',
133
+ 'markers.panel.filter.infos',
134
+ "infos"
135
+ )); }
136
+ static { this.MARKERS_PANEL_SINGLE_ERROR_LABEL = ( localizeWithPath(
137
+ 'vs/workbench/contrib/markers/browser/messages',
138
+ 'markers.panel.single.error.label',
139
+ "1 Error"
140
+ )); }
141
+ static { this.MARKERS_PANEL_MULTIPLE_ERRORS_LABEL = (noOfErrors) => { return ( localizeWithPath(
142
+ 'vs/workbench/contrib/markers/browser/messages',
143
+ 'markers.panel.multiple.errors.label',
144
+ "{0} Errors",
145
+ '' + noOfErrors
146
+ )); }; }
147
+ static { this.MARKERS_PANEL_SINGLE_WARNING_LABEL = ( localizeWithPath(
148
+ 'vs/workbench/contrib/markers/browser/messages',
149
+ 'markers.panel.single.warning.label',
150
+ "1 Warning"
151
+ )); }
152
+ static { this.MARKERS_PANEL_MULTIPLE_WARNINGS_LABEL = (noOfWarnings) => { return ( localizeWithPath(
153
+ 'vs/workbench/contrib/markers/browser/messages',
154
+ 'markers.panel.multiple.warnings.label',
155
+ "{0} Warnings",
156
+ '' + noOfWarnings
157
+ )); }; }
158
+ static { this.MARKERS_PANEL_SINGLE_INFO_LABEL = ( localizeWithPath(
159
+ 'vs/workbench/contrib/markers/browser/messages',
160
+ 'markers.panel.single.info.label',
161
+ "1 Info"
162
+ )); }
163
+ static { this.MARKERS_PANEL_MULTIPLE_INFOS_LABEL = (noOfInfos) => { return ( localizeWithPath(
164
+ 'vs/workbench/contrib/markers/browser/messages',
165
+ 'markers.panel.multiple.infos.label',
166
+ "{0} Infos",
167
+ '' + noOfInfos
168
+ )); }; }
169
+ static { this.MARKERS_PANEL_SINGLE_UNKNOWN_LABEL = ( localizeWithPath(
170
+ 'vs/workbench/contrib/markers/browser/messages',
171
+ 'markers.panel.single.unknown.label',
172
+ "1 Unknown"
173
+ )); }
174
+ static { this.MARKERS_PANEL_MULTIPLE_UNKNOWNS_LABEL = (noOfUnknowns) => { return ( localizeWithPath(
175
+ 'vs/workbench/contrib/markers/browser/messages',
176
+ 'markers.panel.multiple.unknowns.label',
177
+ "{0} Unknowns",
178
+ '' + noOfUnknowns
179
+ )); }; }
180
+ static { this.MARKERS_PANEL_AT_LINE_COL_NUMBER = (ln, col) => { return ( localizeWithPath(
181
+ 'vs/workbench/contrib/markers/browser/messages',
182
+ 'markers.panel.at.ln.col.number',
183
+ "[Ln {0}, Col {1}]",
184
+ '' + ln,
185
+ '' + col
186
+ )); }; }
187
+ static { this.MARKERS_TREE_ARIA_LABEL_RESOURCE = (noOfProblems, fileName, folder) => { return ( localizeWithPath(
188
+ 'vs/workbench/contrib/markers/browser/messages',
189
+ 'problems.tree.aria.label.resource',
190
+ "{0} problems in file {1} of folder {2}",
191
+ noOfProblems,
192
+ fileName,
193
+ folder
194
+ )); }; }
195
+ static { this.MARKERS_TREE_ARIA_LABEL_MARKER = (marker) => {
196
+ const relatedInformationMessage = marker.relatedInformation.length ? ( localizeWithPath(
197
+ 'vs/workbench/contrib/markers/browser/messages',
198
+ 'problems.tree.aria.label.marker.relatedInformation',
199
+ " This problem has references to {0} locations.",
200
+ marker.relatedInformation.length
201
+ )) : '';
202
+ switch (marker.marker.severity) {
203
+ case MarkerSeverity.Error:
204
+ return marker.marker.source ? ( localizeWithPath(
205
+ 'vs/workbench/contrib/markers/browser/messages',
206
+ 'problems.tree.aria.label.error.marker',
207
+ "Error: {0} at line {1} and character {2}.{3} generated by {4}",
208
+ marker.marker.message,
209
+ marker.marker.startLineNumber,
210
+ marker.marker.startColumn,
211
+ relatedInformationMessage,
212
+ marker.marker.source
213
+ ))
214
+ : ( localizeWithPath(
215
+ 'vs/workbench/contrib/markers/browser/messages',
216
+ 'problems.tree.aria.label.error.marker.nosource',
217
+ "Error: {0} at line {1} and character {2}.{3}",
218
+ marker.marker.message,
219
+ marker.marker.startLineNumber,
220
+ marker.marker.startColumn,
221
+ relatedInformationMessage
222
+ ));
223
+ case MarkerSeverity.Warning:
224
+ return marker.marker.source ? ( localizeWithPath(
225
+ 'vs/workbench/contrib/markers/browser/messages',
226
+ 'problems.tree.aria.label.warning.marker',
227
+ "Warning: {0} at line {1} and character {2}.{3} generated by {4}",
228
+ marker.marker.message,
229
+ marker.marker.startLineNumber,
230
+ marker.marker.startColumn,
231
+ relatedInformationMessage,
232
+ marker.marker.source
233
+ ))
234
+ : ( localizeWithPath(
235
+ 'vs/workbench/contrib/markers/browser/messages',
236
+ 'problems.tree.aria.label.warning.marker.nosource',
237
+ "Warning: {0} at line {1} and character {2}.{3}",
238
+ marker.marker.message,
239
+ marker.marker.startLineNumber,
240
+ marker.marker.startColumn,
241
+ relatedInformationMessage,
242
+ relatedInformationMessage
243
+ ));
244
+ case MarkerSeverity.Info:
245
+ return marker.marker.source ? ( localizeWithPath(
246
+ 'vs/workbench/contrib/markers/browser/messages',
247
+ 'problems.tree.aria.label.info.marker',
248
+ "Info: {0} at line {1} and character {2}.{3} generated by {4}",
249
+ marker.marker.message,
250
+ marker.marker.startLineNumber,
251
+ marker.marker.startColumn,
252
+ relatedInformationMessage,
253
+ marker.marker.source
254
+ ))
255
+ : ( localizeWithPath(
256
+ 'vs/workbench/contrib/markers/browser/messages',
257
+ 'problems.tree.aria.label.info.marker.nosource',
258
+ "Info: {0} at line {1} and character {2}.{3}",
259
+ marker.marker.message,
260
+ marker.marker.startLineNumber,
261
+ marker.marker.startColumn,
262
+ relatedInformationMessage
263
+ ));
264
+ default:
265
+ return marker.marker.source ? ( localizeWithPath(
266
+ 'vs/workbench/contrib/markers/browser/messages',
267
+ 'problems.tree.aria.label.marker',
268
+ "Problem: {0} at line {1} and character {2}.{3} generated by {4}",
269
+ marker.marker.source,
270
+ marker.marker.message,
271
+ marker.marker.startLineNumber,
272
+ marker.marker.startColumn,
273
+ relatedInformationMessage,
274
+ marker.marker.source
275
+ ))
276
+ : ( localizeWithPath(
277
+ 'vs/workbench/contrib/markers/browser/messages',
278
+ 'problems.tree.aria.label.marker.nosource',
279
+ "Problem: {0} at line {1} and character {2}.{3}",
280
+ marker.marker.message,
281
+ marker.marker.startLineNumber,
282
+ marker.marker.startColumn,
283
+ relatedInformationMessage
284
+ ));
285
+ }
286
+ }; }
287
+ static { this.MARKERS_TREE_ARIA_LABEL_RELATED_INFORMATION = (relatedInformation) => ( localizeWithPath(
288
+ 'vs/workbench/contrib/markers/browser/messages',
289
+ 'problems.tree.aria.label.relatedinfo.message',
290
+ "{0} at line {1} and character {2} in {3}",
291
+ relatedInformation.message,
292
+ relatedInformation.startLineNumber,
293
+ relatedInformation.startColumn,
294
+ basename(relatedInformation.resource)
295
+ )); }
296
+ static { this.SHOW_ERRORS_WARNINGS_ACTION_LABEL = ( localizeWithPath(
297
+ 'vs/workbench/contrib/markers/browser/messages',
298
+ 'errors.warnings.show.label',
299
+ "Show Errors and Warnings"
300
+ )); }
301
+ }
302
+
303
+ export { Messages as default };