4 ms·
I like the json variant that vscode uses. It has a name that I forgot… Json but with comments and allowed commas on the end.
by yankput 3y ago
I like the json variant that vscode uses. It has a name that I forgot…
Json but with comments and allowed commas on the end.
- tirpen 3y agoI believe that's JSON5. https://github.com/json5/json5 https://github.com/json5/json5 It's my preferred configuration file format, it fixes all the problems I have with JSON (trailing commas, comments) without turning it into a mess full of gotchas like YAML.
- yankput 3y agoActually no, it’s something called jsonc. It’s without a spec https://github.com/microsoft/vscode/issues/100688 https://github.com/microsoft/vscode/issues/100688 https://github.com/microsoft/node-jsonc-parser https://github.com/microsoft/node-jsonc-parser
- emptysongglass 3y agoWhy in god's name did Microsoft insist on going their own way on this?
- yankput 3y agoWhat do I know. A theory - they don’t want a third party code in a hot path (they do care about performance in vscode), they already have a very performant parser and they don’t want to add a complexity there. But that’s just a theory.