Repository navigation
nes: feat: migrate allowImportChanges into model configuration - #321755
Merged
Ulugbek Abdullaev (ulugbekna) merged 2 commits intoJun 17, 2026
Merged
Conversation
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
Contributor
There was a problem hiding this comment.
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?: ImportChangestoModelConfiguration, validate it viaMODEL_CONFIGURATION_VALIDATOR, and set strategy defaults for patch-based strategies. - Remove the
InlineEditsAllowImportChangesexperiment-based configuration key and stop reading it fromXtabProvider. - Plumb
allowImportChangesthrough 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
Kyle Cutler (kycutler)
approved these changes
Jun 17, 2026
auto-merge was automatically disabled
June 17, 2026 15:14
Pull request was closed
Ulugbek Abdullaev (ulugbekna)
enabled auto-merge (squash)
June 17, 2026 15:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.