Skip to content

fix support for inline eval#286552

Merged
jrieken merged 2 commits intomainfrom
joh/aggregate-anaconda
Jan 8, 2026
Merged

fix support for inline eval#286552
jrieken merged 2 commits intomainfrom
joh/aggregate-anaconda

Conversation

@jrieken
Copy link
Copy Markdown
Member

@jrieken jrieken commented Jan 8, 2026

No description provided.

Copilot AI review requested due to automatic review settings January 8, 2026 15:17
@jrieken jrieken enabled auto-merge (squash) January 8, 2026 15:17
@jrieken jrieken self-assigned this Jan 8, 2026
@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 8, 2026
bpasero
bpasero previously approved these changes Jan 8, 2026
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

This PR renames the blockOnResponse property to resolveOnResponse and changes the behavior of the inline chat run() method. The property now controls whether to wait for the full session lifecycle (accept/reject) or just for the file modification to complete.

Key changes:

  • Renamed blockOnResponse to resolveOnResponse in InlineChatRunOptions
  • Modified the run() method to support two wait strategies based on resolveOnResponse
  • Changed StartSessionAction to always await the run() call instead of conditionally

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/vs/workbench/contrib/inlineChat/browser/inlineChatController.ts Renamed blockOnResponse to resolveOnResponse, added conditional logic to wait for either session disposal or file modification based on the flag value
src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.ts Simplified to always await the run() call, removing the conditional await based on blockOnResponse
Comments suppressed due to low confidence (2)

src/vs/workbench/contrib/inlineChat/browser/inlineChatController.ts:68

  • The renamed property resolveOnResponse has confusing semantics. When resolveOnResponse is false (the default), the function waits for the session to be accepted or rejected (longer wait). When it's true, it resolves earlier when the file is modified. This is counterintuitive - the name suggests it should resolve on response, but that's actually what happens when it's set to true, not the default behavior. Consider renaming to resolveEarly or resolveOnModified to better reflect its purpose, or inverting the logic to make the default match the name.
	resolveOnResponse?: boolean;

src/vs/workbench/contrib/inlineChat/browser/inlineChatController.ts:68

  • Missing documentation comment for the resolveOnResponse property. This property controls important behavior (whether to wait for session disposal or just file modification), and should have a JSDoc comment explaining when to use true vs false and what the implications are.
	resolveOnResponse?: boolean;

position?: IPosition;
modelSelector?: ILanguageModelChatSelector;
blockOnResponse?: boolean;
resolveOnResponse?: boolean;
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

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

The property has been renamed from blockOnResponse to resolveOnResponse, but this change is incomplete. The file src/vs/workbench/api/common/extHostApiCommands.ts still references blockOnResponse in lines 553, 567, and 577. These references must be updated to resolveOnResponse to maintain API consistency and prevent runtime errors when the API is invoked.

This issue also appears in the following locations of the same file:

  • line 68
  • line 68

Copilot uses AI. Check for mistakes.
Comment thread src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.ts
@jrieken jrieken merged commit 9d3ba96 into main Jan 8, 2026
22 checks passed
@jrieken jrieken deleted the joh/aggregate-anaconda branch January 8, 2026 16:11
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Feb 22, 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.

4 participants