I want to allow my users to set environment variables.
An object seemed like the way to do this, so I added one. It has two keys in it:
LANG. They kept getting wiped out. I read about the Json Schema, and apparently I can specify that the key is required, so I tried doing that, but they are still omitted from the object placed in
config.cson. This causes the options to be lost after looking at the schema the first time.
Here is the relevant portion of the schema.
Here is where the minimap plugin has an object config, and this does not show up in my settings either, so I assume they hit it, as well.
Here is a screenshot showing there are 4 vars the first time, but after viewing the config, the object gets written with no keys, so the second time, the config options disappear.
As an aside, I also specified additional properties can be added, but it doesn’t appear there is any way to add them. IIRC, there used to be a plus button or something, where users could append new values (mighta just made that up, though). As is, they’ll still have to go edit the config file by hand.