@codingame/monaco-vscode-output-service-override 25.1.2 → 26.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.js +264 -211
- package/vscode/src/vs/workbench/contrib/output/browser/outputLinkProvider.js +25 -21
- package/vscode/src/vs/workbench/contrib/output/browser/outputServices.js +122 -79
- package/vscode/src/vs/workbench/contrib/output/browser/outputView.js +163 -99
- package/vscode/src/vs/workbench/contrib/output/common/outputChannelModel.js +216 -136
- package/vscode/src/vs/workbench/contrib/output/common/outputLinkComputer.js +18 -19
|
@@ -44,17 +44,34 @@ import { escapeRegExpCharacters } from '@codingame/monaco-vscode-api/vscode/vs/b
|
|
|
44
44
|
|
|
45
45
|
registerCss(output);
|
|
46
46
|
let OutputViewPane = class OutputViewPane extends FilterViewPane {
|
|
47
|
-
get scrollLock() {
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
get scrollLock() {
|
|
48
|
+
return !!this.scrollLockContextKey.get();
|
|
49
|
+
}
|
|
50
|
+
set scrollLock(scrollLock) {
|
|
51
|
+
this.scrollLockContextKey.set(scrollLock);
|
|
52
|
+
}
|
|
53
|
+
constructor(
|
|
54
|
+
options,
|
|
55
|
+
keybindingService,
|
|
56
|
+
contextMenuService,
|
|
57
|
+
configurationService,
|
|
58
|
+
contextKeyService,
|
|
59
|
+
viewDescriptorService,
|
|
60
|
+
instantiationService,
|
|
61
|
+
openerService,
|
|
62
|
+
themeService,
|
|
63
|
+
hoverService,
|
|
64
|
+
outputService,
|
|
65
|
+
storageService
|
|
66
|
+
) {
|
|
50
67
|
const memento = ( new Memento(Markers.MARKERS_VIEW_STORAGE_ID, storageService));
|
|
51
68
|
const viewState = memento.getMemento(StorageScope.WORKSPACE, StorageTarget.MACHINE);
|
|
52
69
|
super({
|
|
53
70
|
...options,
|
|
54
71
|
filterOptions: {
|
|
55
|
-
placeholder: ( localize(
|
|
72
|
+
placeholder: ( localize(10144, "Filter (e.g. text, !excludeText, text1,text2)")),
|
|
56
73
|
focusContextKey: OUTPUT_FILTER_FOCUS_CONTEXT.key,
|
|
57
|
-
text: viewState.filter ||
|
|
74
|
+
text: viewState.filter || "",
|
|
58
75
|
history: []
|
|
59
76
|
}
|
|
60
77
|
}, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, hoverService);
|
|
@@ -63,13 +80,13 @@ let OutputViewPane = class OutputViewPane extends FilterViewPane {
|
|
|
63
80
|
this.memento = memento;
|
|
64
81
|
this.panelState = viewState;
|
|
65
82
|
const filters = outputService.filters;
|
|
66
|
-
filters.text = this.panelState.filter ||
|
|
83
|
+
filters.text = this.panelState.filter || "";
|
|
67
84
|
filters.trace = this.panelState.showTrace ?? true;
|
|
68
85
|
filters.debug = this.panelState.showDebug ?? true;
|
|
69
86
|
filters.info = this.panelState.showInfo ?? true;
|
|
70
87
|
filters.warning = this.panelState.showWarning ?? true;
|
|
71
88
|
filters.error = this.panelState.showError ?? true;
|
|
72
|
-
filters.categories = this.panelState.categories ??
|
|
89
|
+
filters.categories = this.panelState.categories ?? "";
|
|
73
90
|
this.scrollLockContextKey = CONTEXT_OUTPUT_SCROLL_LOCK.bindTo(this.contextKeyService);
|
|
74
91
|
const editorInstantiationService = this._register(instantiationService.createChild(( new ServiceCollection([IContextKeyService, this.scopedContextKeyService]))));
|
|
75
92
|
this.editor = this._register(editorInstantiationService.createInstance(OutputEditor));
|
|
@@ -77,8 +94,12 @@ let OutputViewPane = class OutputViewPane extends FilterViewPane {
|
|
|
77
94
|
this.updateTitle(this.editor.getTitle());
|
|
78
95
|
this.updateActions();
|
|
79
96
|
}));
|
|
80
|
-
this._register(
|
|
81
|
-
|
|
97
|
+
this._register(
|
|
98
|
+
this.onDidChangeBodyVisibility(() => this.onDidChangeVisibility(this.isBodyVisible()))
|
|
99
|
+
);
|
|
100
|
+
this._register(
|
|
101
|
+
this.filterWidget.onDidChangeFilterText(text => outputService.filters.text = text)
|
|
102
|
+
);
|
|
82
103
|
this.checkMoreFilters();
|
|
83
104
|
this._register(outputService.filters.onDidChange(() => this.checkMoreFilters()));
|
|
84
105
|
}
|
|
@@ -95,24 +116,27 @@ let OutputViewPane = class OutputViewPane extends FilterViewPane {
|
|
|
95
116
|
this.editorPromise?.then(() => this.editor.focus());
|
|
96
117
|
}
|
|
97
118
|
clearFilterText() {
|
|
98
|
-
this.filterWidget.setFilterText(
|
|
119
|
+
this.filterWidget.setFilterText("");
|
|
99
120
|
}
|
|
100
121
|
renderBody(container) {
|
|
101
122
|
super.renderBody(container);
|
|
102
123
|
this.editor.create(container);
|
|
103
|
-
container.classList.add(
|
|
124
|
+
container.classList.add("output-view");
|
|
104
125
|
const codeEditor = this.editor.getControl();
|
|
105
|
-
codeEditor.setAriaOptions({
|
|
126
|
+
codeEditor.setAriaOptions({
|
|
127
|
+
role: "document",
|
|
128
|
+
activeDescendant: undefined
|
|
129
|
+
});
|
|
106
130
|
this._register(codeEditor.onDidChangeModelContent(() => {
|
|
107
131
|
if (!this.scrollLock) {
|
|
108
132
|
this.editor.revealLastLine();
|
|
109
133
|
}
|
|
110
134
|
}));
|
|
111
|
-
this._register(codeEditor.onDidChangeCursorPosition(
|
|
135
|
+
this._register(codeEditor.onDidChangeCursorPosition(e => {
|
|
112
136
|
if (e.reason !== CursorChangeReason.Explicit) {
|
|
113
137
|
return;
|
|
114
138
|
}
|
|
115
|
-
if (!this.configurationService.getValue(
|
|
139
|
+
if (!this.configurationService.getValue("output.smartScroll.enabled")) {
|
|
116
140
|
return;
|
|
117
141
|
}
|
|
118
142
|
const model = codeEditor.getModel();
|
|
@@ -138,12 +162,16 @@ let OutputViewPane = class OutputViewPane extends FilterViewPane {
|
|
|
138
162
|
const input = this.createInput(channel);
|
|
139
163
|
if (!this.editor.input || !input.matches(this.editor.input)) {
|
|
140
164
|
this.editorPromise?.cancel();
|
|
141
|
-
this.editorPromise = createCancelablePromise(token => this.editor.setInput(input, {
|
|
165
|
+
this.editorPromise = createCancelablePromise(token => this.editor.setInput(input, {
|
|
166
|
+
preserveFocus: true
|
|
167
|
+
}, Object.create(null), token));
|
|
142
168
|
}
|
|
143
169
|
}
|
|
144
170
|
checkMoreFilters() {
|
|
145
171
|
const filters = this.outputService.filters;
|
|
146
|
-
this.filterWidget.checkMoreFilters(
|
|
172
|
+
this.filterWidget.checkMoreFilters(
|
|
173
|
+
!filters.trace || !filters.debug || !filters.info || !filters.warning || !filters.error || (!!this.channelId && filters.categories.includes(`,${this.channelId}:`))
|
|
174
|
+
);
|
|
147
175
|
}
|
|
148
176
|
clearInput() {
|
|
149
177
|
this.channelId = undefined;
|
|
@@ -151,7 +179,7 @@ let OutputViewPane = class OutputViewPane extends FilterViewPane {
|
|
|
151
179
|
this.editorPromise = null;
|
|
152
180
|
}
|
|
153
181
|
createInput(channel) {
|
|
154
|
-
return this.instantiationService.createInstance(TextResourceEditorInput, channel.uri, ( localize(
|
|
182
|
+
return this.instantiationService.createInstance(TextResourceEditorInput, channel.uri, ( localize(10145, "{0} - Output", channel.label)), ( localize(10146, "Output channel for '{0}'", channel.label)), undefined, undefined);
|
|
155
183
|
}
|
|
156
184
|
saveState() {
|
|
157
185
|
const filters = this.outputService.filters;
|
|
@@ -166,22 +194,31 @@ let OutputViewPane = class OutputViewPane extends FilterViewPane {
|
|
|
166
194
|
super.saveState();
|
|
167
195
|
}
|
|
168
196
|
};
|
|
169
|
-
OutputViewPane = ( __decorate([
|
|
170
|
-
( __param(1, IKeybindingService)),
|
|
171
|
-
( __param(2, IContextMenuService)),
|
|
172
|
-
( __param(3, IConfigurationService)),
|
|
173
|
-
( __param(4, IContextKeyService)),
|
|
174
|
-
( __param(5, IViewDescriptorService)),
|
|
175
|
-
( __param(6, IInstantiationService)),
|
|
176
|
-
( __param(7, IOpenerService)),
|
|
177
|
-
( __param(8, IThemeService)),
|
|
178
|
-
( __param(9, IHoverService)),
|
|
179
|
-
( __param(10, IOutputService)),
|
|
180
|
-
( __param(11, IStorageService))
|
|
181
|
-
], OutputViewPane));
|
|
197
|
+
OutputViewPane = ( __decorate([( __param(1, IKeybindingService)), ( __param(2, IContextMenuService)), ( __param(3, IConfigurationService)), ( __param(4, IContextKeyService)), ( __param(5, IViewDescriptorService)), ( __param(6, IInstantiationService)), ( __param(7, IOpenerService)), ( __param(8, IThemeService)), ( __param(9, IHoverService)), ( __param(10, IOutputService)), ( __param(11, IStorageService))], OutputViewPane));
|
|
182
198
|
let OutputEditor = class OutputEditor extends AbstractTextResourceEditor {
|
|
183
|
-
constructor(
|
|
184
|
-
|
|
199
|
+
constructor(
|
|
200
|
+
telemetryService,
|
|
201
|
+
instantiationService,
|
|
202
|
+
storageService,
|
|
203
|
+
configurationService,
|
|
204
|
+
textResourceConfigurationService,
|
|
205
|
+
themeService,
|
|
206
|
+
editorGroupService,
|
|
207
|
+
editorService,
|
|
208
|
+
fileService
|
|
209
|
+
) {
|
|
210
|
+
super(
|
|
211
|
+
OUTPUT_VIEW_ID,
|
|
212
|
+
editorGroupService.activeGroup,
|
|
213
|
+
telemetryService,
|
|
214
|
+
instantiationService,
|
|
215
|
+
storageService,
|
|
216
|
+
textResourceConfigurationService,
|
|
217
|
+
themeService,
|
|
218
|
+
editorGroupService,
|
|
219
|
+
editorService,
|
|
220
|
+
fileService
|
|
221
|
+
);
|
|
185
222
|
this.configurationService = configurationService;
|
|
186
223
|
this.resourceContext = this._register(instantiationService.createInstance(ResourceContextKey));
|
|
187
224
|
}
|
|
@@ -189,41 +226,46 @@ let OutputEditor = class OutputEditor extends AbstractTextResourceEditor {
|
|
|
189
226
|
return OUTPUT_VIEW_ID;
|
|
190
227
|
}
|
|
191
228
|
getTitle() {
|
|
192
|
-
return localize(
|
|
229
|
+
return localize(10147, "Output");
|
|
193
230
|
}
|
|
194
231
|
getConfigurationOverrides(configuration) {
|
|
195
232
|
const options = super.getConfigurationOverrides(configuration);
|
|
196
|
-
options.wordWrap =
|
|
197
|
-
options.lineNumbers =
|
|
233
|
+
options.wordWrap = "on";
|
|
234
|
+
options.lineNumbers = "off";
|
|
198
235
|
options.glyphMargin = false;
|
|
199
236
|
options.lineDecorationsWidth = 20;
|
|
200
237
|
options.rulers = [];
|
|
201
238
|
options.folding = false;
|
|
202
239
|
options.scrollBeyondLastLine = false;
|
|
203
|
-
options.renderLineHighlight =
|
|
204
|
-
options.minimap = {
|
|
205
|
-
|
|
240
|
+
options.renderLineHighlight = "none";
|
|
241
|
+
options.minimap = {
|
|
242
|
+
enabled: false
|
|
243
|
+
};
|
|
244
|
+
options.renderValidationDecorations = "editable";
|
|
206
245
|
options.padding = undefined;
|
|
207
246
|
options.readOnly = true;
|
|
208
247
|
options.domReadOnly = true;
|
|
248
|
+
options.roundedSelection = false;
|
|
209
249
|
options.unicodeHighlight = {
|
|
210
250
|
nonBasicASCII: false,
|
|
211
251
|
invisibleCharacters: false,
|
|
212
|
-
ambiguousCharacters: false
|
|
252
|
+
ambiguousCharacters: false
|
|
213
253
|
};
|
|
214
|
-
const outputConfig = this.configurationService.getValue(
|
|
254
|
+
const outputConfig = this.configurationService.getValue("[Log]");
|
|
215
255
|
if (outputConfig) {
|
|
216
|
-
if (outputConfig[
|
|
217
|
-
options.minimap = {
|
|
256
|
+
if (outputConfig["editor.minimap.enabled"]) {
|
|
257
|
+
options.minimap = {
|
|
258
|
+
enabled: true
|
|
259
|
+
};
|
|
218
260
|
}
|
|
219
|
-
if (outputConfig[
|
|
220
|
-
options.wordWrap = outputConfig[
|
|
261
|
+
if (outputConfig["editor.wordWrap"]) {
|
|
262
|
+
options.wordWrap = outputConfig["editor.wordWrap"];
|
|
221
263
|
}
|
|
222
264
|
}
|
|
223
265
|
return options;
|
|
224
266
|
}
|
|
225
267
|
getAriaLabel() {
|
|
226
|
-
return this.input ? this.input.getAriaLabel() : ( localize(
|
|
268
|
+
return this.input ? this.input.getAriaLabel() : ( localize(10148, "Output panel"));
|
|
227
269
|
}
|
|
228
270
|
computeAriaLabel() {
|
|
229
271
|
return this.input ? computeEditorAriaLabel(this.input, undefined, undefined, this.editorGroupService.count) : this.getAriaLabel();
|
|
@@ -251,7 +293,7 @@ let OutputEditor = class OutputEditor extends AbstractTextResourceEditor {
|
|
|
251
293
|
this.resourceContext.reset();
|
|
252
294
|
}
|
|
253
295
|
createEditor(parent) {
|
|
254
|
-
parent.setAttribute(
|
|
296
|
+
parent.setAttribute("role", "document");
|
|
255
297
|
super.createEditor(parent);
|
|
256
298
|
const scopedContextKeyService = this.scopedContextKeyService;
|
|
257
299
|
if (scopedContextKeyService) {
|
|
@@ -259,32 +301,23 @@ let OutputEditor = class OutputEditor extends AbstractTextResourceEditor {
|
|
|
259
301
|
}
|
|
260
302
|
}
|
|
261
303
|
_getContributions() {
|
|
262
|
-
return [
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
instantiation: EditorContributionInstantiation.Eager
|
|
268
|
-
}
|
|
269
|
-
];
|
|
304
|
+
return [...EditorExtensionsRegistry.getEditorContributions(), {
|
|
305
|
+
id: FilterController.ID,
|
|
306
|
+
ctor: FilterController,
|
|
307
|
+
instantiation: EditorContributionInstantiation.Eager
|
|
308
|
+
}];
|
|
270
309
|
}
|
|
271
310
|
getCodeEditorWidgetOptions() {
|
|
272
|
-
return {
|
|
311
|
+
return {
|
|
312
|
+
contributions: this._getContributions()
|
|
313
|
+
};
|
|
273
314
|
}
|
|
274
315
|
};
|
|
275
|
-
OutputEditor = ( __decorate([
|
|
276
|
-
( __param(0, ITelemetryService)),
|
|
277
|
-
( __param(1, IInstantiationService)),
|
|
278
|
-
( __param(2, IStorageService)),
|
|
279
|
-
( __param(3, IConfigurationService)),
|
|
280
|
-
( __param(4, ITextResourceConfigurationService)),
|
|
281
|
-
( __param(5, IThemeService)),
|
|
282
|
-
( __param(6, IEditorGroupsService)),
|
|
283
|
-
( __param(7, IEditorService)),
|
|
284
|
-
( __param(8, IFileService))
|
|
285
|
-
], OutputEditor));
|
|
316
|
+
OutputEditor = ( __decorate([( __param(0, ITelemetryService)), ( __param(1, IInstantiationService)), ( __param(2, IStorageService)), ( __param(3, IConfigurationService)), ( __param(4, ITextResourceConfigurationService)), ( __param(5, IThemeService)), ( __param(6, IEditorGroupsService)), ( __param(7, IEditorService)), ( __param(8, IFileService))], OutputEditor));
|
|
286
317
|
let FilterController = class FilterController extends Disposable {
|
|
287
|
-
static {
|
|
318
|
+
static {
|
|
319
|
+
this.ID = "output.editor.contrib.filterController";
|
|
320
|
+
}
|
|
288
321
|
constructor(editor, outputService) {
|
|
289
322
|
super();
|
|
290
323
|
this.editor = editor;
|
|
@@ -294,7 +327,9 @@ let FilterController = class FilterController extends Disposable {
|
|
|
294
327
|
this.categories = ( new Map());
|
|
295
328
|
this.decorationsCollection = editor.createDecorationsCollection();
|
|
296
329
|
this._register(editor.onDidChangeModel(() => this.onDidChangeModel()));
|
|
297
|
-
this._register(
|
|
330
|
+
this._register(
|
|
331
|
+
this.outputService.filters.onDidChange(() => editor.hasModel() && this.filter(editor.getModel()))
|
|
332
|
+
);
|
|
298
333
|
}
|
|
299
334
|
onDidChangeModel() {
|
|
300
335
|
this.modelDisposables.clear();
|
|
@@ -313,8 +348,7 @@ let FilterController = class FilterController extends Disposable {
|
|
|
313
348
|
this.modelDisposables.add(model.onDidChangeContent(e => {
|
|
314
349
|
if (e.changes.every(e => e.range.startLineNumber > endLineNumber)) {
|
|
315
350
|
this.filterIncremental(model, endLineNumber + 1);
|
|
316
|
-
}
|
|
317
|
-
else {
|
|
351
|
+
} else {
|
|
318
352
|
this.filter(model);
|
|
319
353
|
}
|
|
320
354
|
endLineNumber = computeEndLineNumber();
|
|
@@ -326,7 +360,11 @@ let FilterController = class FilterController extends Disposable {
|
|
|
326
360
|
this.filterIncremental(model, 1);
|
|
327
361
|
}
|
|
328
362
|
filterIncremental(model, fromLineNumber) {
|
|
329
|
-
const {
|
|
363
|
+
const {
|
|
364
|
+
findMatches,
|
|
365
|
+
hiddenAreas,
|
|
366
|
+
categories: sources
|
|
367
|
+
} = this.compute(model, fromLineNumber);
|
|
330
368
|
this.hiddenAreas.push(...hiddenAreas);
|
|
331
369
|
this.editor.setHiddenAreas(this.hiddenAreas, this);
|
|
332
370
|
if (findMatches.length) {
|
|
@@ -347,8 +385,8 @@ let FilterController = class FilterController extends Disposable {
|
|
|
347
385
|
toggled: ( ( ContextKeyExpr.regex(HIDE_CATEGORY_FILTER_CONTEXT.key, ( new RegExp(`.*,${escapeRegExpCharacters(categoryFilter)},.*`)))).negate()),
|
|
348
386
|
menu: {
|
|
349
387
|
id: viewFilterSubmenu,
|
|
350
|
-
group:
|
|
351
|
-
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals(
|
|
388
|
+
group: "1_category_filter",
|
|
389
|
+
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("view", OUTPUT_VIEW_ID))))
|
|
352
390
|
}
|
|
353
391
|
});
|
|
354
392
|
}
|
|
@@ -365,7 +403,10 @@ let FilterController = class FilterController extends Disposable {
|
|
|
365
403
|
for (const pattern of negative) {
|
|
366
404
|
const negativeMatches = model.findMatches(pattern, range, false, false, null, false);
|
|
367
405
|
if (negativeMatches.length > 0) {
|
|
368
|
-
return {
|
|
406
|
+
return {
|
|
407
|
+
show: false,
|
|
408
|
+
matches: []
|
|
409
|
+
};
|
|
369
410
|
}
|
|
370
411
|
}
|
|
371
412
|
}
|
|
@@ -376,13 +417,22 @@ let FilterController = class FilterController extends Disposable {
|
|
|
376
417
|
if (positiveMatches.length > 0) {
|
|
377
418
|
hasPositiveMatch = true;
|
|
378
419
|
for (const match of positiveMatches) {
|
|
379
|
-
matches.push({
|
|
420
|
+
matches.push({
|
|
421
|
+
range: match.range,
|
|
422
|
+
options: FindDecorations._FIND_MATCH_DECORATION
|
|
423
|
+
});
|
|
380
424
|
}
|
|
381
425
|
}
|
|
382
426
|
}
|
|
383
|
-
return {
|
|
427
|
+
return {
|
|
428
|
+
show: hasPositiveMatch,
|
|
429
|
+
matches
|
|
430
|
+
};
|
|
384
431
|
}
|
|
385
|
-
return {
|
|
432
|
+
return {
|
|
433
|
+
show: true,
|
|
434
|
+
matches
|
|
435
|
+
};
|
|
386
436
|
}
|
|
387
437
|
compute(model, fromLineNumber) {
|
|
388
438
|
const filters = this.outputService.filters;
|
|
@@ -393,9 +443,15 @@ let FilterController = class FilterController extends Disposable {
|
|
|
393
443
|
const logEntries = activeChannel?.getLogEntries();
|
|
394
444
|
if (activeChannel && logEntries?.length) {
|
|
395
445
|
const hasLogLevelFilter = !filters.trace || !filters.debug || !filters.info || !filters.warning || !filters.error;
|
|
396
|
-
const fromLogLevelEntryIndex = logEntries.findIndex(
|
|
446
|
+
const fromLogLevelEntryIndex = logEntries.findIndex(
|
|
447
|
+
entry => fromLineNumber >= entry.range.startLineNumber && fromLineNumber <= entry.range.endLineNumber
|
|
448
|
+
);
|
|
397
449
|
if (fromLogLevelEntryIndex === -1) {
|
|
398
|
-
return {
|
|
450
|
+
return {
|
|
451
|
+
findMatches,
|
|
452
|
+
hiddenAreas,
|
|
453
|
+
categories
|
|
454
|
+
};
|
|
399
455
|
}
|
|
400
456
|
for (let i = fromLogLevelEntryIndex; i < logEntries.length; i++) {
|
|
401
457
|
const entry = logEntries[i];
|
|
@@ -414,16 +470,23 @@ let FilterController = class FilterController extends Disposable {
|
|
|
414
470
|
const result = this.shouldShowLine(model, entry.range, filters.includePatterns, filters.excludePatterns);
|
|
415
471
|
if (result.show) {
|
|
416
472
|
findMatches.push(...result.matches);
|
|
417
|
-
}
|
|
418
|
-
else {
|
|
473
|
+
} else {
|
|
419
474
|
hiddenAreas.push(entry.range);
|
|
420
475
|
}
|
|
421
476
|
}
|
|
422
477
|
}
|
|
423
|
-
return {
|
|
478
|
+
return {
|
|
479
|
+
findMatches,
|
|
480
|
+
hiddenAreas,
|
|
481
|
+
categories
|
|
482
|
+
};
|
|
424
483
|
}
|
|
425
484
|
if (filters.includePatterns.length === 0 && filters.excludePatterns.length === 0) {
|
|
426
|
-
return {
|
|
485
|
+
return {
|
|
486
|
+
findMatches,
|
|
487
|
+
hiddenAreas,
|
|
488
|
+
categories
|
|
489
|
+
};
|
|
427
490
|
}
|
|
428
491
|
const lineCount = model.getLineCount();
|
|
429
492
|
for (let lineNumber = fromLineNumber; lineNumber <= lineCount; lineNumber++) {
|
|
@@ -431,25 +494,28 @@ let FilterController = class FilterController extends Disposable {
|
|
|
431
494
|
const result = this.shouldShowLine(model, lineRange, filters.includePatterns, filters.excludePatterns);
|
|
432
495
|
if (result.show) {
|
|
433
496
|
findMatches.push(...result.matches);
|
|
434
|
-
}
|
|
435
|
-
else {
|
|
497
|
+
} else {
|
|
436
498
|
hiddenAreas.push(lineRange);
|
|
437
499
|
}
|
|
438
500
|
}
|
|
439
|
-
return {
|
|
501
|
+
return {
|
|
502
|
+
findMatches,
|
|
503
|
+
hiddenAreas,
|
|
504
|
+
categories
|
|
505
|
+
};
|
|
440
506
|
}
|
|
441
507
|
shouldShowLogLevel(entry, filters) {
|
|
442
508
|
switch (entry.logLevel) {
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
509
|
+
case LogLevel.Trace:
|
|
510
|
+
return filters.trace;
|
|
511
|
+
case LogLevel.Debug:
|
|
512
|
+
return filters.debug;
|
|
513
|
+
case LogLevel.Info:
|
|
514
|
+
return filters.info;
|
|
515
|
+
case LogLevel.Warning:
|
|
516
|
+
return filters.warning;
|
|
517
|
+
case LogLevel.Error:
|
|
518
|
+
return filters.error;
|
|
453
519
|
}
|
|
454
520
|
return true;
|
|
455
521
|
}
|
|
@@ -460,8 +526,6 @@ let FilterController = class FilterController extends Disposable {
|
|
|
460
526
|
return !filters.hasCategory(`${activeChannelId}:${entry.category}`);
|
|
461
527
|
}
|
|
462
528
|
};
|
|
463
|
-
FilterController = ( __decorate([
|
|
464
|
-
( __param(1, IOutputService))
|
|
465
|
-
], FilterController));
|
|
529
|
+
FilterController = ( __decorate([( __param(1, IOutputService))], FilterController));
|
|
466
530
|
|
|
467
531
|
export { FilterController, OutputEditor, OutputViewPane };
|