fix: +default/discover-projects not reading depth

Fix: #5736
Fix: #5735
This commit is contained in:
Seong Yong-ju 2021-11-19 03:15:56 +09:00 committed by GitHub
parent 8886216874
commit a7d30f6853
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,9 +50,10 @@ If prefix ARG is non-nil, prompt for the search path."
(funcall projectile-add-known-project project-root) (funcall projectile-add-known-project project-root)
(message "Added %S to known project roots" project-root))) (message "Added %S to known project roots" project-root)))
(dolist (dir projectile-project-search-path) (dolist (dir projectile-project-search-path)
(if (not (file-accessible-directory-p dir)) (cl-destructuring-bind (dir . depth) (if (consp dir) dir (cons dir nil))
(message "%S was inaccessible and couldn't searched" dir) (if (not (file-accessible-directory-p dir))
(projectile-discover-projects-in-directory dir))))))) (message "%S was inaccessible and couldn't be searched" dir)
(projectile-discover-projects-in-directory dir depth))))))))
;;;###autoload ;;;###autoload
(defun +default/dired (arg) (defun +default/dired (arg)