Skip to content

plugins: initial support for workspace plugins#300585

Merged
connor4312 merged 4 commits intomainfrom
connor4312/workspace-plugins-init
Mar 11, 2026
Merged

plugins: initial support for workspace plugins#300585
connor4312 merged 4 commits intomainfrom
connor4312/workspace-plugins-init

Conversation

@connor4312
Copy link
Member

  • reads .claude/settings(.local).json and the Copilot equivalent
  • currently this enables the extraMarketplaces and marks the extensions as 'recommended'. Users get a prompt on the first chat message and can find the extensions under @agentPlugins @recommended

todo: unify the enablement/disablement.

- reads .claude/settings(.local).json and the Copilot equivalent
- currently this enables the `extraMarketplaces` and marks the
  extensions as 'recommended'. Users get a prompt on the first chat
  message and can find the extensions under `@agentPlugins @recommended`

todo: unify the enablement/disablement.
Copilot AI review requested due to automatic review settings March 10, 2026 23:14
@connor4312 connor4312 enabled auto-merge (squash) March 10, 2026 23:14
@connor4312 connor4312 self-assigned this Mar 10, 2026
@vs-code-engineering vs-code-engineering bot added this to the 1.112.0 milestone Mar 10, 2026
Copy link
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 initial workspace-scoped “agent plugin” marketplace configuration and recommendations by reading Claude/Copilot workspace settings files, and wiring those recommendations into the plugin marketplace service and UI.

Changes:

  • Introduce WorkspacePluginSettingsService to parse/merge extraKnownMarketplaces and enabledPlugins from .claude/settings(.local).json and .github/copilot/settings(.local).json.
  • Extend PluginMarketplaceService to merge workspace-defined marketplaces (trusted-workspace only) and expose recommendedPlugins.
  • Add UI: first-chat prompt to surface recommended plugins and support @agentPlugins @recommended filtering.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
src/vs/workbench/contrib/chat/test/common/plugins/pluginMarketplaceService.test.ts Stubs new workspace settings + trust dependencies for marketplace tests.
src/vs/workbench/contrib/chat/common/plugins/workspacePluginSettingsService.ts New service to watch/read workspace settings files and expose observables.
src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.ts Merges workspace marketplaces into fetch; exposes recommended plugin keys; adjusts caching behavior.
src/vs/workbench/contrib/chat/common/plugins/AGENTS_PLUGINS.md New architecture doc for agent plugins and marketplace.
src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.ts New contribution that prompts users about recommended plugins on first chat request.
src/vs/workbench/contrib/chat/browser/chat.contribution.ts Registers the new contribution + workspace settings service singleton.
src/vs/workbench/contrib/chat/browser/agentPluginsView.ts Adds @recommended query support for installed + marketplace plugin lists.
Comments suppressed due to low confidence (1)

src/vs/workbench/contrib/chat/common/plugins/workspacePluginSettingsService.ts:211

  • Same race concern here: _readSettings is async but started without awaiting from autorun, so it can overlap with subsequent reads (e.g., from file change events or workspace folder changes). Serializing/coalescing reads would make the observable updates deterministic.

			this._readSettings(dirs, logPrefix, fileService);
		}));

You can also share your feedback on Copilot code review. Take the survey.

roblourens
roblourens previously approved these changes Mar 11, 2026
@connor4312 connor4312 merged commit 2ecee7e into main Mar 11, 2026
19 checks passed
@connor4312 connor4312 deleted the connor4312/workspace-plugins-init branch March 11, 2026 06:04
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