@@ -202,8 +202,9 @@ class NavigateDownAction extends BaseNavigationAction {
202202}
203203
204204function findVisibleNeighbour ( layoutService : IWorkbenchLayoutService , part : Parts , next : boolean ) : Parts {
205- const neighbour = part === Parts . EDITOR_PART ? ( next ? Parts . STATUSBAR_PART : Parts . PANEL_PART ) : part === Parts . STATUSBAR_PART ? ( next ? Parts . SIDEBAR_PART : Parts . EDITOR_PART ) :
206- part === Parts . SIDEBAR_PART ? ( next ? Parts . PANEL_PART : Parts . STATUSBAR_PART ) : part === Parts . PANEL_PART ? ( next ? Parts . EDITOR_PART : Parts . SIDEBAR_PART ) : Parts . EDITOR_PART ;
205+ const neighbour = part === Parts . EDITOR_PART ? ( next ? Parts . STATUSBAR_PART : Parts . PANEL_PART ) : part === Parts . STATUSBAR_PART ? ( next ? Parts . ACTIVITYBAR_PART : Parts . EDITOR_PART ) :
206+ part === Parts . ACTIVITYBAR_PART ? ( next ? Parts . SIDEBAR_PART : Parts . STATUSBAR_PART ) : part === Parts . SIDEBAR_PART ? ( next ? Parts . PANEL_PART : Parts . ACTIVITYBAR_PART ) :
207+ part === Parts . PANEL_PART ? ( next ? Parts . EDITOR_PART : Parts . SIDEBAR_PART ) : Parts . EDITOR_PART ;
207208 if ( layoutService . isVisible ( neighbour ) || neighbour === Parts . EDITOR_PART ) {
208209 return neighbour ;
209210 }
@@ -212,8 +213,8 @@ function findVisibleNeighbour(layoutService: IWorkbenchLayoutService, part: Part
212213}
213214
214215function focusNextOrPreviousPart ( layoutService : IWorkbenchLayoutService , next : boolean ) : void {
215- const currentlyFocusedPart = layoutService . hasFocus ( Parts . EDITOR_PART ) ? Parts . EDITOR_PART : layoutService . hasFocus ( Parts . STATUSBAR_PART ) ? Parts . STATUSBAR_PART :
216- layoutService . hasFocus ( Parts . SIDEBAR_PART ) ? Parts . SIDEBAR_PART : layoutService . hasFocus ( Parts . PANEL_PART ) ? Parts . PANEL_PART : undefined ;
216+ const currentlyFocusedPart = layoutService . hasFocus ( Parts . EDITOR_PART ) ? Parts . EDITOR_PART : layoutService . hasFocus ( Parts . ACTIVITYBAR_PART ) ? Parts . ACTIVITYBAR_PART :
217+ layoutService . hasFocus ( Parts . STATUSBAR_PART ) ? Parts . STATUSBAR_PART : layoutService . hasFocus ( Parts . SIDEBAR_PART ) ? Parts . SIDEBAR_PART : layoutService . hasFocus ( Parts . PANEL_PART ) ? Parts . PANEL_PART : undefined ;
217218 let partToFocus = Parts . EDITOR_PART ;
218219 if ( currentlyFocusedPart ) {
219220 partToFocus = findVisibleNeighbour ( layoutService , currentlyFocusedPart , next ) ;
0 commit comments