@@ -122,8 +122,9 @@ export class ModesHoverController implements IEditorContribution {
122
122
if ( target . type !== MouseTargetType . OVERLAY_WIDGET ) {
123
123
this . _hoverClicked = false ;
124
124
}
125
-
126
- this . _hideWidgets ( ) ;
125
+ if ( ! this . _contentWidget ?. widget . isResizing ) {
126
+ this . _hideWidgets ( ) ;
127
+ }
127
128
}
128
129
129
130
private _onEditorMouseUp ( mouseEvent : IEditorMouseEvent ) : void {
@@ -132,7 +133,8 @@ export class ModesHoverController implements IEditorContribution {
132
133
133
134
private _onEditorMouseLeave ( mouseEvent : IPartialEditorMouseEvent ) : void {
134
135
const targetEm = ( mouseEvent . event . browserEvent . relatedTarget ) as HTMLElement ;
135
- if ( this . _contentWidget ?. containsNode ( targetEm ) ) {
136
+ if ( this . _contentWidget ?. widget . isResizing || this . _contentWidget ?. containsNode ( targetEm ) ) {
137
+ // When the content widget is resizing
136
138
// when the mouse is inside hover widget
137
139
return ;
138
140
}
@@ -195,8 +197,9 @@ export class ModesHoverController implements IEditorContribution {
195
197
this . _glyphWidget . startShowingAt ( target . position . lineNumber ) ;
196
198
return ;
197
199
}
198
-
199
- this . _hideWidgets ( ) ;
200
+ if ( ! this . _contentWidget ?. widget . isResizing ) {
201
+ this . _hideWidgets ( ) ;
202
+ }
200
203
}
201
204
202
205
private _onKeyDown ( e : IKeyboardEvent ) : void {
@@ -222,9 +225,7 @@ export class ModesHoverController implements IEditorContribution {
222
225
223
226
this . _hoverClicked = false ;
224
227
this . _glyphWidget ?. hide ( ) ;
225
- if ( ! this . _contentWidget ?. widget . isResizing ) {
226
- this . _contentWidget ?. hide ( ) ;
227
- }
228
+ this . _contentWidget ?. hide ( ) ;
228
229
}
229
230
230
231
private _getOrCreateContentWidget ( ) : ContentHoverController {
0 commit comments