Repository navigation
chat: Enforce per-marketplace plugin auto-updates - #327844
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds enterprise-managed, per-marketplace plugin auto-update overrides and targets automatic updates to eligible marketplaces.
Changes:
- Preserves
autoUpdatethrough managed-settings normalization and marketplace parsing. - Tracks and updates marketplaces individually while enforcing global and strict policies.
- Adds focused coverage and updates policy documentation.
Show a summary per file
| File | Description |
|---|---|
.github/skills/add-policy/github-managed-settings.md |
Documents the managed override. |
src/vs/base/common/managedSettings.ts |
Encodes marketplace update policy. |
src/vs/platform/policy/common/copilotManagedSettings.ts |
Normalizes managed autoUpdate. |
src/vs/platform/policy/test/common/fileManagedSettingsService.test.ts |
Tests policy normalization. |
src/vs/workbench/contrib/chat/browser/chat.shared.contribution.ts |
Extends policy configuration schema. |
src/vs/workbench/contrib/chat/browser/pluginAutoUpdate.ts |
Dispatches targeted automatic updates. |
src/vs/workbench/contrib/chat/browser/pluginInstallService.ts |
Filters and validates bulk updates. |
src/vs/workbench/contrib/chat/common/plugins/AGENTS_PLUGINS.md |
Documents update behavior. |
src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.ts |
Carries per-marketplace overrides. |
src/vs/workbench/contrib/chat/common/plugins/pluginInstallService.ts |
Extends bulk-update options. |
src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.ts |
Detects eligible marketplace updates. |
src/vs/workbench/contrib/chat/test/browser/plugins/pluginAutoUpdate.test.ts |
Tests targeted dispatch. |
src/vs/workbench/contrib/chat/test/browser/plugins/pluginInstallService.test.ts |
Tests update filtering. |
src/vs/workbench/contrib/chat/test/common/plugins/pluginMarketplaceService.test.ts |
Tests policy resolution and identity. |
Review details
- Files reviewed: 14/14 changed files
- Comments generated: 4
- Review effort level: Medium
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
joshspicer
force-pushed
the
agents/vscode-issue-8462-implementation
branch
from
July 31, 2026 22:50
6bdf50e to
d9e1336
Compare
Contributor
|
Base:
|
joshspicer
marked this pull request as ready for review
July 31, 2026 23:16
Co-authored-by: Copilot <[email protected]>
joshspicer
force-pushed
the
agents/vscode-issue-8462-implementation
branch
from
July 31, 2026 23:21
d9e1336 to
0d3b0b3
Compare
Dmitriy Vasyura (dmitrivMS)
approved these changes
Jul 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes microsoft/vscode-internalbacklog#8462
Summary
Enterprise-managed plugin marketplaces can now specify
autoUpdateindependently of the user-controlledextensions.autoUpdatesetting.This change:
extraKnownMarketplaces.<name>.autoUpdatethrough managed-settings normalization; entries without an override retain the legacy source string, while explicit overrides use a JSON-encoded string so the managed setting remains compatible with the inline Settings object rendererIMarketplaceReferenceand resolves it by canonical marketplace ID, so equivalent GitHub shorthand and URL forms share one policyhasUpdatesAvailableboolean with the canonical IDs of marketplaces that actually have updatesstrictKnownMarketplacesin both bulk and direct/manual plugin update pathsPrecedence
For each marketplace:
autoUpdate: trueorfalsewins.autoUpdateis undefined, the marketplace inheritsextensions.autoUpdate.strictKnownMarketplacesis enforced before every refresh and update entry point.Tests
Added coverage for managed-setting normalization, explicit true/false values, undefined inheritance, canonical-ID matching, duplicate user/managed entries, mixed targeted marketplaces, global auto-update disabled, updates arriving concurrently, direct and bulk strict-policy blocking, and malformed policy entries.
Validated with:
npm run compile-clientnpm run valid-layers-checknpm run precommit