Skip to content

Commit

Permalink
debug: only focus back the editor if hover had focus
Browse files Browse the repository at this point in the history
fixes #90167
  • Loading branch information
isidorn committed Feb 7, 2020
1 parent 5facf74 commit 2c0e534
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vs/workbench/contrib/debug/browser/debugHover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,13 @@ export class DebugHoverWidget implements IContentWidget {
return;
}

if (dom.isAncestor(document.activeElement, this.domNode)) {
this.editor.focus();
}
this._isVisible = false;
this.editor.deltaDecorations(this.highlightDecorations, []);
this.highlightDecorations = [];
this.editor.layoutContentWidget(this);
this.editor.focus();
}

getPosition(): IContentWidgetPosition | null {
Expand Down

0 comments on commit 2c0e534

Please sign in to comment.