mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Default selector to .workspace when subscribing to activation events
This commit is contained in:
@@ -348,6 +348,7 @@ class Package
|
||||
)
|
||||
else
|
||||
for eventName, selector of @metadata.activationEvents
|
||||
selector ?= '.workspace'
|
||||
@activationCommandSubscriptions.add(
|
||||
atom.commands.add(selector, eventName, @handleActivationEvent)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user