We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e44296c commit 0ccb215Copy full SHA for 0ccb215
src/vs/editor/contrib/hover/browser/contentHover.ts
@@ -726,12 +726,15 @@ export class ContentHoverWidget extends ResizableContentWidget {
726
if (!this._visibleData) {
727
return;
728
}
729
+ const stoleFocus = this._visibleData.stoleFocus || this._hoverFocusedKey.get();
730
this._setHoverData(undefined);
731
this._resizableNode.maxSize = new dom.Dimension(Infinity, Infinity);
732
this._resizableNode.clearSashHoverState();
733
this._hoverFocusedKey.set(false);
734
this._editor.layoutContentWidget(this);
- this._editor.focus();
735
+ if (stoleFocus) {
736
+ this._editor.focus();
737
+ }
738
739
740
private _removeConstraintsRenderNormally(): void {
0 commit comments