Purge ignored projects from cache/known projects
At shutdown time.
This commit is contained in:
parent
4c7c9cacd3
commit
0ebd58c991
1 changed files with 5 additions and 1 deletions
|
@ -117,6 +117,9 @@ c) are not valid projectile projects."
|
|||
(when (and (bound-and-true-p projectile-projects-cache)
|
||||
projectile-enable-caching
|
||||
doom-interactive-p)
|
||||
(setq projectile-known-projects
|
||||
(cl-remove-if #'projectile-ignored-project-p
|
||||
projectile-known-projects))
|
||||
(projectile-cleanup-known-projects)
|
||||
(cl-loop with blacklist = (mapcar #'file-truename doom-projectile-cache-blacklist)
|
||||
for proot in (hash-table-keys projectile-projects-cache)
|
||||
|
@ -125,7 +128,8 @@ c) are not valid projectile projects."
|
|||
doom-projectile-cache-limit)
|
||||
(member (substring proot 0 -1) blacklist)
|
||||
(and doom-projectile-cache-purge-non-projects
|
||||
(not (doom-project-p proot))))
|
||||
(not (doom-project-p proot)))
|
||||
(projectile-ignored-project-p proot))
|
||||
do (doom-log "Removed %S from projectile cache" proot)
|
||||
and do (remhash proot projectile-projects-cache)
|
||||
and do (remhash proot projectile-projects-cache-time)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue