The VSCode settings template has been enhanced to include JSON5 file support for admin configuration files, improving the developer experience when working with JSON5 versions of ioBroker admin configurations.
The fileMatch array in the JSON schema configuration within the VSCode settings template now includes .json5 file extensions alongside the existing .json patterns.
Before:
"fileMatch": [
"admin/jsonConfig.json",
"admin/jsonCustom.json",
"admin/jsonTab.json"
]After:
"fileMatch": [
"admin/jsonConfig.json",
"admin/jsonConfig.json5",
"admin/jsonCustom.json",
"admin/jsonCustom.json5",
"admin/jsonTab.json",
"admin/jsonTab.json5"
]This change only affects newly created adapters. Existing adapters continue to work without any changes required.
However, if you want to update an existing adapter to get JSON5 support in VSCode, you can manually update your .vscode/settings.json file:
- Open your existing adapter's
.vscode/settings.jsonfile - Find the
json.schemassection with the admin configuration schema - Update the
fileMatcharray to include the JSON5 patterns:
{
"fileMatch": [
"admin/jsonConfig.json",
"admin/jsonConfig.json5",
"admin/jsonCustom.json",
"admin/jsonCustom.json5",
"admin/jsonTab.json",
"admin/jsonTab.json5"
],
"url": "https://raw.githubusercontent.com/ioBroker/ioBroker.admin/master/packages/jsonConfig/schemas/jsonConfig.json"
}- Enhanced JSON5 support: VSCode will now provide JSON schema validation for both
.jsonand.json5admin configuration files - Better developer experience: Developers get autocompletion, error checking, and documentation tooltips when editing JSON5 admin configs
- Consistent development experience: Same level of support across both JSON and JSON5 file formats
- Future-ready: Prepared for JSON5 adoption in ioBroker admin configurations
This change does not affect the functionality of adapters in any way.