   activateNow: ->
     try
       @requireMainModule() unless @mainModule?
-      @registerConfigSchemaFromMainModule()
+      @configSchemaRegisteredOnActivate = @registerConfigSchemaFromMainModule()
       @registerViewProviders()
       @activateStylesheets()
       if @mainModule? and not @mainActivated

    @activationPromise = null
    @resolveActivationPromise = null
    @activationCommandSubscriptions?.dispose()
    @deactivateResources()
    @deactivateKeymaps()
    if @mainActivated

  registerConfigSchemaFromMetadata: ->
    if configSchema = @metadata.configSchema
      @config.setSchema @name, {type: 'object', properties: configSchema}
      true
    else
      false

  registerConfigSchemaFromMainModule: ->
    if @mainModule? and not @configSchemaRegisteredOnLoad
      if @mainModule.config? and typeof @mainModule.config is 'object'
        @config.setSchema @name, {type: 'object', properties: @mainModule.config}
        return true
    false

  activateStylesheets: ->
    return if @stylesheetsActivated
