@@ -52,10 +52,10 @@ export class ContentHoverController extends Disposable {
52
52
) {
53
53
super ( ) ;
54
54
55
- const initialHeight = this . _editor . getOption ( EditorOption . lineHeight ) + 8 ;
56
- const initialWidth = 4 / 3 * initialHeight ;
57
- const initialSize = new dom . Dimension ( initialWidth , initialHeight ) ;
58
- this . _widget = this . _register ( this . _instantiationService . createInstance ( ContentHoverWidget , this . _editor , initialSize ) ) ;
55
+ const minimumHeight = this . _editor . getOption ( EditorOption . lineHeight ) + 8 ;
56
+ const minimumWidth = 4 / 3 * minimumHeight ;
57
+ const minimumSize = new dom . Dimension ( minimumWidth , minimumHeight ) ;
58
+ this . _widget = this . _register ( this . _instantiationService . createInstance ( ContentHoverWidget , this . _editor , minimumSize ) ) ;
59
59
60
60
// Instantiate participants and sort them by `hoverOrdinal` which is relevant for rendering order.
61
61
this . _participants = [ ] ;
@@ -486,10 +486,10 @@ export class ContentHoverWidget extends ResizableContentWidget {
486
486
487
487
constructor (
488
488
editor : ICodeEditor ,
489
- initialSize : dom . Dimension ,
489
+ minimumSize : dom . Dimension ,
490
490
@IContextKeyService contextKeyService : IContextKeyService
491
491
) {
492
- super ( editor , initialSize ) ;
492
+ super ( editor , minimumSize ) ;
493
493
this . _hoverVisibleKey = EditorContextKeys . hoverVisible . bindTo ( contextKeyService ) ;
494
494
this . _hoverFocusedKey = EditorContextKeys . hoverFocused . bindTo ( contextKeyService ) ;
495
495
0 commit comments