mirror of
https://github.com/atom/atom.git
synced 2026-02-17 10:01:25 -05:00
Exclude core.ignoredNames when scanning project
This commit is contained in:
@@ -276,6 +276,8 @@ class Project
|
||||
|
||||
command = require.resolve('nak')
|
||||
args = ['--hidden', '--ackmate', regex.source, @getPath()]
|
||||
ignoredNames = config.get('core.ignoredNames') ? []
|
||||
args.unshift('--ignore', ignoredNames.join(',')) if ignoredNames.length > 0
|
||||
args.unshift("--addVCSIgnores") if config.get('core.excludeVcsIgnoredPaths')
|
||||
new BufferedProcess({command, args, stdout, exit})
|
||||
deferred
|
||||
|
||||
Reference in New Issue
Block a user