-
Notifications
You must be signed in to change notification settings - Fork 414
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
Add an option not to insert arguments on completion #2903
Comments
@felixxing You can try
|
That does not work. |
It's currently by design that the method arguments will be filled according to the selected method's signature. Looks like we need to expose this setting from JDT I remember it's not exposed now in VS Code Java, @snjeza is it correct? |
Yes, I've never seen setings like that in VsCode. |
Yes, it is correct. |
I'm not sure if the images display the same issue, but it would be nice to have the option to not include the argument names on method calls. I use a screen reader (NVDA) / keyboard and deleting all the arguments when selecting a method call everytime makes using this feature a bit annoying, especially if the method has more than 2 arguments. It would be nice if we could have the option to select between the three modes, one for completely turning it off, one for argument names and other for guessing the method arguments. I don't know much about the LSP protocol, but it seems the feature is hardcoded on the source code of jdt.ls. |
Hi @thgcode, the image pasted above in this thread is a screenshot from Eclipse configuration page. It shows that Eclipse has the capability to control the behavior and that can be a reference for the implementation in VS Code Java extension. |
@jdneo Thanks for the image description! I tested with Eclipse and the feature can be used correctly on it. Then I was thinking why it worked on Eclipse and not on VSCode and found some information that can help to implement the feature. It seems the feature is implemented directly on the UI. The JavaCompletionProposalComputer reads the preference and sets the completion collector. It seems this the reason it works on Eclipse. |
@thgcode Thank you for the information. If it's implemented in UI, then we have to do it separately in JDT.LS. But I guess it won't be too complicated(hopefully). I can take a look at this sometime in next month. |
@thgcode, you can now set |
I tested it and it's working perfectly, thank you! This feature will save a lot of time for me. |
@thgcode Thanks for the feedback! |
[provide a description of the issue]
Environment
Steps To Reproduce
Current Result
Expected Result
Additional Informations
If this is a feature, can I turn of this?
The text was updated successfully, but these errors were encountered: