Repository navigation
sessions: list the Canvases section under Automations in the navigation list - #349855
Merged
Ulugbek Abdullaev (ulugbekna) merged 3 commits intoNov 23, 2026
Merged
Conversation
…on list With a separate navigation list, Automations and Customizations are rows of that list, but the Canvases section was the first section of the sessions tree, so it read as part of the sessions. The Canvases header and its pins are now rows of the navigation list right after Automations. Choosing the header runs New Canvas, as the list does not collapse, and its context menu offers New Canvas. Pins step in under the header there too. Without a separate navigation list, the collapsible section stays after Automations in the tree. Co-authored-by: Copilot <[email protected]>
…oth layouts Co-authored-by: Copilot <[email protected]>
3 tasks done
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Right-clicking the Canvases header toolbar with separate navigation enabled throws an error because selection targets the wrong tree, leaving focus and selection updates incomplete.
1 open issue
What changed in this PR
This follow-up to #349654 places Canvases beside Automations in the Agents window’s separate navigation list, rather than inside the sessions tree. The existing collapsible tree layout remains unchanged when separate navigation is disabled.
Changes:
- Moves the Canvases header and indented pins directly after Automations.
- Makes header activation run New Canvas... and adds its navigation context menu.
- Relocates the command ID to shared workbench code and updates documentation and interaction tests.
| File | Description |
|---|---|
src/vs/workbench/contrib/sessions/browser/views/sessionsList.ts |
Moves canvas rows into navigation and handles header activation and context menus. |
src/vs/workbench/contrib/sessions/browser/media/sessionsList.css |
Extends the indentation variable to the navigation container. |
src/vs/sessions/SESSIONS_LIST.md |
Documents canvas placement and activation in both layouts. |
src/vs/sessions/contrib/sessions/test/browser/sessionsList.test.ts |
Updates coverage for row order, pin depth, activation, and visibility. |
src/vs/sessions/contrib/canvases/electron-browser/newCanvasSessionAction.ts |
Imports the relocated command ID from shared workbench code. |
Review effort: Balanced
Dmitriy Vasyura (dmitrivMS)
previously approved these changes
Nov 23, 2026
…icked The Canvases header is a row of the separate navigation list rather than of the sessions tree, so selecting it in the tree before its toolbar's context menu threw. Navigation headers are now focused in that list instead. Co-authored-by: Copilot <[email protected]>
Dmitriy Vasyura (dmitrivMS)
approved these changes
Nov 23, 2026
Ulugbek Abdullaev (ulugbekna)
deleted the
ulugbekna/canvases-under-automations
branch
November 23, 2026 15:35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Why
Follow-up to #349654, tested in #349746. With
sessions.sidebar.separateNavigationon, New Session, Automations and Customizations are rows of the separate navigation list, but the Canvases section (sessions.list.canvasesSection) rendered as the first section of the sessions tree. It read as part of the sessions instead of sitting next to Automations.What changed
NEW_CANVAS_SESSION_COMMAND_IDmoves intosessionsList.ts, so the workbench list can run it without importing fromvs/sessions.Scope
Only the layout with a separate navigation list changes. Without one, Canvases stays a collapsible section after Automations in the tree. With
sessions.list.canvasesSectionoff (the default), nothing changes.Verification
./scripts/test.sh --runthe sessions list, sessionselectron-browser, and canvasbrowser/electron-browsersuites: 799 passing. The navigation-layout test now asserts the row order, the pins' indent, an empty tree, the header running New Canvas, and the unpinned and canvases-disabled states.pnpm run typecheck-client,pnpm run oxlinton the changed files andpnpm run valid-layers-check: clean.