Open connor4312 opened 5 months ago
Because panel chat does not support diffs natively,
👀 I have something for you
For panel chat, the response stream supports to emit text edits and they get rendered with an embedded text editor
Adopted! Will leave this open for you in case you want to take this issue otherwise.
Lets turn this into "command button" should support enable when-condition, e.g when disabled it renders different and it is then up to extensions to set the context key properly
Would that lead to extensions leaking context keys if they have to have a different when-clause key for each response?
another request for this: https://github.com/microsoft/vscode-copilot/issues/8574
Because panel chat does not support diffs natively, I have a button to "Apply Changes" that applies the workspace edit when a model has changes to make.
However, after this is done, the button stays there and can be clicked again, which is likely to just lead to confusion since applying edits again will corrupt the file. It would be nice if there was a way in the API to make the button disabled and/or change text after the command it references has been executed.