-
Notifications
You must be signed in to change notification settings - Fork 645
Type hints on hover are incorrect when omitting the value while ranging over a slice #1242
Comments
@zmb3 Thoughts? I see the same when using |
Interesting. I will look into it! |
@ramya-rao-a can we confirm vs-code is invoking
|
@zmb3 I just looked into this and it seems that the bug stems from the fact that the extension is falling back to @ramya-rao-a this probably means it is still an upstream bug, but in |
Yes, I can confirm that
|
Sorry about that @zmb3, I was so sure I had changed the setting to use @m90 Please open an issue in the #1025 is tracking the feature request to make gogetdoc the default option as there are quite a few cases where the godef+godoc combo doesnt give the right results Closing this issue for now as using gogetdoc gives you the right results |
Considering the following program:
with the rather obvious output of
I found a bug in the type hints that will be displayed when hovering over an expression in the editor.
Using 0.6.65, running Go 1.9 I will see the correct hint (
int
) when hovering overindex
in the first loop of the example:when hovering over the second
index
, I will incorrectly be told that this is abool
(when it is still anint
):The text was updated successfully, but these errors were encountered: