Atom/spec/fixtures/packages/package-with-workspace-openers/index.coffee

10 lines
205 B
CoffeeScript

module.exports =
activateCallCount: 0
openerCount: 0
activate: ->
@activateCallCount++
atom.workspace.addOpener (filePath) =>
if filePath is 'atom://fictitious'
@openerCount++