   mainModule: null
   mainInitialized: false
   mainActivated: false
+  deserialized: false
 
   ###
   Section: Construction

      @mainModulePath = fs.resolveExtension(mainModulePath, ["", CompileCache.supportedExtensions...])

  activationShouldBeDeferred: ->
    @hasActivationCommands() or @hasActivationHooks() or @hasDeferredURIHandler()

  hasActivationHooks: ->
    @getActivationHooks()?.length > 0

        @deserializerManager.add
          name: deserializerName,
          deserialize: (state, atomEnvironment) =>
            @deserialized = true
            @registerViewProviders()
            @requireMainModule()
            @initializeIfNeeded()
