Skip to content

feat: enable shared safestorage on windows#311418

Merged
deepak1556 merged 2 commits intomainfrom
robo/enable_shared_encryption_key
Apr 21, 2026
Merged

feat: enable shared safestorage on windows#311418
deepak1556 merged 2 commits intomainfrom
robo/enable_shared_encryption_key

Conversation

@deepak1556
Copy link
Copy Markdown
Collaborator

For #308028

@deepak1556 deepak1556 added this to the 1.118.0 milestone Apr 20, 2026
@deepak1556 deepak1556 self-assigned this Apr 20, 2026
Copilot AI review requested due to automatic review settings April 20, 2026 17:45
@github-actions
Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 3aa6d1dc Current: a24d8e30

Changed (1)

chat/aiCustomizations/aiCustomizationManagementEditor/McpBrowseMode/Light
Before After
before after

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

Enables the embedded Agents app on Windows to reuse the host VS Code safeStorage encryption key (from the host app’s Local State) to support sharing authentication between apps, and bumps Electron to a version that includes the required API.

Changes:

  • Extracted and exported getDefaultUserDataPath() to compute platform default user data locations.
  • Added Windows-embedded initialization path in EncryptionMainService to call safeStorage.initWithExistingKey() using the host app’s Local State.
  • Updated Electron from 39.8.739.8.8 and refreshed related manifests/checksums.

Reviewed changes

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

Show a summary per file
File Description
src/vs/platform/environment/node/userDataPath.ts Refactors default user-data-path computation into exported getDefaultUserDataPath().
src/vs/platform/encryption/electron-main/encryptionMainService.ts Initializes safeStorage with the host app’s existing key for Windows embedded scenarios.
package.json Bumps Electron dependency to 39.8.8.
package-lock.json Updates lockfile entries for Electron 39.8.8.
cgmanifest.json Updates Electron component metadata to 39.8.8.
build/checksums/electron.txt Updates Electron artifact checksums for 39.8.8.
.npmrc Updates Electron build target/version and build id to 39.8.8.

Comment thread src/vs/platform/encryption/electron-main/encryptionMainService.ts
Comment thread src/vs/platform/encryption/electron-main/encryptionMainService.ts
@deepak1556 deepak1556 marked this pull request as ready for review April 21, 2026 01:35
@deepak1556 deepak1556 enabled auto-merge (squash) April 21, 2026 01:36
@deepak1556 deepak1556 merged commit a1d3ff1 into main Apr 21, 2026
26 checks passed
@deepak1556 deepak1556 deleted the robo/enable_shared_encryption_key branch April 21, 2026 03:42
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.

3 participants