Skip to content

sessions: fix unified workspace picker setting references - #334677

Merged
Megan Rogge (meganrogge) merged 1 commit into
mainfrom
fix/unified-workspace-picker-setting
Sep 5, 2026
Merged

sessions: fix unified workspace picker setting references#334677
Megan Rogge (meganrogge) merged 1 commit into
mainfrom
fix/unified-workspace-picker-setting

Conversation

@meganrogge

Copy link
Copy Markdown
Collaborator

Summary

Fix the semantic merge conflict between #334554 and #334591 that left main referencing the removed ChatConfiguration.ConsolidatedRemoteWorkspaces enum member.

The legacy setting migration already copies explicitly configured values to UNIFIED_WORKSPACE_PICKER_SETTING, so the provider and its tests should read and write the new Sessions-owned key directly.

Validation

  • ESLint on the changed files
  • npm run transpile-client
  • ./scripts/test.sh --run src/vs/sessions/contrib/providers/copilotChatSessions/test/browser/copilotChatSessionsProvider.test.ts (88 passing)

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

Copilot-Session: 557c3448-77ae-43aa-9ac8-785c2c42b9a7
Copilot AI balanced review requested due to automatic review settings September 5, 2026 00:40

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.

Copilot review overview

🟢 Approval recommended

All reviewed references consistently use the new setting key, with no unresolved issues.

Review tier: Balanced
Findings: None

What changed in this PR

Fixes stale references to the removed Chat-owned workspace picker setting.

Changes:

  • Reads the Sessions-owned workspace picker setting in the provider.
  • Updates provider tests to use the new setting key.
File Description
src/​vs/​sessions/​contrib/​providers/​copilotChatSessions/​test/​browser/​copilotChatSessionsProvider.test.ts Tests behavior using the migrated setting key.
src/​vs/​sessions/​contrib/​providers/​copilotChatSessions/​browser/​copilotChatSessionsProvider.ts Uses the unified workspace picker setting.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@meganrogge
Megan Rogge (meganrogge) merged commit d447138 into main Sep 5, 2026
41 checks passed
@meganrogge
Megan Rogge (meganrogge) deleted the fix/unified-workspace-picker-setting branch September 5, 2026 00:57
@vs-code-engineering vs-code-engineering Bot added this to the 1.137.0 milestone Sep 5, 2026
TylerLeonhardt added a commit that referenced this pull request Sep 5, 2026
Keep the upstream import placements after merging #334677, removing duplicate-identifier compilation errors from the provider and its tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

3 participants