Issue
i'm working on ubuntu with vs code with dart but while runing i get this error " Set the 'program' value in your launch config (eg 'bin/main.dart') then launch again " and i have add in lanuch.json
"program": "bin/main.dart",
and i get this error
Error when reading 'bin/main.dart': No such file or directory. i have installed dart using this steps https://dart.dev/get-dart
Solution
Flutter extension for VSCode does not support Virtual Workspace right now. That's why you are not able to use Virtual Workspace with flutter.
As soon as you open Virtual Workspace the Flutter extension get disabled
Screenshot of Flutter extension disabled in Virtual Workspace
Answered By - Usama Karim Answer Checked By - Mary Flores (WPSolving Volunteer)