Skip to content

Keep configuration retries on their original file - #347074

Merged
Dmitriy Vasyura (dmitrivMS) merged 1 commit into
microsoft:mainfrom
sameerihs:preserve-configuration-retry-destinations
Nov 12, 2026
Merged

Dmitriy Vasyura (dmitrivMS) merged 1 commit into
microsoft:mainfrom
sameerihs:preserve-configuration-retry-destinations

Conversation

@sameerihs

Copy link
Copy Markdown
Contributor

Fixes #347073

Queue configuration retries with the original operation so switching profiles cannot retarget Save and Retry to another file or JSON path. Reuse the existing write/error handling and fresh validation for settings and standalone configuration.

Two sequential regressions fail before the fix; both and the no-switch control pass afterward. All 243 selected tests pass with seven existing pending tests. Client typechecking and targeted ESLint pass. Tests use memory-backed profiles and await model cleanup.

Copilot AI balanced review requested due to automatic review settings November 9, 2026 17:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues were identified in the change that keeps Save and Retry bound to the original configuration file and JSON path.

No open issues 🎉

What changed in this PR

Fixes #347073 by keeping Save and Retry bound to the original configuration file and JSON path, even after switching profiles.

Changes:

  • Queues retries using the original edit operation while reusing existing validation and write/error handling.
  • Adds memory-backed regression tests for settings and standalone task configuration, plus a no-switch control and awaited model cleanup.
File Description
src/​vs/​workbench/​services/​configuration/​test/​browser/​configurationEditing.test.ts Adds profile-switch retry coverage and verifies settings drafts remain intact.
src/​vs/​workbench/​services/​configuration/​common/​configurationEditing.ts Reuses the original edit operation for settings and standalone configuration retries.

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues remain that require changes before approval.

No open issues 🎉

Review effort: Max

@dmitrivMS

Copy link
Copy Markdown
Collaborator

Sameer (@sameerihs) Thank you!

@dmitrivMS Dmitriy Vasyura (dmitrivMS) added the config VS Code configuration, settings label Nov 12, 2026
@dmitrivMS
Dmitriy Vasyura (dmitrivMS) merged commit 7e0d0e7 into microsoft:main Nov 12, 2026
52 checks passed
@vs-code-engineering vs-code-engineering Bot added this to the 1.147.0 milestone Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

config VS Code configuration, settings

5 participants