Consider recommendation to install JBang
If a user has only opened a single Java file (no workspace folder), or a workspace folder with just a single Java file, it might make sense to recommend https://www.jbang.dev/ (https://marketplace.visualstudio.com/items?itemName=jbangdev.jbang-vscode).
This isn't about detecting a valid JBang file, but more about recommending they look into it's usage if they appear to be using Java to write a script.
@fbricon @maxandersen , any value in this ? Should be pretty straightforward to do.
It's not the only usecase for jbang but I'll take it :)
single Java file (no workspace folder)
that's not supported by jbang-vscode. Other use case yes.
Now I feel ambivalent about that recommendation. As much as I love JBang and jbang-vscode:
- There are lots of cases when JBang is unneeded/unwanted.
- jbang-vscode is basically a 1-man project, unsupported by Red Hat.
I think your suggestion was actually useful. Implemented it.