-
Notifications
You must be signed in to change notification settings - Fork 8
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
Slow to discover tests #52
Comments
An extension profile would be useful: https://github.com/microsoft/vscode/wiki/Performance-Issues#profile-the-running-extensions |
I don't see anything in the profile: CPU-20240823T110900.217Z.cpuprofile.txt ![]() To illustrate my problem, see this screen recording: Screen.Recording.2024-08-23.at.12.08.07.2.mov |
Nothing much interesting there. This extension uses the VS Code VS Code implements this by shelling out to ripgrep under the hood, and occasionally software like antivirus and endpoint protection can make that run unusually slow |
Thanks for the reply. I'm not seeing slowness anywhere else. I also don't have any antivirus or endpoint protection running on my system. It could be helpful to log which patterns about being passed into |
Yea, I can also add some logging there if I see it's taking a while. Since I don't see AST parsing taking any time in your profile (the next step after finding files before publishing them to vs code) it's my assumption that that's being slow. |
I'm curious if you see any difference with version 1.6.2 which uses the TS Language Features to do the parsing. |
Thanks for the update. I just tested it and unfortunately it seems the same. My CPU goes to 100% for about 6/7 seconds due to multiple Let me know if there's anything else I can provide.
I still think this would be useful. |
Hi! Firstly, thank you for this extension. ❤️
I have just enabled this extension for my large work project and I've noticed that it takes quite a long time to discover tests, even when I'm using
nodejs-testing.include
to narrow the scope to a smaller folder.Can you recommend a method for me to debug why this is taking so long? Perhaps the extension is running a command to discover test files. Is there a way to see the generated command?
Thanks!
The text was updated successfully, but these errors were encountered: