mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-07 15:26:49 +01:00
94c155c4d9
* sessions: single-pane layout controller cleanup (no workbench.ts) Base/single-pane layout controller changes assembled without the workbench.ts side-pane Strategy extraction: - R1: remove the base-controller single-pane leak via Template Method hooks and override them in SinglePaneDesktopSessionLayoutController. - Additional single-pane controller / editor contribution refinements and spec updates (LAYOUT.md, SINGLE_PANE_SCENARIOS.md, sessions SKILL.md). Excludes workbench.ts, sidePaneLayoutStrategy.ts and workbench.test.ts by design. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * sessions: capture editor-part hidden state eagerly to fix side-pane restore race The per-session editor-part hidden state was captured lazily in _saveWorkingSet by reading live editor visibility at switch-away time. That races the switch derive (activeSessionForWorkingSet lags the raw active session), so the incoming session's layout could flip the outgoing session's recorded state to visible — reopening a side pane the user had closed when switching back to it. Capture it eagerly via a [B2] onDidChangePartVisibility(EDITOR_PART) listener (mirroring the [B1] panel capture), guarded by single-session and not-restoring, and drop the racy lazy read. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>