Plugin settings open in json editor, not in modal

I’ve got a simple plugin that registers a couple of settings by calling logseq.useSettingsSchema, and the plugin loads, but when I click on “open settings”, logseq opens the settings.json file in the default editor instead of showing the usual modal. What might be causing that?