Closes #127. Increase startup time by using ActivationEvents
This commit is contained in:
parent
38a198c8e3
commit
c0ee2bed96
|
@ -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
|
||||
|
|
|
@ -97,5 +97,10 @@
|
|||
"editorconfig": "^0.11.4",
|
||||
"loophole": "^1.0.0",
|
||||
"typescript-formatter": "~0.1.4"
|
||||
}
|
||||
},
|
||||
"activationEvents": [
|
||||
"beautify",
|
||||
"core:save",
|
||||
"core:save-as"
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue