提交 f23f00bb 编写于 作者: I Itamar Kestenbaum

cancel hide if still hovered

上级 1e3cc1a3
......@@ -385,7 +385,11 @@ export class DebugEditorContribution implements IDebugEditorContribution {
@memoize
private get hideHoverScheduler(): RunOnceScheduler {
const scheduler = new RunOnceScheduler(() => this.hoverWidget.hide(), 2 * HOVER_DELAY);
const scheduler = new RunOnceScheduler(() => {
if (!this.hoverWidget.isHovered()) {
this.hoverWidget.hide();
}
}, 2 * HOVER_DELAY);
this.toDispose.push(scheduler);
return scheduler;
......
......@@ -122,6 +122,10 @@ export class DebugHoverWidget implements IContentWidget {
}));
}
isHovered(): boolean {
return this.domNode.matches(':hover');
}
isVisible(): boolean {
return this._isVisible;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册