@codingame/monaco-vscode-markers-service-override 4.5.2 → 5.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-markers-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@5.0.1"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -21,6 +21,7 @@ import { isUndefinedOrNull } from 'vscode/vscode/vs/base/common/types';
|
|
|
21
21
|
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
22
22
|
import { unsupportedSchemas } from 'vscode/vscode/vs/platform/markers/common/markerService';
|
|
23
23
|
import Severity$1 from 'vscode/vscode/vs/base/common/severity';
|
|
24
|
+
import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover.service';
|
|
24
25
|
|
|
25
26
|
var MarkerSeverityColumnRenderer_1, MarkerCodeColumnRenderer_1, MarkerFileColumnRenderer_1;
|
|
26
27
|
const _moduleId = "vs/workbench/contrib/markers/browser/markersTable";
|
|
@@ -74,7 +75,8 @@ MarkerSeverityColumnRenderer = MarkerSeverityColumnRenderer_1 = ( (__decorate([
|
|
|
74
75
|
let MarkerCodeColumnRenderer = class MarkerCodeColumnRenderer {
|
|
75
76
|
static { MarkerCodeColumnRenderer_1 = this; }
|
|
76
77
|
static { this.TEMPLATE_ID = 'code'; }
|
|
77
|
-
constructor(openerService) {
|
|
78
|
+
constructor(hoverService, openerService) {
|
|
79
|
+
this.hoverService = hoverService;
|
|
78
80
|
this.openerService = openerService;
|
|
79
81
|
this.templateId = MarkerCodeColumnRenderer_1.TEMPLATE_ID;
|
|
80
82
|
}
|
|
@@ -85,7 +87,13 @@ let MarkerCodeColumnRenderer = class MarkerCodeColumnRenderer {
|
|
|
85
87
|
sourceLabel.element.classList.add('source-label');
|
|
86
88
|
const codeLabel = templateDisposable.add(( (new HighlightedLabel(codeColumn))));
|
|
87
89
|
codeLabel.element.classList.add('code-label');
|
|
88
|
-
const codeLink = templateDisposable.add(( (new Link(
|
|
90
|
+
const codeLink = templateDisposable.add(( (new Link(
|
|
91
|
+
codeColumn,
|
|
92
|
+
{ href: '', label: '' },
|
|
93
|
+
{},
|
|
94
|
+
this.hoverService,
|
|
95
|
+
this.openerService
|
|
96
|
+
))));
|
|
89
97
|
return { codeColumn, sourceLabel, codeLabel, codeLink, templateDisposable };
|
|
90
98
|
}
|
|
91
99
|
renderElement(element, index, templateData, height) {
|
|
@@ -121,7 +129,8 @@ let MarkerCodeColumnRenderer = class MarkerCodeColumnRenderer {
|
|
|
121
129
|
}
|
|
122
130
|
};
|
|
123
131
|
MarkerCodeColumnRenderer = MarkerCodeColumnRenderer_1 = ( (__decorate([
|
|
124
|
-
( (__param(0,
|
|
132
|
+
( (__param(0, IHoverService))),
|
|
133
|
+
( (__param(1, IOpenerService)))
|
|
125
134
|
], MarkerCodeColumnRenderer)));
|
|
126
135
|
class MarkerMessageColumnRenderer {
|
|
127
136
|
constructor() {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
2
|
import { append, $, clearNode, addDisposableListener, EventType } from 'vscode/vscode/vs/base/browser/dom';
|
|
3
|
-
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
4
3
|
import { dirname, basename as basename$1 } from 'vscode/vscode/vs/base/common/path';
|
|
5
4
|
import { CountBadge } from 'vscode/vscode/vs/base/browser/ui/countBadge/countBadge';
|
|
6
5
|
import { HighlightedLabel } from 'vscode/vscode/vs/base/browser/ui/highlightedlabel/highlightedLabel';
|
|
@@ -13,7 +12,7 @@ import { DisposableStore, Disposable, toDisposable, dispose } from 'vscode/vscod
|
|
|
13
12
|
import { ActionBar } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionbar';
|
|
14
13
|
import { QuickFixAction, QuickFixActionViewItem } from './markersViewActions.js';
|
|
15
14
|
import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label.service';
|
|
16
|
-
import {
|
|
15
|
+
import { basename, isEqual } from 'vscode/vscode/vs/base/common/resources';
|
|
17
16
|
import { FilterOptions } from './markersFilterOptions.js';
|
|
18
17
|
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
19
18
|
import { isUndefinedOrNull } from 'vscode/vscode/vs/base/common/types';
|
|
@@ -28,7 +27,6 @@ import { ACTIVE_GROUP } from 'vscode/vscode/vs/workbench/services/editor/common/
|
|
|
28
27
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
29
28
|
import { SeverityIcon } from 'vscode/vscode/vs/platform/severityIcon/browser/severityIcon';
|
|
30
29
|
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener.service';
|
|
31
|
-
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
32
30
|
import { Progress } from 'vscode/vscode/vs/platform/progress/common/progress';
|
|
33
31
|
import { ActionViewItem } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionViewItems';
|
|
34
32
|
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
@@ -40,8 +38,8 @@ import { MarkersContextKeys } from 'vscode/vscode/vs/workbench/contrib/markers/c
|
|
|
40
38
|
import { unsupportedSchemas } from 'vscode/vscode/vs/platform/markers/common/markerService';
|
|
41
39
|
import { defaultCountBadgeStyles } from 'vscode/vscode/vs/platform/theme/browser/defaultStyles';
|
|
42
40
|
import Severity$1 from 'vscode/vscode/vs/base/common/severity';
|
|
43
|
-
import { setupCustomHover } from 'vscode/vscode/vs/base/browser/ui/hover/updatableHoverWidget';
|
|
44
41
|
import { getDefaultHoverDelegate } from 'vscode/vscode/vs/base/browser/ui/hover/hoverDelegateFactory';
|
|
42
|
+
import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover.service';
|
|
45
43
|
|
|
46
44
|
const _moduleId = "vs/workbench/contrib/markers/browser/markersTreeViewer";
|
|
47
45
|
let MarkersWidgetAccessibilityProvider = class MarkersWidgetAccessibilityProvider {
|
|
@@ -93,11 +91,9 @@ class VirtualDelegate {
|
|
|
93
91
|
}
|
|
94
92
|
}
|
|
95
93
|
}
|
|
96
|
-
|
|
97
|
-
constructor(labels, onDidChangeRenderNodeCount
|
|
94
|
+
class ResourceMarkersRenderer {
|
|
95
|
+
constructor(labels, onDidChangeRenderNodeCount) {
|
|
98
96
|
this.labels = labels;
|
|
99
|
-
this.labelService = labelService;
|
|
100
|
-
this.fileService = fileService;
|
|
101
97
|
this.renderedNodes = ( (new Map()));
|
|
102
98
|
this.disposables = ( (new DisposableStore()));
|
|
103
99
|
this.templateId = "rm" ;
|
|
@@ -113,12 +109,7 @@ let ResourceMarkersRenderer = class ResourceMarkersRenderer {
|
|
|
113
109
|
renderElement(node, _, templateData) {
|
|
114
110
|
const resourceMarkers = node.element;
|
|
115
111
|
const uriMatches = node.filterData && node.filterData.uriMatches || [];
|
|
116
|
-
|
|
117
|
-
templateData.resourceLabel.setFile(resourceMarkers.resource, { matches: uriMatches });
|
|
118
|
-
}
|
|
119
|
-
else {
|
|
120
|
-
templateData.resourceLabel.setResource({ name: resourceMarkers.name, description: this.labelService.getUriLabel(dirname$1(resourceMarkers.resource), { relative: true }), resource: resourceMarkers.resource }, { matches: uriMatches });
|
|
121
|
-
}
|
|
112
|
+
templateData.resourceLabel.setFile(resourceMarkers.resource, { matches: uriMatches });
|
|
122
113
|
this.updateCount(node, templateData);
|
|
123
114
|
const nodeRenders = this.renderedNodes.get(resourceMarkers) ?? [];
|
|
124
115
|
this.renderedNodes.set(resourceMarkers, [...nodeRenders, templateData]);
|
|
@@ -152,14 +143,11 @@ let ResourceMarkersRenderer = class ResourceMarkersRenderer {
|
|
|
152
143
|
dispose() {
|
|
153
144
|
this.disposables.dispose();
|
|
154
145
|
}
|
|
155
|
-
}
|
|
156
|
-
ResourceMarkersRenderer = ( (__decorate([
|
|
157
|
-
( (__param(2, ILabelService))),
|
|
158
|
-
( (__param(3, IFileService)))
|
|
159
|
-
], ResourceMarkersRenderer)));
|
|
146
|
+
}
|
|
160
147
|
let MarkerRenderer = class MarkerRenderer {
|
|
161
|
-
constructor(markersViewState, instantiationService, openerService) {
|
|
148
|
+
constructor(markersViewState, hoverService, instantiationService, openerService) {
|
|
162
149
|
this.markersViewState = markersViewState;
|
|
150
|
+
this.hoverService = hoverService;
|
|
163
151
|
this.instantiationService = instantiationService;
|
|
164
152
|
this.openerService = openerService;
|
|
165
153
|
this.templateId = "m" ;
|
|
@@ -169,6 +157,7 @@ let MarkerRenderer = class MarkerRenderer {
|
|
|
169
157
|
data.markerWidget = ( (new MarkerWidget(
|
|
170
158
|
container,
|
|
171
159
|
this.markersViewState,
|
|
160
|
+
this.hoverService,
|
|
172
161
|
this.openerService,
|
|
173
162
|
this.instantiationService
|
|
174
163
|
)));
|
|
@@ -182,8 +171,9 @@ let MarkerRenderer = class MarkerRenderer {
|
|
|
182
171
|
}
|
|
183
172
|
};
|
|
184
173
|
MarkerRenderer = ( (__decorate([
|
|
185
|
-
( (__param(1,
|
|
186
|
-
( (__param(2,
|
|
174
|
+
( (__param(1, IHoverService))),
|
|
175
|
+
( (__param(2, IInstantiationService))),
|
|
176
|
+
( (__param(3, IOpenerService)))
|
|
187
177
|
], MarkerRenderer)));
|
|
188
178
|
const expandedIcon = registerIcon('markers-view-multi-line-expanded', Codicon.chevronUp, ( localizeWithPath(
|
|
189
179
|
_moduleId,
|
|
@@ -210,10 +200,11 @@ class ToggleMultilineActionViewItem extends ActionViewItem {
|
|
|
210
200
|
}
|
|
211
201
|
}
|
|
212
202
|
class MarkerWidget extends Disposable {
|
|
213
|
-
constructor(parent, markersViewModel, _openerService, _instantiationService) {
|
|
203
|
+
constructor(parent, markersViewModel, _hoverService, _openerService, _instantiationService) {
|
|
214
204
|
super();
|
|
215
205
|
this.parent = parent;
|
|
216
206
|
this.markersViewModel = markersViewModel;
|
|
207
|
+
this._hoverService = _hoverService;
|
|
217
208
|
this._openerService = _openerService;
|
|
218
209
|
this.disposables = this._register(( (new DisposableStore())));
|
|
219
210
|
this.actionBar = this._register(( (new ActionBar(append(parent, $('.actions')), {
|
|
@@ -222,7 +213,7 @@ class MarkerWidget extends Disposable {
|
|
|
222
213
|
this.iconContainer = append(parent, $(''));
|
|
223
214
|
this.icon = append(this.iconContainer, $(''));
|
|
224
215
|
this.messageAndDetailsContainer = append(parent, $('.marker-message-details-container'));
|
|
225
|
-
this.messageAndDetailsContainerHover = this._register(
|
|
216
|
+
this.messageAndDetailsContainerHover = this._register(this._hoverService.setupUpdatableHover(getDefaultHoverDelegate('mouse'), this.messageAndDetailsContainer, ''));
|
|
226
217
|
}
|
|
227
218
|
render(element, filterData) {
|
|
228
219
|
this.actionBar.clear();
|
|
@@ -317,6 +308,7 @@ class MarkerWidget extends Disposable {
|
|
|
317
308
|
parent,
|
|
318
309
|
{ href: link, label: container, title: link },
|
|
319
310
|
undefined,
|
|
311
|
+
this._hoverService,
|
|
320
312
|
this._openerService
|
|
321
313
|
))));
|
|
322
314
|
const codeMatches = filterData && filterData.codeMatches || [];
|
|
@@ -45,6 +45,7 @@ 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
|
|
|
49
50
|
const _moduleId = "vs/workbench/contrib/markers/browser/markersView";
|
|
50
51
|
function createResourceMarkersIterator(resourceMarkers) {
|
|
@@ -57,7 +58,7 @@ function createResourceMarkersIterator(resourceMarkers) {
|
|
|
57
58
|
);
|
|
58
59
|
}
|
|
59
60
|
let MarkersView = class MarkersView extends FilterViewPane {
|
|
60
|
-
constructor(options, instantiationService, viewDescriptorService, editorService, configurationService, telemetryService, markerService, contextKeyService, workspaceContextService, contextMenuService, uriIdentityService, keybindingService, storageService, openerService, themeService) {
|
|
61
|
+
constructor(options, instantiationService, viewDescriptorService, editorService, configurationService, telemetryService, markerService, contextKeyService, workspaceContextService, contextMenuService, uriIdentityService, keybindingService, storageService, openerService, themeService, hoverService) {
|
|
61
62
|
const memento = ( (new Memento(Markers.MARKERS_VIEW_STORAGE_ID, storageService)));
|
|
62
63
|
const panelState = memento.getMemento(1 , 1 );
|
|
63
64
|
super({
|
|
@@ -69,7 +70,7 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
69
70
|
text: panelState['filter'] || '',
|
|
70
71
|
history: panelState['filterHistory'] || []
|
|
71
72
|
}
|
|
72
|
-
}, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService);
|
|
73
|
+
}, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService, hoverService);
|
|
73
74
|
this.editorService = editorService;
|
|
74
75
|
this.markerService = markerService;
|
|
75
76
|
this.workspaceContextService = workspaceContextService;
|
|
@@ -111,6 +112,7 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
111
112
|
render() {
|
|
112
113
|
super.render();
|
|
113
114
|
this._register(registerNavigableContainer({
|
|
115
|
+
name: 'markersView',
|
|
114
116
|
focusNotifiers: [this, this.filterWidget],
|
|
115
117
|
focusNextWidget: () => {
|
|
116
118
|
if (this.filterWidget.hasFocus()) {
|
|
@@ -128,9 +130,15 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
128
130
|
super.renderBody(parent);
|
|
129
131
|
parent.classList.add('markers-panel');
|
|
130
132
|
this._register(addDisposableListener(parent, 'keydown', e => {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
+
const event = ( (new StandardKeyboardEvent(e)));
|
|
134
|
+
if (!this.keybindingService.mightProducePrintableCharacter(event)) {
|
|
135
|
+
return;
|
|
133
136
|
}
|
|
137
|
+
const result = this.keybindingService.softDispatch(event, event.target);
|
|
138
|
+
if (result.kind === 1 || result.kind === 2 ) {
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
this.focusFilter();
|
|
134
142
|
}));
|
|
135
143
|
const panelContainer = append(parent, $('.markers-panel-container'));
|
|
136
144
|
this.createArialLabelElement(panelContainer);
|
|
@@ -375,9 +383,7 @@ let MarkersView = class MarkersView extends FilterViewPane {
|
|
|
375
383
|
return null;
|
|
376
384
|
}),
|
|
377
385
|
expandOnlyOnTwistieClick: (e) => e instanceof Marker && e.relatedInformation.length > 0,
|
|
378
|
-
overrideStyles:
|
|
379
|
-
listBackground: this.getBackgroundColor()
|
|
380
|
-
},
|
|
386
|
+
overrideStyles: this.getLocationBasedColors().listOverrideStyles,
|
|
381
387
|
selectionNavigation: true,
|
|
382
388
|
multipleSelectionSupport: true,
|
|
383
389
|
});
|
|
@@ -747,7 +753,8 @@ MarkersView = ( (__decorate([
|
|
|
747
753
|
( (__param(11, IKeybindingService))),
|
|
748
754
|
( (__param(12, IStorageService))),
|
|
749
755
|
( (__param(13, IOpenerService))),
|
|
750
|
-
( (__param(14, IThemeService)))
|
|
756
|
+
( (__param(14, IThemeService))),
|
|
757
|
+
( (__param(15, IHoverService)))
|
|
751
758
|
], MarkersView)));
|
|
752
759
|
let MarkersTree = class MarkersTree extends WorkbenchObjectTree {
|
|
753
760
|
constructor(user, container, delegate, renderers, options, instantiationService, contextKeyService, listService, themeService, configurationService) {
|