Skip to content

Agents: share keybindings, prompts and mcp from VS Code app#312083

Merged
sandy081 merged 2 commits intomainfrom
sandy081/spare-clownfish
Apr 23, 2026
Merged

Agents: share keybindings, prompts and mcp from VS Code app#312083
sandy081 merged 2 commits intomainfrom
sandy081/spare-clownfish

Conversation

@sandy081
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 23, 2026 05:15
@sandy081 sandy081 enabled auto-merge (squash) April 23, 2026 05:15
@sandy081 sandy081 self-assigned this Apr 23, 2026
Copy link
Copy Markdown
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

This PR enables the embedded Agents app to reuse selected user/profile resources from the host VS Code app so that keybindings, prompts, and MCP configuration are shared instead of duplicated.

Changes:

  • Made UserDataProfilesService.createDefaultProfile() extensible (protected) and overrode it in the electron-main implementation to point keybindings/prompts/MCP to the host VS Code User/ directory when embedded.
  • Introduced hostUserRoamingDataHome on the environment service and used it to locate host VS Code roaming data.
  • Updated StorageMainService (and its tests) to use hostUserRoamingDataHome for host application DB fallback, removing the IProductService dependency.
Show a summary per file
File Description
src/vs/platform/userDataProfile/electron-main/userDataProfile.ts Overrides default profile resources to read keybindings/prompts/MCP from the host VS Code user data when embedded.
src/vs/platform/userDataProfile/common/userDataProfile.ts Makes createDefaultProfile() protected to allow native/electron-main customization.
src/vs/platform/storage/electron-main/storageMainService.ts Switches host fallback DB path discovery to hostUserRoamingDataHome and removes IProductService injection.
src/vs/platform/storage/test/electron-main/storageMainService.test.ts Updates tests for the StorageMainService constructor signature change.
src/vs/platform/environment/node/environmentService.ts Implements hostUserRoamingDataHome for embedded app scenarios.
src/vs/platform/environment/common/environment.ts Adds hostUserRoamingDataHome to the environment service interface.

Copilot's findings

  • Files reviewed: 6/6 changed files
  • Comments generated: 3

Comment thread src/vs/platform/environment/node/environmentService.ts
Comment thread src/vs/platform/userDataProfile/electron-main/userDataProfile.ts
Comment thread src/vs/platform/environment/common/environment.ts
TylerLeonhardt
TylerLeonhardt previously approved these changes Apr 23, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 93250509 Current: f9b066cf

Changed (1)

editor/inlineCompletions/other/JumpToHint/Dark
Before After
before after

@sandy081 sandy081 merged commit f8d0750 into main Apr 23, 2026
26 checks passed
@sandy081 sandy081 deleted the sandy081/spare-clownfish branch April 23, 2026 08:26
@vs-code-engineering vs-code-engineering Bot added this to the 1.118.0 milestone Apr 23, 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.

4 participants