Files
vscode/.github
69604a5ab5 sessions: default single-pane side pane to 60% and persist its width reliably (#325301)
* sessions: default the single-pane side pane to 60% and persist its width reliably

Make the single-pane side pane (docked editor part) open at a comfortable
60% of the window width and keep its size workbench-wide across session
switches and reloads.

- First reveal of the side pane uses 60% of the window width
  (`INITIAL_EDITOR_WIDTH_RATIO`) instead of a 50% main-area split.
- Side-pane width is workbench-global (`workbench.sessions.partSizes`), so
  switching sessions keeps the same width; hiding the pane in one session no
  longer resets another session's width on return.
- Fix persistence: `_persistedGridViewSize` is a single overridable read for
  all parts, and single-pane returns its docked auxiliary-bar width from the
  docked layout state instead of the grid (the docked aux bar is not a grid
  view, so reading it threw 'View not found' and aborted the whole save,
  losing the editor width).
- Restore-side guards a stale/corrupt sub-minimum saved editor width (e.g. a
  persisted 0) by falling back to the default instead of collapsing to the
  300px minimum on reload.
- `_persistedEditorWidth` subtracts the docked detail width only when the
  detail is visible, mirroring the grid descriptor, so an Editor-only session
  no longer shrinks by the detail width on every reload.
- Double-clicking the chat/side-pane sash resets the side pane to 60% via a
  `preferredWidth` on `SinglePaneMainEditorPart` (single-pane only; the
  classic layout keeps the standard distribute).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* sessions: address side-pane sizing review feedback

- Move editor/side-pane sizing constants into a shared leaf module
  (parts/editorPartSizing.ts) so the reveal split and the sash
  double-click reset can't drift apart.
- Keep the base grid layout's classic even split of the main area; scope
  the 60%-of-window side-pane split to the single-pane override.
- Preserve the last valid global editor width whenever a measurement is
  sub-minimum (e.g. editor hidden with detail visible), instead of only
  when the editor part is visible, so a hidden editor never persists 0.
- Remove a duplicate JSDoc opener on _applyEditorSplitSize.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-07-10 14:46:56 +00:00
..