Skip to content

Commit

Permalink
Closes #127. Increase startup time by using ActivationEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
Glavin001 committed Oct 21, 2014
1 parent 38a198c commit c0ee2be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/beautify.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,10 @@
"editorconfig": "^0.11.4",
"loophole": "^1.0.0",
"typescript-formatter": "~0.1.4"
}
},
"activationEvents": [
"beautify",
"core:save",
"core:save-as"
]
}

0 comments on commit c0ee2be

Please sign in to comment.