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

Consider recommendation to install JBang

Open rgrunber opened this issue 3 years ago • 4 comments

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.

rgrunber avatar May 24 '23 15:05 rgrunber

@fbricon @maxandersen , any value in this ? Should be pretty straightforward to do.

rgrunber avatar May 25 '23 19:05 rgrunber

It's not the only usecase for jbang but I'll take it :)

maxandersen avatar May 25 '23 19:05 maxandersen

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.

fbricon avatar May 25 '23 21:05 fbricon

I think your suggestion was actually useful. Implemented it.

burhanv14 avatar Nov 13 '26 17:11 burhanv14