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
Pane raises during a zoom use the localized pane title, which PaneManager doesn't recognize #19234
In a non-English UI language, a pane that raises itself during another pane's zoom can fail to take over the zoom properly, because the raise names the pane by its localized title.
WorkbenchPane.bringToFront() fires ActivatePaneEvent(title_), and title_ is the pane's localized title, e.g. "Aide" for Help in French. PaneManager.tabForName() only matches the English names (HELP_PANE and so on), so WorkbenchScreen.onActivatePane drops the event and lastSelectedTab_ keeps the previously activated tab. The raise then reaches the WindowEnsureVisibleEvent handler, which moves a zoom of another pane with fullyMaximizeWindow(window, lastSelectedTab_), i.e. with the wrong tab.
Seen in French with Search R Help during a Console zoom on #19231's branch before da9c910. At that point the command raised HelpPane the same way a help topic does on main, and the Help pane stayed hidden. #19231 works around it for the Help menu commands by firing the canonical "Help" ActivatePaneEvent before the raise. The general case is not yet reproduced on main.
Likely affected on main: any pane raise during another pane's zoom in French, e.g. ?mean or a new plot while Console is zoomed.
Possible fixes: have WorkbenchPane carry its canonical pane name for ActivatePaneEvent, separate from its display title. Or have the handler work out the tab from the raised window rather than lastSelectedTab_.
A test can switch languages with window.rstudio.prefs.uiLanguage.set('fr') and a reload. The workbench syncs the LOCALE cookie that the GWT bootstrap reads to that pref on load. See "Search R Help during a Console zoom moves the zoom to Help in French" in e2e/rstudio/tests/panes/layout/zoom_inert.test.ts.
Activity
Drop Help activations that duplicate the pane's own raise
Give TerminalPane no pane name
Load History before testing Clear History
Test Help Home during a Console zoom
Wait for the History pane to load before its commands
Name a raised pane by its canonical name, not its title (#19300)