@@ -13,9 +13,9 @@ import { Registry } from 'vs/platform/registry/common/platform';
1313import { IWorkbenchContributionsRegistry , Extensions as WorkbenchExtensions } from 'vs/workbench/common/contributions' ;
1414import { LifecyclePhase } from 'vs/workbench/services/lifecycle/common/lifecycle' ;
1515
16- /** INavigatableContainer represents a logical container composed of widgets that can
16+ /** INavigableContainer represents a logical container composed of widgets that can
1717 be navigated back and forth with key shortcuts */
18- interface INavigatableContainer {
18+ interface INavigableContainer {
1919 /**
2020 * The container may coomposed of multiple parts that share no DOM ancestor
2121 * (e.g., the main body and filter box of MarkersView may be separated).
@@ -54,28 +54,28 @@ function handleFocusEventsGroup(group: readonly IFocusNotifier[], handler: (isFo
5454 ) ) ) ;
5555}
5656
57- const NavigatableContainerFocusedContextKey = new RawContextKey < boolean > ( 'navigatableContainerFocused ' , false ) ;
57+ const NavigableContainerFocusedContextKey = new RawContextKey < boolean > ( 'navigableContainerFocused ' , false ) ;
5858
59- class NavigatableContainerManager implements IDisposable {
60- private static INSTANCE : NavigatableContainerManager | undefined ;
59+ class NavigableContainerManager implements IDisposable {
60+ private static INSTANCE : NavigableContainerManager | undefined ;
6161
62- private readonly containers = new Set < INavigatableContainer > ( ) ;
63- private lastContainer : INavigatableContainer | undefined ;
62+ private readonly containers = new Set < INavigableContainer > ( ) ;
63+ private lastContainer : INavigableContainer | undefined ;
6464 private focused : IContextKey < boolean > ;
6565
6666
6767 constructor ( @IContextKeyService contextKeyService : IContextKeyService ) {
68- this . focused = NavigatableContainerFocusedContextKey . bindTo ( contextKeyService ) ;
69- NavigatableContainerManager . INSTANCE = this ;
68+ this . focused = NavigableContainerFocusedContextKey . bindTo ( contextKeyService ) ;
69+ NavigableContainerManager . INSTANCE = this ;
7070 }
7171
7272 dispose ( ) : void {
7373 this . containers . clear ( ) ;
7474 this . focused . reset ( ) ;
75- NavigatableContainerManager . INSTANCE = undefined ;
75+ NavigableContainerManager . INSTANCE = undefined ;
7676 }
7777
78- static register ( container : INavigatableContainer ) : IDisposable {
78+ static register ( container : INavigableContainer ) : IDisposable {
7979 const instance = this . INSTANCE ;
8080 if ( ! instance ) {
8181 return Disposable . None ;
@@ -102,31 +102,31 @@ class NavigatableContainerManager implements IDisposable {
102102 ) ;
103103 }
104104
105- static getActive ( ) : INavigatableContainer | undefined {
105+ static getActive ( ) : INavigableContainer | undefined {
106106 return this . INSTANCE ?. lastContainer ;
107107 }
108108}
109109
110- export function registerNavigatableContainer ( container : INavigatableContainer ) : IDisposable {
111- return NavigatableContainerManager . register ( container ) ;
110+ export function registerNavigableContainer ( container : INavigableContainer ) : IDisposable {
111+ return NavigableContainerManager . register ( container ) ;
112112}
113113
114114Registry . as < IWorkbenchContributionsRegistry > ( WorkbenchExtensions . Workbench )
115- . registerWorkbenchContribution ( NavigatableContainerManager , LifecyclePhase . Starting ) ;
115+ . registerWorkbenchContribution ( NavigableContainerManager , LifecyclePhase . Starting ) ;
116116
117117KeybindingsRegistry . registerCommandAndKeybindingRule ( {
118118 id : 'widgetNavigation.focusPrevious' ,
119119 weight : KeybindingWeight . WorkbenchContrib ,
120120 when : ContextKeyExpr . and (
121- NavigatableContainerFocusedContextKey ,
121+ NavigableContainerFocusedContextKey ,
122122 ContextKeyExpr . or (
123123 WorkbenchListFocusContextKey ?. negate ( ) ,
124124 WorkbenchListScrollAtTopContextKey ,
125125 )
126126 ) ,
127127 primary : KeyMod . CtrlCmd | KeyCode . UpArrow ,
128128 handler : ( ) => {
129- const activeContainer = NavigatableContainerManager . getActive ( ) ;
129+ const activeContainer = NavigableContainerManager . getActive ( ) ;
130130 activeContainer ?. focusPreviousWidget ( ) ;
131131 }
132132} ) ;
@@ -135,15 +135,15 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
135135 id : 'widgetNavigation.focusNext' ,
136136 weight : KeybindingWeight . WorkbenchContrib ,
137137 when : ContextKeyExpr . and (
138- NavigatableContainerFocusedContextKey ,
138+ NavigableContainerFocusedContextKey ,
139139 ContextKeyExpr . or (
140140 WorkbenchListFocusContextKey ?. negate ( ) ,
141141 WorkbenchListScrollAtBottomContextKey ,
142142 )
143143 ) ,
144144 primary : KeyMod . CtrlCmd | KeyCode . DownArrow ,
145145 handler : ( ) => {
146- const activeContainer = NavigatableContainerManager . getActive ( ) ;
146+ const activeContainer = NavigableContainerManager . getActive ( ) ;
147147 activeContainer ?. focusNextWidget ( ) ;
148148 }
149149} ) ;
0 commit comments