Skip to content

Commit

Permalink
listp -> sequencep
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Sep 10, 2018
1 parent 564840a commit 4e062b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lsp-ui-doc.el
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ We don't extract the string that `lps-line' is already displaying."
(when contents
(cond
((stringp contents) contents)
((listp contents) ;; MarkedString[]
((sequencep contents) ;; MarkedString[]
(mapconcat 'lsp-ui-doc--extract-marked-string
(lsp-ui-doc--filter-marked-string contents)
"\n\n"
Expand Down
4 changes: 2 additions & 2 deletions lsp-ui-sideline.el
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ function signature)."
(when contents
(cond
((stringp contents) contents)
((listp contents) ;; MarkedString[]
((sequencep contents) ;; MarkedString[]
(--first (and (hash-table-p it)
(lsp-ui-sideline--get-renderer (gethash "language" it)))
contents))
Expand Down Expand Up @@ -350,7 +350,7 @@ CURRENT is non-nil when the point is on the symbol."
(defun lsp-ui-sideline--code-actions (actions)
"Show code ACTIONS."
(setq lsp-ui-sideline--code-actions actions)
(dolist (action actions)
(seq-doseq (action actions)
(-let* ((title (->> (gethash "title" action)
(replace-regexp-in-string "[\n\t ]+" " ")
(concat lsp-ui-sideline-code-actions-prefix)))
Expand Down

0 comments on commit 4e062b9

Please sign in to comment.