Skip to content

inlineEdits: remove InlineEditsCheckEditWindowOnReuse config flag#311255

Merged
ulugbekna merged 1 commit intomainfrom
ulugbekna/agents/remove-inline-edits-check-config
Apr 19, 2026
Merged

inlineEdits: remove InlineEditsCheckEditWindowOnReuse config flag#311255
ulugbekna merged 1 commit intomainfrom
ulugbekna/agents/remove-inline-edits-check-config

Conversation

@ulugbekna
Copy link
Copy Markdown
Contributor

The edit window cursor check on request reuse is now always enabled, so the experiment-based config flag chat.advanced.inlineEdits.checkEditWindowOnReuse is no longer needed.

Changes

  • configurationService.ts: Remove InlineEditsCheckEditWindowOnReuse config definition
  • nesConfigs.ts: Remove isCheckEditWindowOnReuse field from INesConfigs interface
  • nextEditProvider.ts: Remove config read from determineNesConfigs and drop the isCheckEditWindowOnReuse guard in the cursorInRequestEditWindow predicate — the check is now unconditional
  • nextEditProviderSpeculative.spec.ts: Remove beforeEach that set the flag to true (no longer needed since behavior is always on)

The edit window cursor check on request reuse is now always enabled, so the experiment-based config flag is no longer needed. Remove the config definition, the INesConfigs field, and the guard in the cursorInRequestEditWindow predicate. Update the test to drop the beforeEach that set the flag to true.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 19, 2026 18:04
Copy link
Copy Markdown
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

Removes the experiment-based chat.advanced.inlineEdits.checkEditWindowOnReuse flag now that the “cursor in request edit window” check for request reuse is always enabled in the inline edits (NES) flow.

Changes:

  • Removed the InlineEditsCheckEditWindowOnReuse team-internal config key definition.
  • Dropped isCheckEditWindowOnReuse from INesConfigs and stopped reading it when building NES configs.
  • Made the edit-window cursor check unconditional when deciding whether an in-flight request can be reused, and simplified the related test setup.
Show a summary per file
File Description
extensions/copilot/src/platform/configuration/common/configurationService.ts Removes the experiment-based config key definition for the deprecated flag.
extensions/copilot/src/extension/inlineEdits/node/nesConfigs.ts Updates INesConfigs to remove the flag field.
extensions/copilot/src/extension/inlineEdits/node/nextEditProvider.ts Stops reading the flag and makes the edit-window cursor check unconditional for reuse logic.
extensions/copilot/src/extension/inlineEdits/test/node/nextEditProviderSpeculative.spec.ts Removes test setup that forced the flag on, since the behavior is now always enabled.

Copilot's findings

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

@github-actions
Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 84be8379 Current: 7caf5267

Changed (2)

agentSessionsViewer/CompletedUnread/Dark
Before After
before after
agentSessionsViewer/NeedsInput/Dark
Before After
before after

@ulugbekna ulugbekna merged commit ad7c759 into main Apr 19, 2026
30 checks passed
@ulugbekna ulugbekna deleted the ulugbekna/agents/remove-inline-edits-check-config branch April 19, 2026 19:32
@vs-code-engineering vs-code-engineering Bot added this to the 1.117.0 milestone Apr 19, 2026
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.

3 participants