Also see: microsoft/vscode-spring-boot-dashboard#152
Steps to repro:
- open a spring boot project.
- [important]open a .java file containing a main function, e.g. App.java, which is outside this workspace.
- close this .java file.
- in
launch.json, create a java launch config, keep projectName but remove mainClass field.
- Press F5, it searches for main class to run.
Current behavior
It pops up a list of main class, including App and the expected spring boot main class.

Expected behavior
Directly launch spring boot project's main class.
Culprit is probably that the App.java was added into the hidden default project.