Skip to content

[cherry-pick] sessions: Show Changes view for new sessions - #332374

Merged
Sandeep Somavarapu (sandy081) merged 1 commit into
release/1.135from
cherry-pick/332365
Aug 24, 2026
Merged

[cherry-pick] sessions: Show Changes view for new sessions#332374
Sandeep Somavarapu (sandy081) merged 1 commit into
release/1.135from
cherry-pick/332365

Conversation

@vs-code-engineering

Copy link
Copy Markdown
Contributor

Cherry-pick of #332365 from main.

Summary

  • enable the Changes view for workspace-backed new session drafts
  • keep the managed Changes and Files tabs available through single-pane draft restoration
  • preserve the Files-first detail-only new-session layout

Validation

  • npm run compile
  • npm run precommit
  • ./scripts/test.sh --run src/vs/sessions/contrib/changes/test/browser/changesViewActions.test.ts --run src/vs/sessions/contrib/layout/test/browser/desktopSessionLayoutController.test.ts (150 passing)

Copilot AI balanced review requested due to automatic review settings August 24, 2026 16:58
@vs-code-engineering vs-code-engineering Bot added the cherry-pick-artifact Auto-generated cherry-pick PR label Aug 24, 2026
@vs-code-engineering

Copy link
Copy Markdown
Contributor Author

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

Benjamin Christopher Simmonds (@benibenj)

Matched files:

  • src/vs/sessions/contrib/layout/browser/singlePane/singlePaneDockedTabsCoordinator.ts
  • src/vs/sessions/contrib/layout/browser/singlePane/singlePaneNewSessionStrategy.ts
  • src/vs/sessions/contrib/layout/test/browser/desktopSessionLayoutController.test.ts

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enables the Changes view and managed Changes tab for workspace-backed new-session drafts.

Changes:

  • Removes the created-session requirement from Changes view visibility.
  • Restores Changes and Files tabs while preserving Files-first draft layout.
  • Updates layout tests and documentation.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/vs/sessions/SINGLE_PANE_SCENARIOS.md Documents draft Changes-tab behavior.
src/vs/sessions/contrib/layout/test/browser/desktopSessionLayoutController.test.ts Updates managed-tab restoration expectations.
src/vs/sessions/contrib/layout/browser/singlePane/singlePaneNewSessionStrategy.ts Treats Changes as a managed draft input.
src/vs/sessions/contrib/layout/browser/singlePane/singlePaneDockedTabsCoordinator.ts Enables and restores Changes for workspace drafts.
src/vs/sessions/contrib/changes/test/browser/changesViewActions.test.ts Tests Changes view availability before creation.
src/vs/sessions/contrib/changes/browser/changes.contribution.ts Removes the created-session visibility gate.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

editors.length !== 1 ||
!(editors[0] instanceof EmptyFileEditorInput)
) {
if (!editors.every(editor => editor instanceof EmptyFileEditorInput || isChangesEditorInput(editor, this._sessionChangesService))) {
Comment thread src/vs/sessions/SINGLE_PANE_SCENARIOS.md
@sandy081
Sandeep Somavarapu (sandy081) merged commit 6e3879c into release/1.135 Aug 24, 2026
28 checks passed
@sandy081
Sandeep Somavarapu (sandy081) deleted the cherry-pick/332365 branch August 24, 2026 17:35
@vs-code-engineering vs-code-engineering Bot added this to the 1.135.0 milestone Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick-artifact Auto-generated cherry-pick PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants