diff options
| author | Bozhidar Batsov <bozhidar@batsov.dev> | 2026-02-15 17:09:31 +0200 |
|---|---|---|
| committer | Bozhidar Batsov <bozhidar@batsov.dev> | 2026-03-10 10:57:24 +0200 |
| commit | 659eda8ee7159f70ceef278060e9acd52ed01c6a (patch) | |
| tree | 011e70535511474d1d8072c3585e302477b4174c /projectile.el | |
| parent | 947bb9eada4ed8c57777dd7027d1d0b373b3b0db (diff) | |
Check globally-ignored-file-suffixes in native indexing
Fixes #1959
projectile-ignored-file-p now checks projectile-globally-ignored-file-suffixes
in addition to projectile-globally-ignored-files and file patterns.
Previously the suffix check only happened in projectile-remove-ignored
which is used by hybrid indexing but not native indexing.
Diffstat (limited to 'projectile.el')
| -rw-r--r-- | projectile.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/projectile.el b/projectile.el index d70dffb..0936421 100644 --- a/projectile.el +++ b/projectile.el @@ -2005,7 +2005,11 @@ A pre-computed list of IGNORED-FILES may optionally be provided." (seq-some (lambda (name) (string-match-p name file)) - projectile-global-ignore-file-patterns))) + projectile-global-ignore-file-patterns) + (seq-some + (lambda (suffix) + (string-suffix-p suffix file t)) + projectile-globally-ignored-file-suffixes))) (defun projectile-check-pattern-p (file pattern) "Check if FILE matches globbing PATTERN." |
