Skip to content

chat: register Agents Window settings in editor - #335539

Merged
Megan Rogge (meganrogge) merged 4 commits into
mainfrom
agents/unknown-settings-debugging-1-138
Sep 10, 2026
Merged

chat: register Agents Window settings in editor#335539
Megan Rogge (meganrogge) merged 4 commits into
mainfrom
agents/unknown-settings-debugging-1-138

Conversation

@meganrogge

Copy link
Copy Markdown
Collaborator

Summary

  • register the unified workspace picker and merged-session cleanup settings from the shared workbench chat contribution
  • reuse the shared setting identifiers from the Agents Window contributions
  • add regression coverage that verifies the normal workbench contribution registers all three settings

This fixes the settings added by #334341 and #334554 appearing as unknown in the normal settings.json editor.

Validation

  • git diff --check
  • repository commit hooks
  • compile, targeted tests, and hygiene were not run locally because dependency restoration was blocked by the sandbox from writing /Users/meganrogge/Library/Caches/ms-playwright

Move the shared settings schemas into the workbench chat contribution so settings.json recognizes them in both the editor and Agents Window. Add regression coverage for the shared registration.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings September 10, 2026 19:30

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

🟡 Changes recommended

The registration relocation breaks the focused GitHub contribution test unless it explicitly imports the shared contribution.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review tier: Balanced
Findings: 1 High severity

New issues introduced by this change (1)
Severity Finding
High severity src/​vs/​sessions/​contrib/​github/​browser/​github.contribution.ts — Update the focused test after relocating registration
What changed in this PR

Registers Agents Window settings in the shared workbench contribution so they are recognized by the standard settings editor.

Changes:

  • Centralizes three setting identifiers and configuration metadata.
  • Reuses shared identifiers from Sessions contributions.
  • Adds registration regression coverage.
File Description
chatConfiguration.test.ts Tests shared registration.
constants.ts (workbench) Defines shared setting identifiers and tag.
chat.shared.contribution.ts Registers the three settings.
sessionLifecycleSettings.ts Reuses shared cleanup identifiers.
github.contribution.ts Removes duplicate cleanup registrations.
constants.ts (sessions chat) Reuses the unified picker identifier.
chat.contribution.ts Removes duplicate picker registration.

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

Comment thread src/vs/sessions/contrib/github/browser/github.contribution.ts
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Load the Agents Window setting schemas through a narrow contribution so focused and aggregate unit test runs do not re-register unrelated chat commands.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Capture registration state before configuration registry tests clear the shared global registry.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@meganrogge
Megan Rogge (meganrogge) merged commit ba78a2e into main Sep 10, 2026
33 checks passed
@meganrogge
Megan Rogge (meganrogge) deleted the agents/unknown-settings-debugging-1-138 branch September 10, 2026 21:45
@vs-code-engineering vs-code-engineering Bot added this to the 1.138.0 milestone Sep 10, 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.

5 participants