Open delphinemlcarlson opened 5 months ago
@hbons this is the Github issue related to our questions. Could you please also forward this issue to relevant team mates who may have the answers?
@jrieken do you know more about this?
There is two cases
the 2nd case isn't very nice and need some polish
Steps to Reproduce:
First UI
In a file code.ts, open the inline chat and call /tests.![Screenshot 2024-02-05 at 15 37 26](https://github.com/microsoft/vscode/assets/118260292/a2e52fc7-8f6e-4834-8ceb-a7e9d34a2f44)
After the test is generated, a preview of the new file is shown under the inline chat.![Screenshot 2024-02-05 at 15 37 39](https://github.com/microsoft/vscode/assets/118260292/a664fff7-9a9d-47e1-9f3e-743672e5e087)
When I hit the "Create" button, it will create a new test file code.test.ts for my file with the suggested test.![Screenshot 2024-02-05 at 15 40 42](https://github.com/microsoft/vscode/assets/118260292/656eafac-2e52-4901-863b-49f14b3a189e)
Second UI
In a file code.ts, open the inline chat and call /tests. Note that a code.test.ts exists already.![Screenshot 2024-02-05 at 15 42 57](https://github.com/microsoft/vscode/assets/118260292/f80ab194-692a-4b31-a172-5489a2775255)
After the test is generated, a preview of the suggested test is shown in a Refactor Preview panel and I can Accept or Discard (buttons hard to see in screenshot, they are at the bottom left)
Questions
It looks like the inline chat UI is used for creating a new file with suggested tests and the refactor preview UI is used for adding suggested tests to an existing test file.
Some thoughts about why using one over the other: