Bricked Wemos d1 mini,visual studio code

I think it would be easier if you just created a new project (see here) with the WeMos D1 mini Lite as board and copied the WiFiScan.ino into the new project’s src/ directory.