It would be useful to support an includes directive in the settings json file.
Particularly for the use-case of sharing configuration across different machines.
For example, with the Remote Development feature, I now have a bunch of work servers and project paths in my config file, which I share and sync across my work and personal machines.
If we could conditionally include other config files to extend the "base" config, I would be able to continue sharing my configuration between work/personal machines without irrelevant settings being shared.
I would imagine that this could work in a few ways:
An "includes" key that takes a list of (relative?) paths to other files to include
The same "includes" key, but could take a list of objects that might specify what to do if the file doesn't exist.
The settings in the included configurations should likely take precedence over all previous settings in a LIFO manner - such that if I include files A, B, C that include the same keys K, the values should be merged with C taking precedence over B and so on.
If applicable, add mockups / screenshots to help present your vision of the feature
Check for existing issues
Describe the feature
It would be useful to support an
includes
directive in the settings json file. Particularly for the use-case of sharing configuration across different machines.For example, with the Remote Development feature, I now have a bunch of work servers and project paths in my config file, which I share and sync across my work and personal machines.
If we could conditionally include other config files to extend the "base" config, I would be able to continue sharing my configuration between work/personal machines without irrelevant settings being shared.
I would imagine that this could work in a few ways:
The settings in the included configurations should likely take precedence over all previous settings in a LIFO manner - such that if I include files
A, B, C
that include the same keysK
, the values should be merged withC
taking precedence overB
and so on.If applicable, add mockups / screenshots to help present your vision of the feature
Example settings file:
Where "work_settings.json" might include: