I’m having problems trying to dispatch a command.
Here is the code.
activate: (state) -> @subscriptions = new CompositeDisposable @subscriptions.add atom.commands.add "atom-workspace", "activate-killer-instinct-mode:test-command": => console.log "Hello, I'm your commands" @error = false target = "atom-workspace" commandName = "activate-killer-instinct-mode:test-command" atom.commands.dispatch target, commandName #Here is the error console.log "The command " + commandName + " got dispatched" if not @error console.error "The command " + commandName + " didn't get dispatched" if @error
I got this output.
The command activate-killer-instinct-mode:test-command didn’t get dispatched
I made a question on stackoverflow, if want to read more details.
Thanks for the help.