This commit is contained in:
Alex Dima 2021-05-26 20:34:58 +02:00
parent 1e6b6cb684
commit fd7c71a2ee
No known key found for this signature in database
GPG key ID: 6E58D7B045760DA0

View file

@ -211,8 +211,10 @@ export class ModesContentHoverWidget extends Widget implements IContentWidget, I
) {
super();
const markerHoverParticipant = instantiationService.createInstance(MarkerHoverParticipant, editor, this);
const markdownHoverParticipant = instantiationService.createInstance(MarkdownHoverParticipant, editor, this);
const participants = [
instantiationService.createInstance(MarkdownHoverParticipant, editor, this),
instantiationService.createInstance(MarkerHoverParticipant, editor, this)
];
this._hover = this._register(new HoverWidget());
this._id = ModesContentHoverWidget.ID;
@ -243,7 +245,7 @@ export class ModesContentHoverWidget extends Widget implements IContentWidget, I
this._messages = [];
this._lastRange = null;
this._computer = new ModesContentComputer(this._editor, [markdownHoverParticipant, markerHoverParticipant]);
this._computer = new ModesContentComputer(this._editor, participants);
this._highlightDecorations = [];
this._isChangingDecorations = false;
this._shouldFocus = false;