Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lsp: use FullDocumentation hover response #3702

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.
@bhcleek bhcleek force-pushed the gopls/hover/structured-deprecated branch from bbfd039 to c1099e3 Compare March 10, 2025 01:15
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