hardhat-vscode: Extension becomes unusably slow for bigger projects
I’ve noticed a few times that when working in bigger projects, the plugin would just be too slow and not respond. I’m currently working on a personal project of mine, and just recently it suddenly got very slow. After writing a few more tests, the plugin stopped working completely, most notably, because I could not run the formatter anymore. I’m using forge as a formatter and can run forge fmt in the console without a problem. Changing the formatter also did not help. I was able to use it again after deleting the extension and some lines of code, but it quickly broke down again. If I can trigger this consistently, I’ll share the repo.
My specs are: Mac M2 Max 96GB
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 15 (6 by maintainers)
Brilliant, we will take a look. Reproduction repos make such a difference, thank you.
@kanej It seems to be working well so far. Thanks! Closing this issue.
It’s a bit hard for me to test, because this bug isn’t easily reproducible. Though I remember that after it was stuck, changing the formatter setting to “none” or “prettier” didn’t make a difference. I am still able to run
forge fmtthrough the console once it’s stuck.