mirror of
https://github.com/golang/go
synced 2024-11-18 23:14:43 -07:00
b8428586f4
We had previously not been generating documentation on hover for package declarations or import specs. We do this by adding a few special cases, since package declarations don't appear in type information. Throughout, we make the assumption that only one file in a package will have the documentation for the package. go/doc just appends documentation as it sees it. We may be able to do better by checking for a "Package ..." but that still is not guaranteed. Not sure what the right approach is, so this assumption may be the best option. Fixes golang/go#38526 Change-Id: Ibc515f8729e1aba0d11090be62371be6b18d0cfa Reviewed-on: https://go-review.googlesource.com/c/tools/+/230417 Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com> |
||
---|---|---|
.. | ||
indirect | ||
lsp | ||
missingdep | ||
missingtwodep | ||
unused | ||
upgradedep |