Skip to content

Conversation

amunger
Copy link
Contributor

@amunger amunger commented Sep 29, 2025

https://github.com/microsoft/vscode-copilot-evaluation/issues/357

This would make the chat look more natural and would enable us to drop the additional intent.

The API changed as I was working through this though, so it is broken in its current state.

Also, hitting F5 to debug the replay file will currently cause an infinite loop - just use the replay command to test in this state.

const edits = Array.isArray(textEdit[1]) ? textEdit[1] : [textEdit[1]];
for (const textEdit of edits) {
try {
stream.textEdit(uri, textEdit);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

with this solution, I'm seeing that the stream passed to the ChatSessionProvider is not able to use streamed changes in the same way that a contributed intent can, I saw an edit happen once, but without any accept/reject UI, but mostly just ignores any edits that are given to the stream. Most likely by design, but would there be a way to enable that instead? @joshspicer @rebornix

It's also frequently failing to just open the file with the workspace service though, so maybe it's a different issue?

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.

1 participant