@@ -113,6 +113,7 @@ export class TreeView extends Disposable implements ITreeView {
113113 @IKeybindingService private readonly keybindingService : IKeybindingService ,
114114 @INotificationService private readonly notificationService : INotificationService ,
115115 @IViewDescriptorService private readonly viewDescriptorService : IViewDescriptorService ,
116+ @IHoverService private readonly hoverService : IHoverService ,
116117 @IContextKeyService contextKeyService : IContextKeyService
117118 ) {
118119 super ( ) ;
@@ -434,6 +435,7 @@ export class TreeView extends Disposable implements ITreeView {
434435 }
435436
436437 private onContextMenu ( treeMenus : TreeMenus , treeEvent : ITreeContextMenuEvent < ITreeItem > , actionRunner : MultipleSelectionActionRunner ) : void {
438+ this . hoverService . hideHover ( ) ;
437439 const node : ITreeItem | null = treeEvent . element ;
438440 if ( node === null ) {
439441 return ;
@@ -1026,7 +1028,7 @@ export class CustomTreeView extends TreeView {
10261028 @IHoverService hoverService : IHoverService ,
10271029 @IExtensionService private readonly extensionService : IExtensionService ,
10281030 ) {
1029- super ( id , title , themeService , instantiationService , commandService , configurationService , progressService , contextMenuService , keybindingService , notificationService , viewDescriptorService , contextKeyService ) ;
1031+ super ( id , title , themeService , instantiationService , commandService , configurationService , progressService , contextMenuService , keybindingService , notificationService , viewDescriptorService , hoverService , contextKeyService ) ;
10301032 }
10311033
10321034 setVisibility ( isVisible : boolean ) : void {
0 commit comments