scalameta / metals

Scala language server with rich IDE features 🚀

Home Page:https://scalameta.org/metals/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support plaintext Hover responses

hmemcpy opened this issue · comments

Is your feature request related to a problem? Please describe.

Currently, the response from a textDocument/hover request always returns the contents as Markdown.

LSP supports specifying the content format in HoverCapabilities, however Metals currently does not honor this and always formats the response as Markdown.

Describe the solution you'd like

Metals should honor the Hover's contentFormat specified in initialization options.

Describe alternatives you've considered

N/A

Additional context

No response

Search terms

hover content markdown plaintext

Thanks for reporting! I would even say it's a bug.