sessions: move code review next to diff stats in single-pane Changes header#325701
Merged
sandy081 merged 1 commit intoJul 13, 2026
Merged
Conversation
…header In the Agents window single side-pane view, move the Run Code Review action into the primary (left) editor header next to the diff-stats action, in its own menu group so a separator renders before it. The diff-stats action now always renders the rich, clickable "N files +X -Y" pill (previously only shown when the editor area was collapsed; a separate non-interactive label was shown when it was open). Clicking it opens/re-opens the Changes editor regardless of editor-area state. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Moves single-pane Changes header actions into a consistent layout.
Changes:
- Places code review beside diff statistics.
- Makes rich diff statistics always interactive.
- Updates styling and layout documentation.
Show a summary per file
| File | Description |
|---|---|
src/vs/sessions/LAYOUT.md |
Updates header documentation. |
codeReview.contributions.ts |
Moves code review to the primary header. |
sessionChangesEditor.css |
Enables interactive pill styling. |
changesView.ts |
Unifies diff-stat actions. |
style.css |
Adjusts separator margins. |
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 4
- Review effort level: Medium
kycutler
approved these changes
Jul 13, 2026
roblourens
approved these changes
Jul 13, 2026
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.
What changed
In the Agents window single side-pane view, the Run Code Review action now sits in the primary (left) editor header next to the diff-stats action, in its own menu group so a separator renders before it (Branch Changes picker + diff-stats | Run Code Review).
The diff-stats action now always renders the rich, clickable "N files +X -Y" pill:
Why
Consolidates the diff-stats rendering into one consistent, always-clickable control and groups the code review action alongside it in the left header (previously it lived on the right in
SessionsEditorHeaderSecondary).Notes for reviewers
RunSessionCodeReviewAction's single-pane contribution moved fromMenus.SessionsEditorHeaderSecondary(order 10) toMenus.SessionsEditorHeaderPrimary, group1_codeReview— the separate group is what produces the divider before it.ChangesDiffStatsLabelActionand the non-interactiveonClick/focusoverrides;SinglePaneChangesDiffStatsActionItemis now fully interactive.style.css.MenuId.AgentsChangesToolbar.LAYOUT.mdupdated to match.