From 4635c352d4a1d0a7452a39d76ba7f4e027b2813f Mon Sep 17 00:00:00 2001 From: Aiday Marlen Kyzy Date: Fri, 14 Jul 2023 11:18:41 +0200 Subject: [PATCH] refactoring the code --- src/vs/editor/contrib/hover/browser/hover.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vs/editor/contrib/hover/browser/hover.ts b/src/vs/editor/contrib/hover/browser/hover.ts index 46c94e313df..0058f9179da 100644 --- a/src/vs/editor/contrib/hover/browser/hover.ts +++ b/src/vs/editor/contrib/hover/browser/hover.ts @@ -216,6 +216,9 @@ export class ModesHoverController implements IEditorContribution { this._glyphWidget.startShowingAt(target.position.lineNumber); return; } + if (this._contentWidget?.isFocused()) { + return; + } if (!this._contentWidget?.widget.isResizing && !_sticky) { this._hideWidgets(); }