-
Notifications
You must be signed in to change notification settings - Fork 645
Go to Definition and Codelens fails for anonymous struct members #1044
Comments
For jumping to definition can you try setting What do you get when you do a "Find All References" on this type? |
Hi, I am already on gogetdoc. When I do a "Find All References" I get a code lens |
Can you share a complete sample code where I can try this? |
Sure.
|
I know this works. I think there has been some misunderstanding Like when I hover over the bar1 struct I 'd like to inspect the definitions for f1 or the anonymous member foo especially in my case when they reside in different source files. How did you make this animated gif? |
I used LICEcap for the gif. Its pretty easy Yes, please share gif/video. |
I can repro when using cc @zmb3 |
@hhrutter you also mentioned that the codelens doesn't work. Can you elaborate on that as well? I see the references codelens on the structs |
I'll take a look at the go to definition issue in gogetdoc. Thanks for the report! |
@zmb3 Make sure |
Got it. Thanks Ramya. I have a fix coded up, just need to clean up a few things and I'll have it out tomorrow. |
Awesome, thanks @zmb3! |
@hhrutter the fix is committed. Just update with 'go get -u github.com/zmb3/gogetdoc' |
💯 working. Thx @zmb3 & @ramya-rao-a |
@hhrutter just confirming.. When you say codelens do you mean the text you see when you hover on the field? |
Ah! That got me confused. Codelens is the term used for something else entirely 😊 See https://code.visualstudio.com/blogs/2017/02/12/code-lens-roundup |
I see. So how do you call this little popup displaying the type info?
|
Hover info or tooltip |
Like in the browser. ok
…On Tue, Jul 4, 2017 at 8:24 PM, Ramya Rao ***@***.***> wrote:
Hover info or tooltip
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1044 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKzDK8xytqX4XtIw4o1TmC0Q4u2_Cze0ks5sKoNSgaJpZM4OAyNe>
.
|
Correct |
I am on MacOS, VSCode Release May 2017 (version 1.13); Go 0.6.62
When using anonymous types like so jumping to the struct definition eg
Configuration
does not work neither do I get a codelens.The text was updated successfully, but these errors were encountered: