mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-08 07:44:33 +01:00
cbb90554e4
* sessions: split session model from view service Separate the session model (ISessionsManagementService) from the view (ISessionsViewService) so the model owns canonical session state and the view owns visible-slot arrangement, focus and per-session view persistence. Introduces the new `browser/sessionsViewService.ts` core service and `browser/parts/sessionsParts.ts`, makes the part a passive renderer, and adds support for opening a session without focusing it (reactive preserve-focus intent published atomically with the active session). Also encapsulates the in-progress new-session draft in the model as a reactive `newSession` observable with a conditional `discardNewSession`, merges `openNewSessionView` into `openNewSession`, and routes new-session creation through the view so the draft is activated (fixing the session type picker rendering empty after reload). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * revert open from active session --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>