mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Use JSON example since package.json is target
This commit is contained in:
@@ -411,10 +411,11 @@ class Package
|
||||
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"]
|
||||
```json
|
||||
"activationCommands": {
|
||||
"atom-workspace": ["foo:bar", "foo:baz"],
|
||||
"atom-text-editor": ["foo:quux"]
|
||||
}
|
||||
```
|
||||
"""
|
||||
if _.isArray(@metadata.activationEvents)
|
||||
|
||||
Reference in New Issue
Block a user