Function: projectile--best-or-all-candidates-based-on-parents-dirs
projectile--best-or-all-candidates-based-on-parents-dirs is a
byte-compiled function defined in projectile.el.
Signature
(projectile--best-or-all-candidates-based-on-parents-dirs FILE CANDIDATES)
Documentation
Return a list of the best one for FILE from CANDIDATES or all CANDIDATES.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
(defun projectile--best-or-all-candidates-based-on-parents-dirs (file candidates)
"Return a list of the best one for FILE from CANDIDATES or all CANDIDATES."
(let ((grouped-candidates (projectile-group-file-candidates file candidates)))
(if (= (length (car grouped-candidates)) 2)
(list (car (last (car grouped-candidates))))
(apply #'append (mapcar #'cdr grouped-candidates)))))