Make Workspace::scan work w/ multiple root directories

This commit is contained in:
Max Brunsfeld
2015-02-24 14:22:39 -08:00
parent a208e789d7
commit cbefdd6c5e
3 changed files with 100 additions and 12 deletions

View File

@@ -870,8 +870,7 @@ class Workspace extends Model
exclusions: atom.config.get('core.ignoredNames')
follow: atom.config.get('core.followSymlinks')
# TODO: need to support all paths in @getPaths()
task = Task.once require.resolve('./scan-handler'), atom.project.getPaths()[0], regex.source, searchOptions, ->
task = Task.once require.resolve('./scan-handler'), atom.project.getPaths(), regex.source, searchOptions, ->
deferred.resolve()
task.on 'scan:result-found', (result) ->