[hover] Display the last MarkedString when there are multiple.#224
[hover] Display the last MarkedString when there are multiple.#224MaskRay wants to merge 1 commit into
Conversation
|
Why discard other lines? I think this could be better achieved by let-binding. |
|
I discard other lines because only the last line is about function/variable/type signature, others are usually documentation. Displaying multiple lines in eldoc is less appealing. Too be more precise, we could filter out all languages other than ones with the language-id the server tells us. rls {"jsonrpc":"2.0","id":190,"result":{"contents":[" meow\n",{"language":"rust","value":"fn () -> i32"}],"range":null}}cquery The issue is that |

For comments, @sebastiencs 's lsp-ui-doc.el should be preferred.
See emacs-lsp/lsp-ui#19 for some demos.