mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-17 20:44:27 +01:00
* sessions: do not force-open managed tabs when opening a file in single-pane layout Rework the single-pane managed docked tabs (Changes + Files placeholder) so they are only opened into an *empty* editor group on a view-open trigger, removing the fragile dismissal bookkeeping and aux-bar-visibility inference. - Add layout-service events `onDidRevealSidePane` (side pane goes fully hidden -> visible) and `onDidEndSessionLayoutRestore` (restore epoch settles) and drive the managed-tabs strategy off named triggers A-D. - Open default tabs only when the group is empty, so closing a managed tab sticks and closing a file no longer re-forces the tabs open / leaves the side pane un-closable. - Ensure Changes (opened active) on new-session submit; ensure all docked inputs on a details-only reveal. - Scope pending reconcile intents to their session so a superseded reconcile cannot leak its intent onto a switched-to session. - Gate responsive sessions-list auto-collapse on small windows (<= 1800px). - Only collapse editors on a details-only hide (aux still visible), not when the whole side pane closes. - Tests + docs (SINGLE_PANE_SCENARIOS.md, sessions SKILL.md) updated. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * sessions: address CCR review feedback on single-pane managed tabs - Guard the Files-tab tidy on onWillOpenEditor: resolve the event group via mainPart.getGroup and skip re-activations (already-open editors) and non-main-part groups, so selecting/closing-to-reveal an existing file no longer removes a user-added Files tab. - Open the submit Changes tab with preserveFocus so activating it for detail mapping never steals focus from the just-submitted chat. - Remove the now-dead internallyClosingEditors bookkeeping from the coordinator and both docked-tab strategies (no readers after dismissal tracking was removed). - Trim the SinglePaneManagedTabsStrategy class JSDoc to the ownership contract. - Tests: model production onWillOpenEditor ordering (fire before insert) and add a re-activation case; add onDidRevealSidePane transition assertions. - Docs: fix stale/nonexistent API references in the sessions SKILL.md pitfalls. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>