mirror of
https://github.com/atom/atom.git
synced 2026-02-16 09:35:54 -05:00
Make immediate package loading work
This commit is contained in:
@@ -98,11 +98,12 @@ class PackageManager
|
||||
@activePackages[pack.name] = pack
|
||||
pack
|
||||
|
||||
# Deprecated
|
||||
activatePackageSync: (name, options) ->
|
||||
return pack if pack = @getActivePackage(name)
|
||||
if pack = @loadPackage(name)
|
||||
@activePackages[pack.name] = pack
|
||||
pack.activate(options)
|
||||
pack.activateSync(options)
|
||||
pack
|
||||
|
||||
# Private: Deactivate all packages
|
||||
|
||||
Reference in New Issue
Block a user