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

Please bring back auto watch on startup setting #543

Open
4 tasks done
vkozio opened this issue Nov 23, 2024 · 5 comments
Open
4 tasks done

Please bring back auto watch on startup setting #543

vkozio opened this issue Nov 23, 2024 · 5 comments
Labels
p2-nice-to-have Not breaking anything but nice to have (priority)

Comments

@vkozio
Copy link

vkozio commented Nov 23, 2024

Describe the bug

Please bring back auto watch on startup setting.
It was implemented in 82222ab
but disappeared in https://github.com/vitest-dev/vscode/releases/tag/v0.5.0

Reproduction

not relevant

Output

not relevant

Version

1.8

Validations

@ffMathy
Copy link
Collaborator

ffMathy commented Dec 3, 2024

I would love this feature too.

@sheremet-va sheremet-va added p2-nice-to-have Not breaking anything but nice to have (priority) and removed pending triage labels Dec 9, 2024
@mltsy
Copy link

mltsy commented Feb 11, 2025

Aha! I was wondering where this went. Mainly I am used to having VSCode automatically run my tests when I save a test file (using vscode-jest), and I can't figure out how to do that with vitest, other than starting my own watcher terminal and switching to it manually - not a big deal, but it was nicer when vscode automatically started it and showed me the results.

@MilanKovacic
Copy link
Collaborator

@mltsy You can still do that with the vitest extension. Take a look at the continuous run option: https://github.com/vitest-dev/vscode?tab=readme-ov-file#in-the-testing-view

This issue is about automatically having that option turned on at startup.

@sheremet-va
Copy link
Member

If someone wants to contribute this, it should be possible to enable continues run with vscode commands: microsoft/vscode#210848 (comment)

@mltsy
Copy link

mltsy commented Feb 12, 2025

OH wow - that was news to me, thank you! Slightly different workflow, but it works great (and is actually less obtrusive because it doesn't steal focus from the terminal, but does show you the pass/fail in the editor gutter) 🙌 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2-nice-to-have Not breaking anything but nice to have (priority)
Projects
None yet
Development

No branches or pull requests

5 participants