From 61da1ee4c2e3f5e8b3e3bcc1f9a0f51e70790a64 Mon Sep 17 00:00:00 2001 From: Tobias Heinlein Date: Sat, 30 Nov 2024 21:36:50 +0100 Subject: [PATCH] [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` --- lsp-ui-doc.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lsp-ui-doc.el b/lsp-ui-doc.el index de4c5ddb..456e7a43 100644 --- a/lsp-ui-doc.el +++ b/lsp-ui-doc.el @@ -351,7 +351,7 @@ Because some variables are buffer local.") (append list-marked-string nil)))) (if lsp-ui-doc-include-signature list-marked-string - (cadr groups)))) + (cdar groups)))) (defun lsp-ui-doc--extract (contents) "Extract the documentation from CONTENTS.