Skip to content

Commit

Permalink
Fixes #134750
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanp413 authored and alexdima committed Oct 12, 2021
1 parent ee8c7de commit 0035e62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/vs/editor/contrib/hover/modesContentHover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,14 @@ export class ModesContentHoverWidget extends Widget implements IContentWidget, I
instantiationService.createInstance(MarkerHoverParticipant, editor, this),
];

this._hover = this._register(new HoverWidget());
this._editor = editor;
this._isVisible = false;
this._stoleFocus = false;
this._renderDisposable = null;

this._hover = this._register(new HoverWidget());
this._hover.containerDomNode.classList.toggle('hidden', !this._isVisible);

this.onkeydown(this._hover.containerDomNode, (e: IKeyboardEvent) => {
if (e.equals(KeyCode.Escape)) {
this.hide();
Expand Down
5 changes: 3 additions & 2 deletions src/vs/editor/contrib/hover/modesGlyphHover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,13 @@ export class ModesGlyphHoverWidget extends Widget implements IOverlayWidget {
super();
this._editor = editor;

this._hover = this._register(new HoverWidget());

this._isVisible = false;
this._messages = [];
this._lastLineNumber = -1;

this._hover = this._register(new HoverWidget());
this._hover.containerDomNode.classList.toggle('hidden', !this._isVisible);

this._markdownRenderer = this._register(new MarkdownRenderer({ editor: this._editor }, modeService, openerService));
this._computer = new MarginComputer(this._editor);
this._hoverOperation = new HoverOperation(
Expand Down

0 comments on commit 0035e62

Please sign in to comment.