Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update chat's newEditSession command to take an input prompt #241796

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cmbrose
Copy link
Contributor

@cmbrose cmbrose commented Feb 25, 2025

For standard chat, there is a workbench.action.chat.sendToNewChat command which takes an input value and automatically submits the value.

However, that command doesn't exist for edit sessions. There is, however, already the workbench.action.chat.newEditSession command which will create a new, empty edit session. This PR extends that command to take 2 new optional arguments:

  • agentMode - boolean to start the new session in agent mode or not
  • inputValue - the prompt text to write and then submit

There were a lot of similar commands that I looked at for this PR, as well as just making a new command to only accept input text. I ended up going this route because the newEditSession logic already had support for warning when overwriting an in-progress session and similar logic that would otherwise need to be duplicated.

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.

2 participants