Also spent hours for research restoring a working platform using ESP32 after my desaster of stupidly pressing the button following their recommendation ‘disable java for typescript’ etc. just what Cryptocacher remarked.
Neither v1.40.0 nor 1.40.1 are working, getting same issue “No tasks to run found…click on configure…”, no matter what you do: PlatformIO reinstall, VSCode reinstall, deletion of sources etc.
Solution/Workaround:
Reinstall VSCode Version 1.39.2.
Using Windows 7
Thanks drmarco! ))