x/tools/gopls: empty hover response should be null, not a zero struct #37570
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Please answer these questions before submitting your issue. Thanks!
What did you do?
Hovered over a keyword, like
package
orfunc
.What did you expect to see?
No hover, as it's not really helpful.
What did you see instead?
No hover, but my client (VS Code) reports that the markup content kind is unsupported.
The logs for the hover above say:
So
gopls
is sending a zero'd hover response rather than nil/null. There might be other conditions where a zero hover is returned, but hovering over a keyword is the easiest method to reproduce this.Build info
Go info
The text was updated successfully, but these errors were encountered: