Function: projectile--teardown-all-watches

projectile--teardown-all-watches is a byte-compiled function defined in projectile.el.

Signature

(projectile--teardown-all-watches)

Documentation

Drop the file-notify watches of every watched project.

Runs when projectile-mode(var)/projectile-mode(fun) is disabled, when projectile-auto-update-cache-with-watches is customized to nil, and on kill-emacs.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--teardown-all-watches ()
  "Drop the file-notify watches of every watched project.
Runs when `projectile-mode' is disabled, when
`projectile-auto-update-cache-with-watches' is customized to nil, and
on `kill-emacs'."
  (dolist (project (hash-table-keys projectile--project-watches))
    (projectile--unwatch-project project)))