Skip to content

nes: feat: migrate allowImportChanges into model configuration - #321755

Merged
Ulugbek Abdullaev (ulugbekna) merged 2 commits into
mainfrom
ulugbekna/misleading-whippet
Jun 17, 2026
Merged

Ulugbek Abdullaev (ulugbekna) merged 2 commits into
mainfrom
ulugbekna/misleading-whippet

Conversation

@ulugbekna

Copy link
Copy Markdown
Contributor

No description provided.

Move the team-internal, experiment-based `chat.advanced.inlineEdits.allowImportChanges`
setting onto `ModelConfiguration` as an optional `allowImportChanges` field so the value
travels with the selected model config (fetched / exp-config / local / hard-coded).

XtabProvider.filterEdit now takes the value from `modelServiceConfig.allowImportChanges`
(undefined treated as None, preserving prior default) instead of reading the standalone
setting, which is removed.

Co-authored-by: Copilot <[email protected]>
…ineNumbers should hardcode allowImportChanges

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.

Pull request overview

This PR migrates the inline-edits “allow import-only edits” control from an experiment-based configuration key into the Xtab model configuration, so the behavior can be selected per model config (and validated) and then applied consistently during edit filtering.

Changes:

  • Add allowImportChanges?: ImportChanges to ModelConfiguration, validate it via MODEL_CONFIGURATION_VALIDATOR, and set strategy defaults for patch-based strategies.
  • Remove the InlineEditsAllowImportChanges experiment-based configuration key and stop reading it from XtabProvider.
  • Plumb allowImportChanges through the Xtab provider edit-filtering path and add unit/integration test coverage.
Show a summary per file
File Description
extensions/copilot/src/platform/inlineEdits/test/common/xtabPromptOptions.spec.ts Adds tests ensuring allowImportChanges survives strategy application and is accepted/rejected by the model configuration validator.
extensions/copilot/src/platform/inlineEdits/common/dataTypes/xtabPromptOptions.ts Introduces allowImportChanges on ModelConfiguration, wires it into per-strategy config overrides, and validates it in MODEL_CONFIGURATION_VALIDATOR.
extensions/copilot/src/platform/configuration/common/configurationService.ts Removes the experiment-based setting key for allowImportChanges now that it lives in model configuration.
extensions/copilot/src/extension/xtab/test/node/xtabProvider.spec.ts Adds an integration test verifying import-only edits can pass through when allowImportChanges is enabled in the selected model config.
extensions/copilot/src/extension/xtab/node/xtabProvider.ts Switches import-edit filtering to use modelServiceConfig.allowImportChanges (defaulting to None) instead of reading from configuration service.

Copilot's findings

  • Files reviewed: 5/5 changed files
  • Comments generated: 0

auto-merge was automatically disabled June 17, 2026 15:14

Pull request was closed

@ulugbekna
Ulugbek Abdullaev (ulugbekna) merged commit 68ea295 into main Jun 17, 2026
39 of 48 checks passed
@ulugbekna
Ulugbek Abdullaev (ulugbekna) deleted the ulugbekna/misleading-whippet branch June 17, 2026 15:44
@vs-code-engineering vs-code-engineering Bot added this to the 1.126.0 milestone Jun 17, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Aug 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants