Skip to content

sessions: honor Agents window extension support overrides - #344242

Merged
Benjamin Christopher Simmonds (benibenj) merged 1 commit into
mainfrom
agents/create-a-fix-to-support-this-https-github
Oct 26, 2026
Merged

Benjamin Christopher Simmonds (benibenj) merged 1 commit into
mainfrom
agents/create-a-fix-to-support-this-https-github

Conversation

@benibenj

Copy link
Copy Markdown
Contributor

Fixes #341011

Changes

  • Honor explicit extensions.supportAgentsWindow overrides before the product allowlist, including "vue.volar": false.
  • Register the setting in the shared manifest-support module so editor and Agents windows both recognize it.
  • Clarify opt-in/opt-out behavior and the reload requirement in the setting description.
  • Cover allowlist defaults, case-insensitive overrides, automatic enablement, global disables, and unchanged editor-window behavior.

Validation

  • npm run build-fast -- --client-only ? passed.
  • .\scripts\test.bat --reporter dot --run src\vs\workbench\services\extensions\test\common\extensionManifestPropertiesService.test.ts --run src\vs\workbench\services\extensionManagement\test\browser\extensionEnablementService.test.ts ? passed, 185 tests.
  • npm run typecheck-client ? passed.
  • npm run eslint -- src\vs\workbench\services\extensions\common\extensionManifestPropertiesService.ts src\vs\workbench\contrib\extensions\browser\extensions.contribution.ts src\vs\workbench\services\extensions\test\common\extensionManifestPropertiesService.test.ts src\vs\workbench\services\extensionManagement\test\browser\extensionEnablementService.test.ts ? passed.
  • npm run valid-layers-check ? passed.
  • git diff --check ? passed.

The standard dependency restore hit missing ClangCL build tools in a build-only native addon. Root dependencies and build tools restored without native scripts supported the successful checks above. No dependency manifest or lockfile changes are included.

Manual testing

Set "extensions.supportAgentsWindow": { "vue.volar": false } with Vue installed and enabled, reload the Agents window, and verify that Vue stays disabled there but remains enabled in editor windows. Remove the override and reload to restore the product default. This live UI scenario was not run.

Honor explicit extensions.supportAgentsWindow overrides before the product allowlist, and register the setting in both window types.

Fixes #341011

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

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.

🟢 Approval recommended

The focused changes address both reported problems, preserve existing enablement constraints, and include targeted regression coverage.

No open issues 🎉

What changed in this PR

Fixes #341011 by honoring explicit extension-support overrides ahead of product defaults and making the setting available in both editor and Agents windows.

Changes:

  • Gives extensions.supportAgentsWindow overrides precedence over the product allowlist.
  • Moves setting registration into the shared manifest-support module and clarifies opt-in, opt-out, and reload behavior.
  • Adds regression coverage for overrides, allowlist defaults, global disables, and unchanged editor-window behavior.

No blocking issues were identified. The live UI scenario remains untested; the PR reports successful targeted tests and static checks.

File Description
src/​vs/​workbench/​services/​extensions/​test/​common/​extensionManifestPropertiesService.test.ts Tests shared registration and override precedence.
src/​vs/​workbench/​services/​extensions/​common/​extensionManifestPropertiesService.ts Prioritizes overrides and registers the setting centrally.
src/​vs/​workbench/​services/​extensionManagement/​test/​browser/​extensionEnablementService.test.ts Tests opt-out behavior across window and management modes.
src/​vs/​workbench/​contrib/​extensions/​browser/​extensions.contribution.ts Removes the editor-only setting registration.

Review effort: Balanced

@benibenj
Benjamin Christopher Simmonds (benibenj) merged commit 2a7037f into main Oct 26, 2026
47 checks passed
@benibenj
Benjamin Christopher Simmonds (benibenj) deleted the agents/create-a-fix-to-support-this-https-github branch October 26, 2026 10:35
@vs-code-engineering vs-code-engineering Bot added this to the 1.145.0 milestone Oct 26, 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.

Agents window: extensions.supportAgentsWindow cannot opt out extensions listed in sessionsWindowAllowedExtensions

3 participants