-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
x/tools/gopls: signatureHelp should return position info for signatures #32468
Comments
According to the LSP spec, the ParameterInformation struct can include position information instead of a label. If we used that, would it be enough to solve this problem? |
Oh wow, I totally missed that comment, thanks. Yes, if this is position information like other places in the spec, should be fine! |
@pjweinb: Would it be possible for us to make this change in the protocol generator? |
I'll look at it when I get back, but seems likely.
…On Mon, Jun 10, 2019 at 6:23 PM Rebecca Stambler ***@***.***> wrote:
@pjweinb <https://github.com/pjweinb>: Would it be possible for us to
make this change in the protocol generator?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#32468?email_source=notifications&email_token=ABJIAIZM2K4AYCQ5KC754ILPZ3H4XA5CNFSM4HVIA6Q2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXLMV5Q#issuecomment-500615926>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABJIAI7FBDA2LK235VPDF7TPZ3H4XANCNFSM4HVIA6QQ>
.
|
@stamblerre: could you add a [2]float64 field to ParameterInformation in lsp/source/signature_help.go? It does't matter what you name it, but once it exists (and gets filled in), we can change line 57 in signature_help.go to use the new field in place of p.Label. |
@stamblerre @pjweinb - is there anything I can do to help move this along? |
I'm sorry, this is a slightly lower priority issue for us right now. I will have to make the changes Peter requested before we can change the generator, but I haven't had a chance to get to this yet. |
For what is worth, I guess it's the same issue, this was fixed on the bingo server long ago saibing/bingo#20. |
In specific there was a mention to |
And the advent of the gopls server at the time caused a regression for bingo: saibing/bingo#135 (comment). |
Thanks for reporting this. It's a slightly different issue because it's a bug in signature help, whereas this issue is to track making use of the |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputThe signature help call from client to server (https://github.com/Microsoft/language-server-protocol/blob/gh-pages/specification.md#signature-help-request-leftwards_arrow_with_hook) returns a list of signatures:
But what's strange is that the signature information does not include position information, i.e. the start (and end, where it's valid/available) of where the call signature is valid: think the starting
(
(to the end)
).This position information is valuable to my mind because it tells the client where to place, for example, a popup window.
cc @stamblerre @ianthehat
The text was updated successfully, but these errors were encountered: