vscode-java-debug icon indicating copy to clipboard operation
vscode-java-debug copied to clipboard

Filter out run and debug contextual menu when the file doesn't contain a Main

Open apupier opened this issue 4 years ago • 2 comments

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
  1. create a java file which does not contain a Main class
  2. right-click on it

[attach a sample project reproducing the error] attach logs

Current Result
Expected Result
Additional Informations

apupier avatar Jan 19 '21 15:01 apupier