-
Notifications
You must be signed in to change notification settings - Fork 58
Signature help on function applications #252
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
Comments
What's the idea -- different than hover? |
It automatically opens when typing function applications (via |
recording.mp4This is an exmaple from ts extension |
How's that triggered in the example? By |
This feature is quite compelling. |
I'm not sure currently. |
This looks roughly like:
Needs a list of labels (the function parameters), and an index (of the current argument). So: let add = (x,y) => x+y Then given: would need to return:
|
As usual some care is required about context: |
For perf reasons, context scanning should happen before doing any other work that scans project structure etc. As context scanning is pure string parsing. |
In fact, the same perf comment apply to completion: #255 |
The server publishes the characters that trigger this in Server Capability |
This is must have, most servers provide this. Just having bare function names completed is a bit lacking. Also, a good chunk of servers also provide snippet expansion on top, meaning, not only is signatureHelp available, you can also expand the function call with all arguments filled with placeholders you can jump to. |
Unless @cristianoc disagrees, this sounds like a good first issue for a contributor with some OCaml skills. Essentially, we should have all we need in the analysis bin now that we've integrated the full parser. |
https://microsoft.github.io/language-server-protocol/specification#textDocument_signatureHelp
The text was updated successfully, but these errors were encountered: