@@ -302,10 +302,6 @@ export class ModesHoverController implements IEditorContribution {
302
302
this . _contentWidget ?. goToBottom ( ) ;
303
303
}
304
304
305
- public escape ( ) : void {
306
- this . _contentWidget ?. escape ( ) ;
307
- }
308
-
309
305
public isHoverVisible ( ) : boolean | undefined {
310
306
return this . _contentWidget ?. isVisible ( ) ;
311
307
}
@@ -665,36 +661,6 @@ class GoToBottomHoverAction extends EditorAction {
665
661
}
666
662
}
667
663
668
- class EscapeFocusHoverAction extends EditorAction {
669
-
670
- constructor ( ) {
671
- super ( {
672
- id : 'editor.action.escapeFocusHover' ,
673
- label : nls . localize ( {
674
- key : 'escapeFocusHover' ,
675
- comment : [
676
- 'Action that allows to escape from the hover widget with the escape command when the hover widget is focused.'
677
- ]
678
- } , "Escape Focus Hover" ) ,
679
- alias : 'Escape Focus Hover' ,
680
- precondition : EditorContextKeys . hoverFocused ,
681
- kbOpts : {
682
- kbExpr : EditorContextKeys . hoverFocused ,
683
- primary : KeyCode . Escape ,
684
- weight : KeybindingWeight . EditorContrib
685
- }
686
- } ) ;
687
- }
688
-
689
- public run ( accessor : ServicesAccessor , editor : ICodeEditor ) : void {
690
- const controller = ModesHoverController . get ( editor ) ;
691
- if ( ! controller ) {
692
- return ;
693
- }
694
- controller . escape ( ) ;
695
- }
696
- }
697
-
698
664
registerEditorContribution ( ModesHoverController . ID , ModesHoverController , EditorContributionInstantiation . BeforeFirstInteraction ) ;
699
665
registerEditorAction ( ShowOrFocusHoverAction ) ;
700
666
registerEditorAction ( ShowDefinitionPreviewHoverAction ) ;
@@ -706,7 +672,6 @@ registerEditorAction(PageUpHoverAction);
706
672
registerEditorAction ( PageDownHoverAction ) ;
707
673
registerEditorAction ( GoToTopHoverAction ) ;
708
674
registerEditorAction ( GoToBottomHoverAction ) ;
709
- registerEditorAction ( EscapeFocusHoverAction ) ;
710
675
HoverParticipantRegistry . register ( MarkdownHoverParticipant ) ;
711
676
HoverParticipantRegistry . register ( MarkerHoverParticipant ) ;
712
677
0 commit comments