Skip to content

Conversation

@sandy081
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings January 26, 2026 10:53
@sandy081 sandy081 enabled auto-merge (squash) January 26, 2026 10:53
@sandy081 sandy081 self-assigned this Jan 26, 2026
@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 26, 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

This PR reorganizes the file system structure for user data profiles by moving system profiles into a dedicated builtin subfolder, separating them from user-created profiles. This change improves the organization of the profiles directory structure.

Changes:

  • Introduces a SYSTEM_PROFILES_HOME constant set to 'builtin' for consistent reference to the system profiles folder
  • Updates profile storage to use relative paths instead of just basenames, enabling nested folder structures
  • Modifies profile creation logic to place system profiles under builtin/<id> instead of <id>
  • Implements migration logic to identify and remove system profiles from old locations
  • Updates cleanup operations to exclude the builtin folder from automatic deletion

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/vs/platform/userDataProfile/common/userDataProfile.ts Adds SYSTEM_PROFILES_HOME constant, implements migration logic to remove old system profiles not under builtin/, updates profile creation to use nested paths for system profiles, excludes builtin folder from cleanup, and adds donotTrigger parameter to suppress events during migration
src/vs/platform/userDataProfile/node/userDataProfile.ts Changes storage format from basename to relative path to support nested folder structures like builtin/<id>

}

private updateProfiles(added: IUserDataProfile[], removed: IUserDataProfile[], updated: IUserDataProfile[]): void {
private updateProfiles(added: IUserDataProfile[], removed: IUserDataProfile[], updated: IUserDataProfile[], donotTrigger: boolean = false): void {
Copy link

Copilot AI Jan 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The parameter name 'donotTrigger' does not follow camelCase naming conventions. It should be 'doNotTrigger' with a capital 'N' to be consistent with naming patterns used throughout the VS Code codebase (such as 'doNotSuggest', 'doNotAskAgain', etc.).

Copilot uses AI. Check for mistakes.
@sandy081 sandy081 merged commit 197989b into main Jan 26, 2026
27 of 28 checks passed
@sandy081 sandy081 deleted the sandy081/unacceptable-buzzard branch January 26, 2026 11:12
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.

2 participants