Skip to content

Commit

Permalink
Add package name to Grim.deprecate call for activationEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
izuzak authored and kevinsawicki committed Apr 24, 2015
1 parent 07f80bc commit 0c25184
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/package.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ class Package
@activationCommands[selector].push(commands...)

if includeDeprecatedAPIs and @metadata.activationEvents?
deprecate """
deprecate("""
Use `activationCommands` instead of `activationEvents` in your package.json
Commands should be grouped by selector as follows:
```json
Expand All @@ -474,7 +474,7 @@ class Package
"atom-text-editor": ["foo:quux"]
}
```
"""
""", {packageName: @name})
if _.isArray(@metadata.activationEvents)
for eventName in @metadata.activationEvents
@activationCommands['atom-workspace'] ?= []
Expand Down

0 comments on commit 0c25184

Please sign in to comment.