Skip to content

Commit d92518e

Browse files
committed
undry
1 parent 8f4b0ea commit d92518e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lsp-completion.el

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,10 @@ of the PREFIX string."
587587
same-session?
588588
(cl-second lsp-completion--cache))
589589
(setf result (pcase-let* ((`(,_ ,items ,markers ,prefix) (cdr lsp-completion--cache)))
590-
(lsp-completion--make-items items markers prefix))))
590+
(-map
591+
(lambda (item)
592+
(lsp-completion--make-item item :markers markers :prefix prefix))
593+
(lsp-completion--filter-candidates items)))))
591594
(t
592595
(-let* ((resp (lsp-request-while-no-input
593596
"textDocument/completion"
@@ -632,7 +635,10 @@ of the PREFIX string."
632635
(or (and done? (cl-second lsp-completion--cache))
633636
(and lsp-completion-filter-on-incomplete
634637
(lsp-completion--to-internal items)))))
635-
(lsp-completion--make-items items markers prefix)))))))
638+
(-map
639+
(lambda (item)
640+
(lsp-completion--make-item item :markers markers :prefix prefix))
641+
(lsp-completion--filter-candidates items))))))))
636642
(:interrupted lsp-completion--last-result)
637643
(`,res (setq lsp-completion--last-result res))))))
638644
(list

0 commit comments

Comments
 (0)