Skip to content

Agents - add support for session working sets#310225

Merged
lszomoru merged 2 commits intomainfrom
lszomoru/expensive-crocodile
Apr 15, 2026
Merged

Agents - add support for session working sets#310225
lszomoru merged 2 commits intomainfrom
lszomoru/expensive-crocodile

Conversation

@lszomoru
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 15, 2026 21:21
@lszomoru lszomoru enabled auto-merge (squash) April 15, 2026 21:21
@lszomoru lszomoru self-assigned this Apr 15, 2026
dileepyavan
dileepyavan previously approved these changes Apr 15, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 15, 2026

Screenshot Changes

Base: 3c1b53dd Current: 0252f5d1

Changed (2)

editor/inlineCompletions/other/JumpToHint/Dark
Before After
before after
agentSessionsViewer/NeedsInput/Light
Before After
before after

blocks-ci screenshots changed

Replace the contents of test/componentFixtures/blocks-ci-screenshots.md with:

Updated blocks-ci-screenshots.md
<!-- auto-generated by CI — do not edit manually -->

#### editor/codeEditor/CodeEditor/Dark
![screenshot](https://hediet-screenshots.azurewebsites.net/images/cb32a3e854b5734fe5aaca2318f2e0a42ee821b05ea97883ea42c5ba95edb3c3)

#### editor/codeEditor/CodeEditor/Light
![screenshot](https://hediet-screenshots.azurewebsites.net/images/42624fbba5e0db7f32c224b5eb9c5dd3b08245697ae2e7d2a88be0d7c287129b)

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a Sessions-window workbench contribution that tracks editor “working sets” per session, aiming to restore editor state when switching between sessions in the Agents (sessions) app.

Changes:

  • Import and register a new sessions contribution for working sets in the Sessions app entrypoint.
  • Add SessionWorkingSetController to save/apply IEditorWorkingSet keyed by session resource.
  • Register the controller as a workbench contribution (WorkbenchPhase.AfterRestored).
Show a summary per file
File Description
src/vs/sessions/sessions.common.main.ts Wires the new working set contribution into the Sessions app startup.
src/vs/sessions/contrib/workingSet/browser/workingSet.ts Implements the session working set save/apply controller.
src/vs/sessions/contrib/workingSet/browser/workingSet.contribution.ts Registers the controller as a workbench contribution.

Copilot's findings

  • Files reviewed: 3/3 changed files
  • Comments generated: 2

Comment thread src/vs/sessions/contrib/workingSet/browser/workingSet.ts
Comment thread src/vs/sessions/contrib/workingSet/browser/workingSet.ts
@lszomoru lszomoru merged commit 1c728e8 into main Apr 15, 2026
39 of 41 checks passed
@lszomoru lszomoru deleted the lszomoru/expensive-crocodile branch April 15, 2026 22:08
@vs-code-engineering vs-code-engineering Bot added this to the 1.117.0 milestone Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants