I started with the standard package template, and I am following the approach used in the hex package to add workspace opener, but for some reason I can’t get it to work.
I added this to activate:
@openerDisposable = atom.workspace.addOpener(openURI)
and then I call atom.workspace.open(filePath) directly, but my opener is not invoked.
My code is here: https://github.com/fedorov/add-opener-test. The only file I modified is this: https://github.com/fedorov/add-opener-test/blob/master/lib/add-opener-test.coffee.
Can anyone spot the problem?