mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 20:44:30 +08:00
15 lines
435 B
CoffeeScript
15 lines
435 B
CoffeeScript
|
module.exports =
|
||
|
activateCallCount: 0
|
||
|
activationCommandCallCount: 0
|
||
|
legacyActivationCommandCallCount: 0
|
||
|
|
||
|
activate: ->
|
||
|
@activateCallCount++
|
||
|
|
||
|
atom.commands.add 'atom-workspace', 'activation-command', =>
|
||
|
@activationCommandCallCount++
|
||
|
|
||
|
editorView = atom.views.getView(atom.workspace.getActiveTextEditor())?.__spacePenView
|
||
|
editorView?.command 'activation-command', =>
|
||
|
@legacyActivationCommandCallCount++
|