-
Notifications
You must be signed in to change notification settings - Fork 24
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
For variables, the decl field contains the parent function instead of the variable name and type #20
Comments
@zmb3 The |
From @zmb3 on January 4, 2017 4:6 The current behavior is to ascend the AST until we get to a decl that has [may have] documentation. In this case, At the time, I thought this behavior made sense. Recall that I see how this can be confusing, especially now that the tool is being used to provide a tooltip for the item under the cursor. We should try to be as accurate as possible at describing what is under the cursor. Please create an issue upstream and link it here, I'll be happy to take a look. Bonus points for a repro with actual/expected output :-) |
@ramya-rao-a please update and let me know if this works for you :-D |
Thanks @zmb3. Variables are now good, but something happened to the types. For example:
The |
Thanks for catching that @ramya-rao-a, I should have had done it in a separate branch and had you try it out first. Should be fixed now. |
Thanks @zmb3 Looks good now! |
From @enitihas on January 2, 2017 3:59
I recently changed the option "go.docsTool" to gogetdoc. However, now when I hover over a local variable in any function, it shows me the function name instead of type information of the variable. However, hover works correctly for function arguments.
Copied from original issue: microsoft/vscode-go#703
The text was updated successfully, but these errors were encountered: