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

Display the first line of MarkupContent in eldoc #1607

Merged
merged 2 commits into from
Apr 23, 2020

Conversation

jsravn
Copy link
Contributor

@jsravn jsravn commented Apr 23, 2020

Many LSP servers, like gopls, return document/onHover as
MarkupContent. This modifies the eldoc behavior to support MarkupContent
by displaying the first rendered line. As the majority of LSP servers
return the signature, this will display the signature as most people expect.

In the future, microsoft/language-server-protocol#772 should make this more reliable.

Many LSP servers, like gopls, return `document/onHover` as
MarkupContent. This modifies the eldoc behavior to support MarkupContent
by displaying the first rendered line. As the majority of LSP servers
return the signature, this will display the signature as most people expect.

In the future,
microsoft/language-server-protocol#772
should make this more reliable.
@yyoncho yyoncho merged commit 2b8f29f into emacs-lsp:master Apr 23, 2020
@yyoncho
Copy link
Member

yyoncho commented Apr 23, 2020

Thank you for contributing to lsp-mode!

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.

2 participants