Variable: projectile-subproject-functions

projectile-subproject-functions is a customizable variable defined in projectile.el.

Value

(projectile-subprojects-from-manifest
 projectile-subprojects-from-scan)

Documentation

Functions consulted by projectile-project-subprojects.

Each is called with a project root and should return the project's subprojects as directory names relative to it, each ending in a slash. They are tried in order and the first non-empty answer wins - so the list runs from the most authoritative source to the most general, the way projectile-project-root-functions does.

The default asks the workspace manifest first and falls back to scanning for manifests. Put projectile-subprojects-from-scan first to always scan, or add your own function for a workspace format Projectile cannot read.

This variable was added, or its default value changed, in projectile version 3.5.0.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defcustom projectile-subproject-functions
  '(projectile-subprojects-from-manifest
    projectile-subprojects-from-scan)
  "Functions consulted by `projectile-project-subprojects'.

Each is called with a project root and should return the project's
subprojects as directory names relative to it, each ending in a slash.
They are tried in order and the first non-empty answer wins - so the
list runs from the most authoritative source to the most general, the
way `projectile-project-root-functions' does.

The default asks the workspace manifest first and falls back to scanning
for manifests.  Put `projectile-subprojects-from-scan' first to always
scan, or add your own function for a workspace format Projectile cannot
read."
  :group 'projectile
  :type '(repeat function)
  :package-version '(projectile . "3.5.0"))