Remove getPath() deprecation in project::scan

This commit is contained in:
Ben Ogle
2014-11-06 14:48:52 -08:00
parent b978b4f8c7
commit 1ed927f213

View File

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