Skip to content

Commit e2cc9c2

Browse files
committed
change from review
1 parent ede257b commit e2cc9c2

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,6 @@ export class ContentHoverController extends Disposable {
263263
return;
264264
}
265265
}
266-
if (hoverResult.messages.length === 0 && this._widget.isFocused) {
267-
return;
268-
}
269266
this._setCurrentResult(hoverResult);
270267
}
271268

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ export class ModesHoverController implements IEditorContribution {
155155
private _onEditorMouseMove(mouseEvent: IEditorMouseEvent): void {
156156
const target = mouseEvent.target;
157157

158+
if (this._contentWidget?.isFocused() || this._contentWidget?.widget.isResizing) {
159+
return;
160+
}
161+
158162
if (this._isMouseDown && this._hoverClicked) {
159163
return;
160164
}
@@ -216,11 +220,7 @@ export class ModesHoverController implements IEditorContribution {
216220
this._glyphWidget.startShowingAt(target.position.lineNumber);
217221
return;
218222
}
219-
if (
220-
this._contentWidget?.isFocused()
221-
|| this._contentWidget?.widget.isResizing
222-
|| _sticky
223-
) {
223+
if (_sticky) {
224224
return;
225225
}
226226
this._hideWidgets();

0 commit comments

Comments
 (0)