   deactivate: ->
     @activationDeferred?.reject()
     @activationDeferred = null
+    @grammarPromise?.reject()
+    @grammarPromise = null
+    @scopedPropertiesPromise?.reject()
+    @scopedPropertiesPromise = null
     @unsubscribeFromActivationEvents()
     @deactivateResources()
     @deactivateConfig()

        @loadKeymaps()
        @loadMenus()
        @loadStylesheets()
        @loadGrammars()
        @loadScopedProperties()
        @requireMainModule() unless @metadata.activationEvents?

      catch e

path = require 'path'

_ = require 'underscore-plus'
async = require 'async'
CSON = require 'season'
fs = require 'fs-plus'
{Emitter} = require 'emissary'
