Skip to content

Open a single chat editor for the right contribution#279449

Merged
DonJayamanne merged 1 commit intomainfrom
don/mixed-wren
Nov 25, 2025
Merged

Open a single chat editor for the right contribution#279449
DonJayamanne merged 1 commit intomainfrom
don/mixed-wren

Conversation

@DonJayamanne
Copy link
Contributor

@DonJayamanne DonJayamanne commented Nov 25, 2025

Fixes #279446

@joshspicer /cc

Copilot AI review requested due to automatic review settings November 25, 2025 20:44
@DonJayamanne DonJayamanne self-assigned this Nov 25, 2025
@DonJayamanne DonJayamanne marked this pull request as ready for review November 25, 2025 20:50
@vs-code-engineering vs-code-engineering bot added this to the November 2025 milestone Nov 25, 2025
Copy link
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 addresses issue #279446 by refactoring how remote agent jobs are created from the editor. Instead of manually creating a chat session and sending a request, the code now leverages the existing command infrastructure to open a new chat session editor for the appropriate contribution type, with the prompt and attached context passed as parameters.

Key Changes

  • Modified the OpenNewChatSessionEditorAction to accept optional chatOptions parameter containing a prompt and attached context
  • Refactored CreateRemoteAgentJobFromEditorAction to use commandService.executeCommand instead of manually orchestrating session creation and request sending
  • This change ensures a single chat editor is opened for the right contribution type with the proper context

Reviewed changes

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

File Description
src/vs/workbench/contrib/chat/browser/chatSessions.contribution.ts Extended the OpenNewChatSessionEditorAction.run method to accept optional chat options (prompt and attachedContext) and send a request if provided
src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.ts Refactored CreateRemoteAgentJobFromEditorAction to use command service instead of manually creating sessions, eliminating duplicate code and unused variables

@DonJayamanne DonJayamanne enabled auto-merge (squash) November 25, 2025 21:10
@DonJayamanne DonJayamanne merged commit 5191ea5 into main Nov 25, 2025
33 of 34 checks passed
@DonJayamanne DonJayamanne deleted the don/mixed-wren branch November 25, 2025 21:15
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Jan 9, 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.

Continue in option for prompt files opens two chat editors

3 participants