diff options
author | Christoph Hasse <hassec@users.noreply.github.com> | 2023-07-25 08:40:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-25 05:40:13 -0700 |
commit | 20c331915f4e317c615c7cfea469a9baedd2e4f7 (patch) | |
tree | 630a1a0b66f62efd97588296023d432173644062 /runtime/lua/vim/lsp/buf.lua | |
parent | 898384ac6900aa5cb8ef84d53ad586ecf424a25c (diff) | |
download | rneovim-20c331915f4e317c615c7cfea469a9baedd2e4f7.tar.gz rneovim-20c331915f4e317c615c7cfea469a9baedd2e4f7.tar.bz2 rneovim-20c331915f4e317c615c7cfea469a9baedd2e4f7.zip |
fix(lsp): SignatureHelp docstring is not escaped #16702
Problem:
Nvim LSP client always treats signature.documentation as markdown, even
if the server returns a plain string.
Per https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#signatureInformation
in a SignatureInformation response, the documentation field can be
either "string" or "MarkupContent".
Solution:
If signature.documentation is a string, treat it as "plaintext".
Closes #16563
Diffstat (limited to 'runtime/lua/vim/lsp/buf.lua')
0 files changed, 0 insertions, 0 deletions