From 53b538311e85b2539e8709ef8dd44d8ab74e9bab Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 3 Dec 2014 12:00:47 -0700 Subject: [PATCH] Add activationEvents deprecation warning --- src/package.coffee | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/package.coffee b/src/package.coffee index fe1d9513a..39f50ea37 100644 --- a/src/package.coffee +++ b/src/package.coffee @@ -408,6 +408,15 @@ class Package @activationCommands[selector].push(commands...) if @metadata.activationEvents? + deprecate """ + Use `activationCommands` instead of `activationEvents` in your package.json + Commands should be grouped by selector as follows: + ```coffee + activationCommands: + "atom-workspace": ["foo:bar", "foo:baz"] + "atom-text-editor": ["foo:quux"] + ``` + """ if _.isArray(@metadata.activationEvents) for eventName in @metadata.activationEvents @activationCommands['atom-workspace'] ?= []