File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/vs/workbench/services/hover/browser Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,11 @@ export class HoverService implements IHoverService {
38
38
const hoverDisposables = new DisposableStore ( ) ;
39
39
const hover = this . _instantiationService . createInstance ( HoverWidget , options ) ;
40
40
hover . onDispose ( ( ) => {
41
- this . _currentHoverOptions = undefined ;
41
+ // Only clear the current options if it's the current hover, the current options help
42
+ // reduce flickering when the same hover is shown multiple times
43
+ if ( this . _currentHoverOptions === options ) {
44
+ this . _currentHoverOptions = undefined ;
45
+ }
42
46
hoverDisposables . dispose ( ) ;
43
47
} ) ;
44
48
const provider = this . _contextViewService as IContextViewProvider ;
Original file line number Diff line number Diff line change @@ -507,7 +507,7 @@ export class HoverWidget extends Widget {
507
507
}
508
508
509
509
class CompositeMouseTracker extends Widget {
510
- private _isMouseIn : boolean = false ;
510
+ private _isMouseIn : boolean = true ;
511
511
private _mouseTimeout : number | undefined ;
512
512
513
513
private readonly _onMouseOut = this . _register ( new Emitter < void > ( ) ) ;
You can’t perform that action at this time.
0 commit comments