-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify generated launch.json #476
Comments
@testforstephen Are there any plans to address this? Thanks a lot |
@isidorn Is there any strong reason to shorten the launch.json? Because we found the user will be pretty hard to discover the hiding launch options. Here is my thoughts about the removable options: |
@testforstephen thanks for the reply. Well it is a delicate belance of showing just enough such that it does not look too complex and is discoverable enough. Shorting the configuration makes it look and feel simpler for the user. As for the |
yes, |
@testforstephen aha ok. I only got the What do you think about the suggestion that |
@isidorn I like this suggestion. We can check whether the active file is a main class (having main method) or not. If so, then launching it directly, otherwise, searching all possible main classes in the workspace and use quickPick to prompt user to choose one.
What scenario is this for? No launch.json case? |
@testforstephen great, I like your suggestion for Oh so the no launch.json case seems to be covered quite well if you generate all corresponding launch configuraitons. I am just trying to give some suggestions on how to simplify this, in the end you know much better what would lead to a better Java debugging experience. So let me know if there is something on the vscode side which we could do to improve this |
I am just a beginner here but the auto-detection of the fully qualified class name (for the I agree that the |
@chadirino Glad to hear your feedback. The real user's feedback is definitely helpful for us to improve the product. Thanks. To improve the auto-detection, we plan to generate a configuration at the beginning of launch.json.
But the auto-detection will be only based on your current focus editor. If your current opening editor file is not a Java file with main method, then prompt you to choose the main entry with quickPick option.
Is it because the option format is not friendly or other reasons to cause the wrong pick? |
Thanks for the response, @testforstephen. I am glad that I can be of some help to you -- your work is great and really appreciated! That goes to you too, @isidorn.
I see -- you are using
I just analyzed it real quick -- It's definitely intuitive so it must come down to the choice in the defaulted class name (and that I probably don't pay enough attention). It looks like the I said "many times" (which might have been an exaggeration) but I suppose it couldn't have been more than 10 times that I chose the wrong class name. Nevertheless, assuming the auto-detection will be added, the |
@chadirino Nice to know your scenario, thanks. |
@patelkunal Hope this solution will fix the issue Introduce shortcut to launch program from active editor too. |
0.16.0 release contains the change. close this task. |
@testforstephen great, thanks a lot! |
Hey,
VSCode dev here. This milestone I am looking into simplifing generated
launch.json
for various extensions microsoft/vscode#62851The
launch.json
that Java generates is attached at the end. This is not too complex for the avarage user, however we can still improve. I suggest to simplify it the following way:DebugConfigurationProvider
should use thequickPick
to ask the user if he would like to launch or to attach. After that it should ask what is themainClass
or what is theport
. Optimally it should be able to detect those things on its own, but if not possible usequickPick
to ask the user.console
,args
,stopOnEntry
,hostName
andcwd
configuraitonSnippets
which is great. However these snippets also need to be simplified. I suggest to remove all attributes that have the default value. Example:stopAtEntry
,cwd
,args
If you agree with the suggestions I am making here I am also here to help with any potential questions you might have. The changes should not require a lot of work but will simplify the flow a lot imho. It should be much less complex and not too much like a wizard experience
The text was updated successfully, but these errors were encountered: