Variable: projectile-discover-tasks
projectile-discover-tasks is a customizable variable defined in
projectile.el.
Value
t
Documentation
Whether to offer the tasks a project's own tooling defines.
When non-nil projectile-run-task also lists the tasks found by
projectile-task-providers - npm scripts, Makefile targets and so on -
in addition to the tasks configured via projectile-tasks and the
project type. Discovered tasks are named after the tool that defines
them (e.g. npm:build), so they never collide with configured ones.
This variable was added, or its default value changed, in projectile version 3.3.0.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
;;;; Task discovery
;;
;; Most projects already describe their tasks somewhere - npm scripts,
;; Makefile targets, justfile recipes - and retyping those into
;; `projectile-tasks' is busy-work. A provider reads one such file and
;; turns it into tasks, which are offered alongside the configured ones.
;;
;; Providers are deliberately simple readers rather than full parsers:
;; they only need the task names, and they must not shell out (that
;; would make `projectile-run-task' pay for a process launch, and go
;; wrong over TRAMP).
(defcustom projectile-discover-tasks t
"Whether to offer the tasks a project's own tooling defines.
When non-nil `projectile-run-task' also lists the tasks found by
`projectile-task-providers' - npm scripts, Makefile targets and so on -
in addition to the tasks configured via `projectile-tasks' and the
project type. Discovered tasks are named after the tool that defines
them (e.g. `npm:build'), so they never collide with configured ones."
:group 'projectile
:type 'boolean
:package-version '(projectile . "3.3.0"))