-
Notifications
You must be signed in to change notification settings - Fork 453
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
Why is java.signatureHelp disabled by default? #2063
Comments
Because Java completion already provides all overloaded signatures (contrary to Typescript), we found that enabling signatureHelp by default was more annoying than not. |
I looked into this a little bit and changed the language server to not return completions inside functions and constructors. This does not work in most cases, because vscode will only call I tracked down the code inside This seems like a good idea and means that this cannot be solved by returning different Next I tried to align the language server completions more closely with Typescript. Typscript will provide a completion I will try to open a enhancement propals on vscode or the language server spec. I think a combination of the two: Selecting a completion with parameters and automatically opening parameter hints would probably be a better solution. |
For the issue that candidate list remains open, I can think of several solutions: filterText
Set a proper commitCharacters
According to the spec, if we add CompletionItemLableDetailsCompletionItemLabelDetails will be in LSP 3.17, might be an option to improve the experience. |
|
I think currently there is another behavior which is confusing. The selected completion item is different from the content provided by signature helper: signature-helper.mp4 |
I had a shortcut assigned to
Trigger parameter hints
which I always used when editing Typescript or Javascript files. I didn't work while editing Java files, and therefore I assumed that this extension does not support parameter hints. Why else would it not work? I did not take me too long to find this setting, but only because mywhen
expression was assigned toeditorHasSignatureHelpProvider
which hinted me to LSP and I eventually stumbled over the setting by looking at the LS log and searching forsignatureHelp
inside the source code of this extension.Why is this not enabled by default? Users coming from Typescript (or other languages) where this is enabled by default will probably not think about looking for a setting to activate it.
The text was updated successfully, but these errors were encountered: