Skip to content

Conversation

@niontrix
Copy link
Contributor

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

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`
@niontrix
Copy link
Contributor Author

niontrix commented Dec 4, 2024

@jcs090218 could you please take a look and merge it in or provide feedback?

@jcs090218
Copy link
Member

I think it makes sense. Can you provide screenshots before and after, just for the record? 🤔 Thanks!

@niontrix
Copy link
Contributor Author

niontrix commented Dec 4, 2024

@jcs090218 here are the before and after screenshots:

before:
Screenshot_20241204_185845

after:
Screenshot_20241204_185952

@jcs090218 jcs090218 merged commit f0edfac into emacs-lsp:master Dec 4, 2024
11 checks passed
@jcs090218
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants