vitest-dev / vscode

VS Code extension for Vitest
https://vitest.dev/vscode
MIT License
740 stars 83 forks source link

Add "Turn on continous run" option to the right click menu #451

Open Miodec opened 4 weeks ago

Miodec commented 4 weeks ago

Clear and concise description of the problem

I wish to be able to quickly enable continous run mode (watch mode) without having to open the test panel, search for the right test in the long list, and click on the eye icon.

I know i can click "reveal in test explorer", but a shortcut would be even nicer.

Suggested solution

I would love to just right click on the test run icon and click "run continously"

image image

Alternative

No response

Additional context

No response

Validations

sheremet-va commented 3 weeks ago

VSCode doesn't provide enough API to sync the test run request and the state of the "continues" run button in the test tree. I found some undocumented commands but they use private test item implementations that I don't have access to:

There are already issues in the vscode repo, I recommend you leave a comment there: https://github.com/microsoft/vscode/issues/188305 and here: https://github.com/microsoft/vscode/issues/210848