Skip to content

If only 1 main class detected, proceed and start it directly #187

@fbricon

Description

@fbricon

When launching a main method from a standalone java class, the debugger asks me to select the 1 main class available, it should be smarter and go ahead directly

Environment
  • Operating System: macOS High Sierra
  • JDK version: 1.8
  • Visual Studio Code version: 1.19.0-insiders
  • Java extension version: 0.15.0
  • Java Debugger extension version: 0.4.0
Steps To Reproduce
  1. Open a standalone java file with a main method
public class Standalone {
	public static void main(String[] args) {
		System.out.println("Hello World!");
	}
}
  1. Press F5 to launch a Java environment
Current Result

Only the current main class is listed, user needs to select it to proceed
screen shot 2017-11-30 at 12 59 09 pm

Expected Result

Class selection should not be necessary, since there's no choice.
It's even more frustrating when you repeat running the class: you need to select Java, then the class name, every time.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions