Make Atom work also without a snapshot

This commit is contained in:
Antonio Scandurra
2017-02-27 14:47:20 +01:00
parent 54eb65631a
commit 681f0f9fe1
2 changed files with 116 additions and 30 deletions

View File

@@ -41,7 +41,8 @@ class Package
@metadata ?= @packageManager.loadPackageMetadata(@path)
@bundledPackage = @packageManager.isBundledPackagePath(@path)
@name = @metadata?.name ? path.basename(@path)
# ModuleCache.add(@path, @metadata)
unless @bundledPackage
ModuleCache.add(@path, @metadata)
@reset()
###