提交 2c0e5342 编写于 作者: I isidor

debug: only focus back the editor if hover had focus

fixes #90167
上级 5facf746
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册