mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Add package name to Grim.deprecate call for activationEvents
This commit is contained in:
committed by
Kevin Sawicki
parent
07f80bcb8a
commit
0c25184624
@@ -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
|
||||
@@ -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'] ?= []
|
||||
|
||||
Reference in New Issue
Block a user