mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2025-01-06 23:26:25 +03:00
Add activationEvents deprecation warning
This commit is contained in:
parent
19ae78e062
commit
53b538311e
@ -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'] ?= []
|
||||
|
Loading…
Reference in New Issue
Block a user