Expand description
Reading settings.json the way srv does: JSONC, so // and /* */
comments and trailing commas are allowed. The seeded template has both, so
a reader that parses strict JSON gets nothing from a seeded file (#1903).
Functions§
- dev_
mode_ from - Dev mode (
app:devmode, docs/specs/SPEC_DEV_MODE_SETTING_2026_10_28.md) from the text ofsettings.json(None: no such file): the key when it is a boolean, otherwisedev_build, whether this is a task dev or debug build. The host checks this before it opens DevTools. - parse_
jsonc textas JSONC, orNonewhen it isn’t valid even then.- strip_
trailing_ commas inputwith each comma that ends an object or array blanked out, leaving commas inside strings alone.