提交 ce95d7e8 编写于 作者: I isidor

tune hover behavior to allow alt to switch from debug hover to regular hover...

tune hover behavior to allow alt to switch from debug hover to regular hover and that the mouse move does not hide the regular hover

fixes #84561
上级 c4aa0108
......@@ -78,7 +78,6 @@ export class ModesHoverController implements IEditorContribution {
this._didChangeConfigurationHandler = this._editor.onDidChangeConfiguration((e: ConfigurationChangedEvent) => {
if (e.hasChanged(EditorOption.hover)) {
this._hideWidgets();
this._unhookEvents();
this._hookEvents();
}
......@@ -100,7 +99,7 @@ export class ModesHoverController implements IEditorContribution {
this._toUnhook.add(this._editor.onKeyDown((e: IKeyboardEvent) => this._onKeyDown(e)));
this._toUnhook.add(this._editor.onDidChangeModelDecorations(() => this._onModelDecorationsChanged()));
} else {
this._toUnhook.add(this._editor.onMouseMove(hideWidgetsEventHandler));
this._toUnhook.add(this._editor.onMouseMove((e: IEditorMouseEvent) => this._onEditorMouseMove(e)));
this._toUnhook.add(this._editor.onKeyDown((e: IKeyboardEvent) => this._onKeyDown(e)));
}
......
......@@ -269,9 +269,6 @@ export class DebugEditorContribution implements IDebugEditorContribution {
this.altPressed = false;
this.editor.updateOptions({ hover: { enabled: false } });
listener.dispose();
if (this.hoverRange && debugHoverWasVisible) {
this.showHover(this.hoverRange, false);
}
}
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册