I added an OpenHandler to my extension following TypeFox’s instructions:
It works as expected when right clicking a file and using “Open With”.
However, I would like to open all JSON files (in my case) with the custom editor by default. If I double click a JSON file, it opens in the regular Monaco editor. I do return 100 in my implementation of canHandle.