Skip to content

Commit

Permalink
Fix textDocument/hover responses where MarkedString is a plist (joaot…
Browse files Browse the repository at this point in the history
…avora#72)

* eglot.el (eglot--hover-info): Forward all non-vector content to 
eglot--format-markup.
  • Loading branch information
mkcms authored and joaotavora committed Aug 17, 2018
1 parent 3ffea45 commit 8e0cf60
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -1446,8 +1446,7 @@ is not active."
(let ((heading (and range (pcase-let ((`(,beg . ,end) (eglot--range-region range)))
(concat (buffer-substring beg end) ": "))))
(body (mapconcat #'eglot--format-markup
(append (cond ((vectorp contents) contents)
((stringp contents) (list contents)))) "\n")))
(if (vectorp contents) contents (list contents)) "\n")))
(when (or heading (cl-plusp (length body))) (concat heading body))))

(defun eglot--sig-info (sigs active-sig active-param)
Expand Down

0 comments on commit 8e0cf60

Please sign in to comment.