Smoother main discovery when no mainClass
is given.
#2491
Labels
affects clients
Use this if you are adding a new setting or making a change that will affect clients.
debug
DAP debug related tickets
improvement
Not a bug or a feature, but something general we can improve
Milestone
Feature request and way to do it
Currently there is some manual work required to run a main class even if there is only one in your application, and your client doesn't have code lenses. We also handle the situation where we give a
mainClass
, but not thebuildTarget
. I'd like to be able to just give abuildTarget
for example and have it also work. Even more so, I'd like to just give it nothing, and if there is only one main, it runs it for example, or if there are multiple then I'd like the server to show me and let me choose.We can handle both of these already. I've been poking around and we already pretty much have the logic to do all this, but it all needs to be glued together. I've started to work on this already since I'd like to have a smoother experience for clients that may not have code lenses or don't want to use code lenses, but still don't want to manually have to enter the values. I also need this in
nvim-metals
for integration withnvim-dap
😬 .The same concept should also be able to be applied to testing.
Sorry for breaking our own rules and creating a feature request here, but I'm already working on it...
Search terms:
running and debugging without code lens
The text was updated successfully, but these errors were encountered: