Skip to content

Commit 15bb33c

Browse files
authored
Feat: handle MarkupContent in lsp response roslyn lsp (#356)
lsp-signature failed to handle documentation of MarkupContent type. This PR fix the issue.
1 parent b58cca0 commit 15bb33c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lua/lsp_signature/helper.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,9 @@ helper.match_parameter = function(result, config)
259259
end
260260
if nextParameter.documentation and #nextParameter.documentation > 0 then
261261
nexp = nexp .. ': ' .. nextParameter.documentation
262+
-- this is to follow when the documentation is a table like {kind= xxx, value= zzz}
263+
elseif type(nextParameter.documentation) == 'table' and nextParameter.documentation.value then
264+
nexp = nexp .. ': ' .. nextParameter.documentation.value
262265
end
263266

264267
-- test markdown hl

0 commit comments

Comments
 (0)