We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0349a1c commit 7d22a49Copy full SHA for 7d22a49
lsp-completion.el
@@ -470,12 +470,14 @@ The MARKERS and PREFIX value will be attached to each candidate."
470
;; boundaries
471
((equal (car-safe action) 'boundaries) nil)
472
;; try-completion
473
- ((null action) (cl-first (member probe (funcall candidates))))
+ ((null action)
474
+ (when-let ((cands (funcall candidates)))
475
+ (if (cl-rest cands) probe (cl-first cands))))
476
;; test-completion: not return exact match so that the selection will
477
;; always be shown
478
((equal action 'lambda) nil)
479
;; retrieve candidates
- (t (funcall candidates))))
480
+ ((equal action t) (funcall candidates))))
481
:annotation-function #'lsp-completion--annotate
482
:company-candidate-kind #'lsp-completion--candidate-kind
483
:company-require-match 'never
0 commit comments