You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Focus Next Pane gets stuck on TabSet2 and never reaches the sidebar #19191
Focus Next Pane (F6) stops at the TabSet2 pane, and neither F6 nor Shift+F6 moves focus into the sidebar.
F6 cycles through PaneManager.panes_, which createPanes() builds from the quadrants pref. The default quadrants includes Sidebar, so the cycle is Source, Console, TabSet1, TabSet2, Sidebar. focusWindow() has no case for Sidebar: it falls into the branch that picks TabSet2's selected tab. F6 from TabSet2 goes to "Sidebar", which focuses TabSet2 again, so focus never wraps. Shift+F6 wraps, but its Sidebar step also lands on TabSet2.
Layouts saved from the Pane Layout dialog list only the four quadrants. With those, F6 wraps but the sidebar isn't in the cycle at all.
A second problem: showSidebar(true) replaces the sidebar's LogicalWindow (clearSidebarCache() and createTabSet()), but panes_ keeps the old one. After the sidebar is shown, getActiveLogicalWindow() returns null for focus inside it, so F6 and Shift+F6 do nothing there. If the sidebar was visible when the IDE loaded, F6 out of it works.
Steps to reproduce
With a default pane layout (no panes entry in rstudio-prefs.json):
Focus the Files pane.
Press F6 repeatedly.
Click Show Sidebar in the toolbar, focus the Show Posit Assistant in a separate window button in the sidebar, and press F6.
Expected: F6 visits each visible pane, including the sidebar, and wraps. F6 from the sidebar moves focus to the next pane. Actual: Focus stays on Files from step 2 on. In step 3, F6 does nothing.
Reproduced on RStudio Server built from main at 13e062f.
Activity
Fix Focus Next/Previous Pane around the sidebar (#19203)