Skip to content

Commit ede257b

Browse files
committed
cleaning the code
1 parent e86cdd8 commit ede257b

File tree

1 file changed

+6
-4
lines changed
  • src/vs/editor/contrib/hover/browser

1 file changed

+6
-4
lines changed

src/vs/editor/contrib/hover/browser/hover.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,14 @@ export class ModesHoverController implements IEditorContribution {
216216
this._glyphWidget.startShowingAt(target.position.lineNumber);
217217
return;
218218
}
219-
if (this._contentWidget?.isFocused()) {
219+
if (
220+
this._contentWidget?.isFocused()
221+
|| this._contentWidget?.widget.isResizing
222+
|| _sticky
223+
) {
220224
return;
221225
}
222-
if (!this._contentWidget?.widget.isResizing && !_sticky) {
223-
this._hideWidgets();
224-
}
226+
this._hideWidgets();
225227
}
226228

227229
private _onKeyDown(e: IKeyboardEvent): void {

0 commit comments

Comments
 (0)