Closes #127. Increase startup time by using ActivationEvents

This commit is contained in:
Glavin Wiechert 2014-10-21 15:35:08 -03:00
parent 38a198c8e3
commit c0ee2bed96
2 changed files with 8 additions and 3 deletions

View File

@ -9,7 +9,7 @@ languages = beautifier.languages
defaultLanguageOptions = beautifier.defaultLanguageOptions
# Lazy loaded dependencies
fs = null
path = null
path = require("path")
strip = null
yaml = null
LoadingView = null
@ -310,7 +310,7 @@ handleSaveEvent = =>
return
return
Subscriber = require("emissary").Subscriber
{Subscriber} = require path.join(atom.packages.resourcePath, 'node_modules', 'emissary')
Subscriber.extend plugin
plugin.configDefaults = _.merge(
analytics: true

View File

@ -97,5 +97,10 @@
"editorconfig": "^0.11.4",
"loophole": "^1.0.0",
"typescript-formatter": "~0.1.4"
}
},
"activationEvents": [
"beautify",
"core:save",
"core:save-as"
]
}