-
Notifications
You must be signed in to change notification settings - Fork 645
Documentation pops up inappropriately and doesn't go away #2481
Comments
Wow I had the same problem with u. And it almost kill me!!!! Hope to find a way to solve it |
And I found a temporary way to fix it. Change the "doc tool" setting to "gogetdoc" or "guru" and do not install it. But at the same time u will lost the function/method hint. |
Thanks for reporting @kentquirk and @ZeroZ233 cc @lggomez, @vladbarosan, @jhendrixMSFT This probably is an after affect of the changes that went in as part of #1738 as we don't see this behavior in the older versions of the extension. PRs are most welcome to fix this bug
|
Thanks for the pointer. I'll try to take a look in the next day or two (but if someone else wants it, feel free!) |
+1 I'm hitting escape non-stop to get rid of the code hints. Windows 10, VSCode 1.331, Go extension 0.10.1 |
It looks broken on two fronts:
The later can be harder to tackle since it needs extra work, #1116 approached it for general code completions, the general gist of it should still be applicable to this I will try to take a look but I'm on a limited schedule; I can provide help to whoever is already working on this (if someone already is) |
Thanks @lggomez Regarding comments |
Apparently ignoring the comment fixes part 2 of the issue. On the contrary of my previous comment, the main issue might be the comments being processed, which causes unexpected behavior on following lines I pushed #2496 with a potential fix containing this check. PTAL @ramya-rao-a @ZeroZ233 @section14 you should be able to test this by cloning the repo and using the "Launch extension" debug launch configuration. If you otherwise need a compiled version I can provide one |
It still happens with the basic comment check so there is still something else to be fixed on the comma backtracking |
This should be fixed with the latest changes from @lggomez |
I've been unable to install this on macos. Shouldn't it work the same as on Windows? |
I am able to install it on my Mac without any issues. What errors are you seeing and at what step? |
It's a good question. When running 'code --install-extension Go-0.10.3-beta.1.vsix' it completes fine, but when I check the installed gocode plugin it is still using the latest release. |
Try the |
That worked. Thank you Ramya! |
This bug fix is now available in the latest update (0.11.0) to the Go extension. Thanks @lggomez! |
(I should note that I am not using go modules yet and I am not using the language server.)
Steps to Reproduce:
Result:
The documentation pops up for Match; it's not appropriate here (we're not inside the Match parentheses).
Part 2:
Press enter and type
fmt.Println("foo")
. Note that the documentation box is present while you're typing, and changes to Println while you're inside the parentheses, but that it changes back to Match after you hit ')'.It won't go away as you type move the cursor around until you cross the boundary of another function call. The only way to get rid of it entirely is to hit escape.
What I expected:
The text was updated successfully, but these errors were encountered: