In my case, my project was stored on my WSL (Linux subsystem), and VSC had just stopped opening the project "with WSL". Once I opened it with VSC's WSL extension, it worked fine again.