Function: projectile-replace--resolve-candidates

projectile-replace--resolve-candidates is a byte-compiled function defined in projectile.el.

Signature

(projectile-replace--resolve-candidates CANDIDATES)

Documentation

Return CANDIDATES as a list, calling it first when it is a function.

Only the elisp scanner reads the candidate list; the ripgrep fast-path asks ripgrep to walk the tree itself and never looks at it. Callers that might take either path therefore pass a function, so the walk - which shells out per project - is paid for only when something is going to scan its result.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-replace--resolve-candidates (candidates)
  "Return CANDIDATES as a list, calling it first when it is a function.
Only the elisp scanner reads the candidate list; the ripgrep fast-path
asks ripgrep to walk the tree itself and never looks at it.  Callers that
might take either path therefore pass a function, so the walk - which
shells out per project - is paid for only when something is going to scan
its result."
  (if (functionp candidates) (funcall candidates) candidates))