Avoid emitting config events while loading packages

This commit is contained in:
Max Brunsfeld 2016-02-12 12:46:49 -08:00
parent 41161dd462
commit 8d27d1925c

View File

@ -357,7 +357,9 @@ class PackageManager
packagePaths = @getAvailablePackagePaths()
packagePaths = packagePaths.filter (packagePath) => not @isPackageDisabled(path.basename(packagePath))
packagePaths = _.uniq packagePaths, (packagePath) -> path.basename(packagePath)
@loadPackage(packagePath) for packagePath in packagePaths
@config.transact =>
@loadPackage(packagePath) for packagePath in packagePaths
return
@emitter.emit 'did-load-initial-packages'
loadPackage: (nameOrPath) ->