Skip to content

Conversation

bhcleek
Copy link
Collaborator

@bhcleek bhcleek commented Mar 9, 2025

Use the FullDocumentation hover response instead of Structured, because the latter is deprecated and will be removed soon.

  • Parse FullDocumentation format for use in a hover message, following the same basic format was was previously provided by gopls in its Structured format.

Fixes #3701

@bhcleek bhcleek force-pushed the gopls/hover/structured-deprecated branch 4 times, most recently from eef9192 to bbfd039 Compare March 10, 2025 00:51
@bhcleek bhcleek added this to the vim-go v1.29 milestone Mar 10, 2025
Use the FullDocumentation hover response instead of Structured, because
the latter is deprecated and will be removed soon.

* Parse FullDocumentation format for use in a hover message, following
  the same basic format was was previously provided by gopls in its
  Structured format.
* Refactor handlers that relied on the hover response to expect the
  structured output from the new function that provides it.
* Refactor functions that expected documentation links to first rely on
  a new request, documentLink via go#lsp#DocLink, and then falling back
  to trusty `go doc` to get what's needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gopls v0.18.0 deprecated hoverKind=Structured
1 participant