@codingame/monaco-vscode-markers-service-override 4.5.1 → 5.0.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 +83 -213
- package/vscode/src/vs/workbench/contrib/markers/browser/markersFileDecorations.js +14 -26
- package/vscode/src/vs/workbench/contrib/markers/browser/markersTable.js +60 -65
- package/vscode/src/vs/workbench/contrib/markers/browser/markersTreeViewer.js +102 -115
- package/vscode/src/vs/workbench/contrib/markers/browser/markersView.js +82 -87
- package/vscode/src/vs/workbench/contrib/markers/browser/messages.js +60 -205
|
@@ -45,17 +45,21 @@ import { ResourceListDnDHandler } from 'vscode/vscode/vs/workbench/browser/dnd';
|
|
|
45
45
|
import { MarkersTable } from './markersTable.js';
|
|
46
46
|
import { Markers, MarkersContextKeys } from 'vscode/vscode/vs/workbench/contrib/markers/common/markers';
|
|
47
47
|
import { registerNavigableContainer } from 'vscode/vscode/vs/workbench/browser/actions/widgetNavigationCommands';
|
|
48
|
+
import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover.service';
|
|
48
49
|
|
|
50
|
+
const _moduleId = "vs/workbench/contrib/markers/browser/markersView";
|
|
49
51
|
function createResourceMarkersIterator(resourceMarkers) {
|
|
50
|
-
return (
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
return (
|
|
53
|
+
(Iterable.map(resourceMarkers.markers, m => {
|
|
54
|
+
const relatedInformationIt = Iterable.from(m.relatedInformation);
|
|
55
|
+
const children = ( (Iterable.map(relatedInformationIt, r => ({ element: r }))));
|
|
56
|
+
return { element: m, children };
|
|
57
|
+
}))
|
|
58
|
+
);
|
|
55
59
|
}
|
|
56
60
|
let MarkersView = class MarkersView extends FilterViewPane {
|
|
57
|
-
constructor(options, instantiationService, viewDescriptorService, editorService, configurationService, telemetryService, markerService, contextKeyService, workspaceContextService, contextMenuService, uriIdentityService, keybindingService, storageService, openerService, themeService) {
|
|
58
|
-
const memento = ( new Memento(Markers.MARKERS_VIEW_STORAGE_ID, storageService));
|
|
61
|
+
constructor(options, instantiationService, viewDescriptorService, editorService, configurationService, telemetryService, markerService, contextKeyService, workspaceContextService, contextMenuService, uriIdentityService, keybindingService, storageService, openerService, themeService, hoverService) {
|
|
62
|
+
const memento = ( (new Memento(Markers.MARKERS_VIEW_STORAGE_ID, storageService)));
|
|
59
63
|
const panelState = memento.getMemento(1 , 1 );
|
|
60
64
|
super({
|
|
61
65
|
...options,
|
|
@@ -66,15 +70,15 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
66
70
|
text: panelState['filter'] || '',
|
|
67
71
|
history: panelState['filterHistory'] || []
|
|
68
72
|
}
|
|
69
|
-
}, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService);
|
|
73
|
+
}, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService, hoverService);
|
|
70
74
|
this.editorService = editorService;
|
|
71
75
|
this.markerService = markerService;
|
|
72
76
|
this.workspaceContextService = workspaceContextService;
|
|
73
77
|
this.uriIdentityService = uriIdentityService;
|
|
74
78
|
this.lastSelectedRelativeTop = 0;
|
|
75
79
|
this.currentActiveResource = null;
|
|
76
|
-
this.onVisibleDisposables = this._register(( new DisposableStore()));
|
|
77
|
-
this.widgetDisposables = this._register(( new DisposableStore()));
|
|
80
|
+
this.onVisibleDisposables = this._register(( (new DisposableStore())));
|
|
81
|
+
this.widgetDisposables = this._register(( (new DisposableStore())));
|
|
78
82
|
this.currentHeight = 0;
|
|
79
83
|
this.currentWidth = 0;
|
|
80
84
|
this.cachedFilterStats = undefined;
|
|
@@ -89,16 +93,16 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
89
93
|
this.widgetAccessibilityProvider = instantiationService.createInstance(MarkersWidgetAccessibilityProvider);
|
|
90
94
|
this.widgetIdentityProvider = { getId(element) { return element.id; } };
|
|
91
95
|
this.setCurrentActiveEditor();
|
|
92
|
-
this.filter = ( new Filter(FilterOptions.EMPTY(uriIdentityService)));
|
|
96
|
+
this.filter = ( (new Filter(FilterOptions.EMPTY(uriIdentityService))));
|
|
93
97
|
this.rangeHighlightDecorations = this._register(this.instantiationService.createInstance(RangeHighlightDecorations));
|
|
94
|
-
this.filters = this._register(( new MarkersFilters({
|
|
98
|
+
this.filters = this._register(( (new MarkersFilters({
|
|
95
99
|
filterHistory: this.panelState['filterHistory'] || [],
|
|
96
100
|
showErrors: this.panelState['showErrors'] !== false,
|
|
97
101
|
showWarnings: this.panelState['showWarnings'] !== false,
|
|
98
102
|
showInfos: this.panelState['showInfos'] !== false,
|
|
99
103
|
excludedFiles: !!this.panelState['useFilesExclude'],
|
|
100
104
|
activeFile: !!this.panelState['activeFile'],
|
|
101
|
-
}, this.contextKeyService)));
|
|
105
|
+
}, this.contextKeyService))));
|
|
102
106
|
this._register(this.configurationService.onDidChangeConfiguration(e => {
|
|
103
107
|
if (this.filters.excludedFiles && e.affectsConfiguration('files.exclude')) {
|
|
104
108
|
this.updateFilter();
|
|
@@ -108,6 +112,7 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
108
112
|
render() {
|
|
109
113
|
super.render();
|
|
110
114
|
this._register(registerNavigableContainer({
|
|
115
|
+
name: 'markersView',
|
|
111
116
|
focusNotifiers: [this, this.filterWidget],
|
|
112
117
|
focusNextWidget: () => {
|
|
113
118
|
if (this.filterWidget.hasFocus()) {
|
|
@@ -125,9 +130,15 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
125
130
|
super.renderBody(parent);
|
|
126
131
|
parent.classList.add('markers-panel');
|
|
127
132
|
this._register(addDisposableListener(parent, 'keydown', e => {
|
|
128
|
-
|
|
129
|
-
|
|
133
|
+
const event = ( (new StandardKeyboardEvent(e)));
|
|
134
|
+
if (!this.keybindingService.mightProducePrintableCharacter(event)) {
|
|
135
|
+
return;
|
|
130
136
|
}
|
|
137
|
+
const result = this.keybindingService.softDispatch(event, event.target);
|
|
138
|
+
if (result.kind === 1 || result.kind === 2 ) {
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
this.focusFilter();
|
|
131
142
|
}));
|
|
132
143
|
const panelContainer = append(parent, $('.markers-panel-container'));
|
|
133
144
|
this.createArialLabelElement(panelContainer);
|
|
@@ -165,13 +176,7 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
165
176
|
this.filterWidget.focus();
|
|
166
177
|
}
|
|
167
178
|
updateBadge(total, filtered) {
|
|
168
|
-
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( localizeWithPath(
|
|
169
|
-
'vs/workbench/contrib/markers/browser/markersView',
|
|
170
|
-
'showing filtered problems',
|
|
171
|
-
"Showing {0} of {1}",
|
|
172
|
-
filtered,
|
|
173
|
-
total
|
|
174
|
-
)));
|
|
179
|
+
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( localizeWithPath(_moduleId, 0, "Showing {0} of {1}", filtered, total)));
|
|
175
180
|
}
|
|
176
181
|
checkMoreFilters() {
|
|
177
182
|
this.filterWidget.checkMoreFilters(!this.filters.showErrors || !this.filters.showWarnings || !this.filters.showInfos || this.filters.excludedFiles || this.filters.activeFile);
|
|
@@ -251,14 +256,14 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
251
256
|
this.widget.reset(this.getResourceMarkers());
|
|
252
257
|
}
|
|
253
258
|
updateFilter() {
|
|
254
|
-
this.filter.options = ( new FilterOptions(
|
|
259
|
+
this.filter.options = ( (new FilterOptions(
|
|
255
260
|
this.filterWidget.getFilterText(),
|
|
256
261
|
this.getFilesExcludeExpressions(),
|
|
257
262
|
this.filters.showWarnings,
|
|
258
263
|
this.filters.showErrors,
|
|
259
264
|
this.filters.showInfos,
|
|
260
265
|
this.uriIdentityService
|
|
261
|
-
));
|
|
266
|
+
)));
|
|
262
267
|
this.widget.filterMarkers(this.getResourceMarkers(), this.filter.options);
|
|
263
268
|
this.cachedFilterStats = undefined;
|
|
264
269
|
const { total, filtered } = this.getFilterStats();
|
|
@@ -283,9 +288,9 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
283
288
|
}
|
|
284
289
|
const workspaceFolders = this.workspaceContextService.getWorkspace().folders;
|
|
285
290
|
return workspaceFolders.length
|
|
286
|
-
? ( workspaceFolders.map(
|
|
291
|
+
? ( (workspaceFolders.map(
|
|
287
292
|
workspaceFolder => ({ root: workspaceFolder.uri, expression: this.getFilesExclude(workspaceFolder.uri) })
|
|
288
|
-
))
|
|
293
|
+
)))
|
|
289
294
|
: this.getFilesExclude();
|
|
290
295
|
}
|
|
291
296
|
getFilesExclude(resource) {
|
|
@@ -318,8 +323,8 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
318
323
|
const markerFocusContextKey = MarkersContextKeys.MarkerFocusContextKey.bindTo(this.widget.contextKeyService);
|
|
319
324
|
const relatedInformationFocusContextKey = MarkersContextKeys.RelatedInformationFocusContextKey.bindTo(this.widget.contextKeyService);
|
|
320
325
|
this.widgetDisposables.add(this.widget.onDidChangeFocus(focus => {
|
|
321
|
-
markerFocusContextKey.set(( focus.elements.some(e => e instanceof Marker)));
|
|
322
|
-
relatedInformationFocusContextKey.set(( focus.elements.some(e => e instanceof RelatedInformation)));
|
|
326
|
+
markerFocusContextKey.set(( (focus.elements.some(e => e instanceof Marker))));
|
|
327
|
+
relatedInformationFocusContextKey.set(( (focus.elements.some(e => e instanceof RelatedInformation))));
|
|
323
328
|
}));
|
|
324
329
|
this.widgetDisposables.add(Event.debounce(this.widget.onDidOpen, (last, event) => event, 75, true)(options => {
|
|
325
330
|
this.openFileAtElement(options.element, !!options.editorOptions.preserveFocus, options.sideBySide, !!options.editorOptions.pinned);
|
|
@@ -353,9 +358,9 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
353
358
|
return table;
|
|
354
359
|
}
|
|
355
360
|
createTree(parent) {
|
|
356
|
-
const onDidChangeRenderNodeCount = ( new Relay());
|
|
361
|
+
const onDidChangeRenderNodeCount = ( (new Relay()));
|
|
357
362
|
const treeLabels = this.instantiationService.createInstance(ResourceLabels, this);
|
|
358
|
-
const virtualDelegate = ( new VirtualDelegate(this.markersViewModel));
|
|
363
|
+
const virtualDelegate = ( (new VirtualDelegate(this.markersViewModel)));
|
|
359
364
|
const renderers = [
|
|
360
365
|
this.instantiationService.createInstance(ResourceMarkersRenderer, treeLabels, onDidChangeRenderNodeCount.event),
|
|
361
366
|
this.instantiationService.createInstance(MarkerRenderer, this.markersViewModel),
|
|
@@ -378,9 +383,7 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
378
383
|
return null;
|
|
379
384
|
}),
|
|
380
385
|
expandOnlyOnTwistieClick: (e) => e instanceof Marker && e.relatedInformation.length > 0,
|
|
381
|
-
overrideStyles:
|
|
382
|
-
listBackground: this.getBackgroundColor()
|
|
383
|
-
},
|
|
386
|
+
overrideStyles: this.getLocationBasedColors().listOverrideStyles,
|
|
384
387
|
selectionNavigation: true,
|
|
385
388
|
multipleSelectionSupport: true,
|
|
386
389
|
});
|
|
@@ -408,13 +411,13 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
408
411
|
reInitialize() {
|
|
409
412
|
const disposables = [];
|
|
410
413
|
const readMarkers = (resource) => this.markerService.read({ resource, severities: MarkerSeverity.Error | MarkerSeverity.Warning | MarkerSeverity.Info });
|
|
411
|
-
this.markersModel.setResourceMarkers(( groupBy(readMarkers(), compareMarkersByUri).map(group => [group[0].resource, group])));
|
|
414
|
+
this.markersModel.setResourceMarkers(( (groupBy(readMarkers(), compareMarkersByUri).map(group => [group[0].resource, group]))));
|
|
412
415
|
disposables.push(Event.debounce(this.markerService.onMarkerChanged, (resourcesMap, resources) => {
|
|
413
|
-
resourcesMap = resourcesMap || ( new ResourceMap());
|
|
416
|
+
resourcesMap = resourcesMap || ( (new ResourceMap()));
|
|
414
417
|
resources.forEach(resource => resourcesMap.set(resource, resource));
|
|
415
418
|
return resourcesMap;
|
|
416
419
|
}, 64)(resourcesMap => {
|
|
417
|
-
this.markersModel.setResourceMarkers(( [...( resourcesMap.values())].map(resource => [resource, readMarkers(resource)])));
|
|
420
|
+
this.markersModel.setResourceMarkers(( ([...( (resourcesMap.values()))].map(resource => [resource, readMarkers(resource)]))));
|
|
418
421
|
}));
|
|
419
422
|
disposables.push(Event.any(this.markersModel.onDidChange, this.editorService.onDidActiveEditorChange)(changes => {
|
|
420
423
|
if (changes) {
|
|
@@ -467,7 +470,7 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
467
470
|
this.widgetContainer.textContent = '';
|
|
468
471
|
this.widgetDisposables.clear();
|
|
469
472
|
}
|
|
470
|
-
const selection = ( new Set());
|
|
473
|
+
const selection = ( (new Set()));
|
|
471
474
|
for (const marker of this.widget.getSelection()) {
|
|
472
475
|
if (marker instanceof ResourceMarkers) {
|
|
473
476
|
marker.markers.forEach(m => selection.add(m));
|
|
@@ -476,7 +479,7 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
476
479
|
selection.add(marker);
|
|
477
480
|
}
|
|
478
481
|
}
|
|
479
|
-
const focus = ( new Set());
|
|
482
|
+
const focus = ( (new Set()));
|
|
480
483
|
for (const marker of this.widget.getFocus()) {
|
|
481
484
|
if (marker instanceof Marker || marker instanceof MarkerTableItem) {
|
|
482
485
|
focus.add(marker);
|
|
@@ -498,7 +501,11 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
498
501
|
if (resourceForCurrentActiveResource) {
|
|
499
502
|
return false;
|
|
500
503
|
}
|
|
501
|
-
return (
|
|
504
|
+
return (
|
|
505
|
+
(changedResources.some(
|
|
506
|
+
r => ( (r.toString())) === ( (currentlyActiveResource.toString()))
|
|
507
|
+
))
|
|
508
|
+
);
|
|
502
509
|
}
|
|
503
510
|
onActiveEditorChanged() {
|
|
504
511
|
this.setCurrentActiveEditor();
|
|
@@ -551,21 +558,10 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
551
558
|
else {
|
|
552
559
|
this.messageBoxContainer.style.display = 'none';
|
|
553
560
|
if (filtered === total) {
|
|
554
|
-
this.setAriaLabel(( localizeWithPath(
|
|
555
|
-
'vs/workbench/contrib/markers/browser/markersView',
|
|
556
|
-
'No problems filtered',
|
|
557
|
-
"Showing {0} problems",
|
|
558
|
-
total
|
|
559
|
-
)));
|
|
561
|
+
this.setAriaLabel(( localizeWithPath(_moduleId, 1, "Showing {0} problems", total)));
|
|
560
562
|
}
|
|
561
563
|
else {
|
|
562
|
-
this.setAriaLabel(( localizeWithPath(
|
|
563
|
-
'vs/workbench/contrib/markers/browser/markersView',
|
|
564
|
-
'problems filtered',
|
|
565
|
-
"Showing {0} of {1} problems",
|
|
566
|
-
filtered,
|
|
567
|
-
total
|
|
568
|
-
)));
|
|
564
|
+
this.setAriaLabel(( localizeWithPath(_moduleId, 2, "Showing {0} of {1} problems", filtered, total)));
|
|
569
565
|
}
|
|
570
566
|
this.messageBoxContainer.removeAttribute('tabIndex');
|
|
571
567
|
}
|
|
@@ -582,11 +578,7 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
582
578
|
const span1 = append(container, $('span'));
|
|
583
579
|
span1.textContent = Messages.MARKERS_PANEL_NO_PROBLEMS_FILTERS;
|
|
584
580
|
const link = append(container, $('a.messageAction'));
|
|
585
|
-
link.textContent = ( localizeWithPath(
|
|
586
|
-
'vs/workbench/contrib/markers/browser/markersView',
|
|
587
|
-
'clearFilter',
|
|
588
|
-
"Clear Filters"
|
|
589
|
-
));
|
|
581
|
+
link.textContent = ( localizeWithPath(_moduleId, 3, "Clear Filters"));
|
|
590
582
|
link.setAttribute('tabIndex', '0');
|
|
591
583
|
const span2 = append(container, $('span'));
|
|
592
584
|
span2.textContent = '.';
|
|
@@ -665,7 +657,9 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
665
657
|
getActionViewItem: (action) => {
|
|
666
658
|
const keybinding = this.keybindingService.lookupKeybinding(action.id);
|
|
667
659
|
if (keybinding) {
|
|
668
|
-
return (
|
|
660
|
+
return (
|
|
661
|
+
(new ActionViewItem(action, action, { label: true, keybinding: keybinding.getLabel() }))
|
|
662
|
+
);
|
|
669
663
|
}
|
|
670
664
|
return undefined;
|
|
671
665
|
},
|
|
@@ -684,7 +678,7 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
684
678
|
const quickFixActions = viewModel.quickFixAction.quickFixes;
|
|
685
679
|
if (quickFixActions.length) {
|
|
686
680
|
result.push(...quickFixActions);
|
|
687
|
-
result.push(( new Separator()));
|
|
681
|
+
result.push(( (new Separator())));
|
|
688
682
|
}
|
|
689
683
|
}
|
|
690
684
|
}
|
|
@@ -745,22 +739,23 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
745
739
|
super.dispose();
|
|
746
740
|
}
|
|
747
741
|
};
|
|
748
|
-
MarkersView = ( __decorate([
|
|
749
|
-
( __param(1, IInstantiationService)),
|
|
750
|
-
( __param(2, IViewDescriptorService)),
|
|
751
|
-
( __param(3, IEditorService)),
|
|
752
|
-
( __param(4, IConfigurationService)),
|
|
753
|
-
( __param(5, ITelemetryService)),
|
|
754
|
-
( __param(6, IMarkerService)),
|
|
755
|
-
( __param(7, IContextKeyService)),
|
|
756
|
-
( __param(8, IWorkspaceContextService)),
|
|
757
|
-
( __param(9, IContextMenuService)),
|
|
758
|
-
( __param(10, IUriIdentityService)),
|
|
759
|
-
( __param(11, IKeybindingService)),
|
|
760
|
-
( __param(12, IStorageService)),
|
|
761
|
-
( __param(13, IOpenerService)),
|
|
762
|
-
( __param(14, IThemeService))
|
|
763
|
-
|
|
742
|
+
MarkersView = ( (__decorate([
|
|
743
|
+
( (__param(1, IInstantiationService))),
|
|
744
|
+
( (__param(2, IViewDescriptorService))),
|
|
745
|
+
( (__param(3, IEditorService))),
|
|
746
|
+
( (__param(4, IConfigurationService))),
|
|
747
|
+
( (__param(5, ITelemetryService))),
|
|
748
|
+
( (__param(6, IMarkerService))),
|
|
749
|
+
( (__param(7, IContextKeyService))),
|
|
750
|
+
( (__param(8, IWorkspaceContextService))),
|
|
751
|
+
( (__param(9, IContextMenuService))),
|
|
752
|
+
( (__param(10, IUriIdentityService))),
|
|
753
|
+
( (__param(11, IKeybindingService))),
|
|
754
|
+
( (__param(12, IStorageService))),
|
|
755
|
+
( (__param(13, IOpenerService))),
|
|
756
|
+
( (__param(14, IThemeService))),
|
|
757
|
+
( (__param(15, IHoverService)))
|
|
758
|
+
], MarkersView)));
|
|
764
759
|
let MarkersTree = class MarkersTree extends WorkbenchObjectTree {
|
|
765
760
|
constructor(user, container, delegate, renderers, options, instantiationService, contextKeyService, listService, themeService, configurationService) {
|
|
766
761
|
super(user, container, delegate, renderers, options, instantiationService, contextKeyService, listService, configurationService);
|
|
@@ -797,10 +792,10 @@ let MarkersTree = class MarkersTree extends WorkbenchObjectTree {
|
|
|
797
792
|
this.container.classList.toggle('hidden', hide);
|
|
798
793
|
}
|
|
799
794
|
reset(resourceMarkers) {
|
|
800
|
-
this.setChildren(null, ( Iterable.map(
|
|
795
|
+
this.setChildren(null, ( (Iterable.map(
|
|
801
796
|
resourceMarkers,
|
|
802
797
|
m => ({ element: m, children: createResourceMarkersIterator(m) })
|
|
803
|
-
)));
|
|
798
|
+
))));
|
|
804
799
|
}
|
|
805
800
|
revealMarkers(activeResource, focus, lastSelectedRelativeTop) {
|
|
806
801
|
if (activeResource) {
|
|
@@ -832,9 +827,9 @@ let MarkersTree = class MarkersTree extends WorkbenchObjectTree {
|
|
|
832
827
|
setMarkerSelection(selection, focus) {
|
|
833
828
|
if (this.isVisible()) {
|
|
834
829
|
if (selection && selection.length > 0) {
|
|
835
|
-
this.setSelection(( selection.map(m => this.findMarkerNode(m))));
|
|
830
|
+
this.setSelection(( (selection.map(m => this.findMarkerNode(m)))));
|
|
836
831
|
if (focus && focus.length > 0) {
|
|
837
|
-
this.setFocus(( focus.map(f => this.findMarkerNode(f))));
|
|
832
|
+
this.setFocus(( (focus.map(f => this.findMarkerNode(f)))));
|
|
838
833
|
}
|
|
839
834
|
else {
|
|
840
835
|
this.setFocus([this.findMarkerNode(selection[0])]);
|
|
@@ -880,7 +875,7 @@ let MarkersTree = class MarkersTree extends WorkbenchObjectTree {
|
|
|
880
875
|
const selectedElement = this.getSelection();
|
|
881
876
|
if (selectedElement && selectedElement.length > 0) {
|
|
882
877
|
if (selectedElement[0] instanceof Marker) {
|
|
883
|
-
if (( resource.has(selectedElement[0].marker.resource))) {
|
|
878
|
+
if (( (resource.has(selectedElement[0].marker.resource)))) {
|
|
884
879
|
return true;
|
|
885
880
|
}
|
|
886
881
|
}
|
|
@@ -895,12 +890,12 @@ let MarkersTree = class MarkersTree extends WorkbenchObjectTree {
|
|
|
895
890
|
super.layout(height, width);
|
|
896
891
|
}
|
|
897
892
|
};
|
|
898
|
-
MarkersTree = ( __decorate([
|
|
899
|
-
( __param(5, IInstantiationService)),
|
|
900
|
-
( __param(6, IContextKeyService)),
|
|
901
|
-
( __param(7, IListService)),
|
|
902
|
-
( __param(8, IThemeService)),
|
|
903
|
-
( __param(9, IConfigurationService))
|
|
904
|
-
], MarkersTree));
|
|
893
|
+
MarkersTree = ( (__decorate([
|
|
894
|
+
( (__param(5, IInstantiationService))),
|
|
895
|
+
( (__param(6, IContextKeyService))),
|
|
896
|
+
( (__param(7, IListService))),
|
|
897
|
+
( (__param(8, IThemeService))),
|
|
898
|
+
( (__param(9, IConfigurationService)))
|
|
899
|
+
], MarkersTree)));
|
|
905
900
|
|
|
906
901
|
export { MarkersView };
|