问题
Till yesterday, VSCode was running fine, but after dart updated itself, VSCode has stopped recognizing my code as a language. When I type CTRL+F5, it pops up asking to select a compiler. The code runs fine, but it is not able to recognize it. Side note, it works in Android Studio. Updating the pubspec.yaml file just removes errors but the code is still not recognized.
Popup: https://i.stack.imgur.com/c2WZR.png
No syntax highlighting/nothing: https://i.stack.imgur.com/EmtiU.png
P.S: It recognizes the SDK though, and there are no errors when flutter doctor is run.
来源:https://stackoverflow.com/questions/63229817/vscode-not-able-to-recognize-the-code-flutter-dart