Skip to content

Commit 61da1ee

Browse files
author
Tobias Heinlein
committed
[fix] lsp-ui not displaying pop-up on MarkedString[]
Why?: - There seems to be a typo in extracting the documentation from an array of MarkedString[]. If `lsp-ui-doc-include-signature` is disabled, we still want to display the documentation in the pop-up which should reside in the rest of the MarkedString[] array excluding the first entry. This change addresses the need by: - Turn `cadr` into `cdar` to extract the rest of the first list inside `groups`
1 parent 072bb29 commit 61da1ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lsp-ui-doc.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ Because some variables are buffer local.")
351351
(append list-marked-string nil))))
352352
(if lsp-ui-doc-include-signature
353353
list-marked-string
354-
(cadr groups))))
354+
(cdar groups))))
355355

356356
(defun lsp-ui-doc--extract (contents)
357357
"Extract the documentation from CONTENTS.

0 commit comments

Comments
 (0)