vscode-java-debug
vscode-java-debug copied to clipboard
Filter out run and debug contextual menu when the file doesn't contain a Main
Run and debug contextual menu are available on files that cannot be run or debug. it would be better to not provide the menu. it will allow having a lighter contextual menu, do nto give false hope to end-users and avoid an error notifications when clicking on it
Environment
- Operating System:
- JDK version:
- Visual Studio Code version:
- Java extension version:
- Java Debugger extension version:
Steps To Reproduce
- create a java file which does not contain a Main class
- right-click on it
[attach a sample project reproducing the error] attach logs