@@ -302,10 +302,6 @@ export class ModesHoverController implements IEditorContribution {
302302 this . _contentWidget ?. goToBottom ( ) ;
303303 }
304304
305- public escape ( ) : void {
306- this . _contentWidget ?. escape ( ) ;
307- }
308-
309305 public isHoverVisible ( ) : boolean | undefined {
310306 return this . _contentWidget ?. isVisible ( ) ;
311307 }
@@ -665,36 +661,6 @@ class GoToBottomHoverAction extends EditorAction {
665661 }
666662}
667663
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-
698664registerEditorContribution ( ModesHoverController . ID , ModesHoverController , EditorContributionInstantiation . BeforeFirstInteraction ) ;
699665registerEditorAction ( ShowOrFocusHoverAction ) ;
700666registerEditorAction ( ShowDefinitionPreviewHoverAction ) ;
@@ -706,7 +672,6 @@ registerEditorAction(PageUpHoverAction);
706672registerEditorAction ( PageDownHoverAction ) ;
707673registerEditorAction ( GoToTopHoverAction ) ;
708674registerEditorAction ( GoToBottomHoverAction ) ;
709- registerEditorAction ( EscapeFocusHoverAction ) ;
710675HoverParticipantRegistry . register ( MarkdownHoverParticipant ) ;
711676HoverParticipantRegistry . register ( MarkerHoverParticipant ) ;
712677
0 commit comments