Open AnsonH opened 2 years ago
Marking this as "Won't Do" means that this is out of the scope of the FYP (due to time limitations). However, this issue will remain open for future maintainers to investigate.
As a workaround, the user is appropriately warned when they create a new config:
Description
The disadvantage of using
js-yaml
is that comments are discarded after a round trip (i.e. YAML -> JSON -> YAML). We should use another YAML parsing library that supports comments parsing.Solution
We can use the following libraries:
yaml
yawn-yaml
yaml
is more actively retained (yawn-yaml
's last commit is 2 years ago), butyaml
's bundle size is huge (29.6 kB minified + gzipped).yaml
Upon experimentation, this library makes editing a YAML field extremely tedious. Let's say I wish to edit
_settings.lang
. It involves a lot of relatively low level programming in order to get that field modified.yawn-yaml
Not working