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

Merged
merged 4 commits into from
Feb 27, 2025

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.

@roblourens roblourens enabled auto-merge (squash) February 27, 2025 06:26
@roblourens roblourens added this to the February 2025 milestone Feb 27, 2025
@roblourens roblourens merged commit e319464 into microsoft:main Feb 27, 2025
40 checks passed
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