Skip to content

Revert PR #1527: remove one-time defaultEnvManager User-settings migration#1612

Draft
Copilot wants to merge 1 commit into
mainfrom
copilot/reverse-mitigation-1527
Draft

Revert PR #1527: remove one-time defaultEnvManager User-settings migration#1612
Copilot wants to merge 1 commit into
mainfrom
copilot/reverse-mitigation-1527

Conversation

Copilot AI commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Reverses #1527, the activation-time migration that cleared python-envs.defaultEnvManager: ms-python.python:system from User settings.

Changes

  • src/extension.ts — drop the migrateGlobalDefaultEnvManagerSetting import and its awaited call in activate().
  • src/features/settings/settingHelpers.ts — delete migrateGlobalDefaultEnvManagerSetting, the userScopeHasValue helper, MIGRATION_KEY, and the imports that become unused (SYSTEM_MANAGER_ID, getGlobalPersistentState, EventNames, sendTelemetryEvent).
  • src/common/telemetry/constants.ts — remove the MIGRATION_SYSTEM_ENV_MANAGER enum entry and its GDPR/property mapping.
  • src/test/features/settings/settingHelpers.unit.test.ts — remove the migration test suite plus the persistentState/sender test imports, and restore the original setEnvironmentManager - Global Settings suite split that one time mitigation of unintentional setting saved to user settings #1527 collapsed.

Net: +5 / −349 across 4 files, mirroring #1527's original additions. The persistent-state flag globalSettingsMigration.systemEnvManagerRemoved is intentionally not cleaned up — it's a one-time boolean and harmless to leave behind on users who already ran the migration.

Copilot AI changed the title Revert PR #1527: remove one-time defaultEnvManager User-settings migration Revert PR #1527: remove one-time defaultEnvManager User-settings migration Jun 25, 2026
Copilot AI requested a review from eleanorjboyd June 25, 2026 02:46
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