Skip to content

elliotjharper/vscode__yaml-as-json-editor

Repository files navigation

YAML as JSON Custom Editor

YAML as JSON editor

I think that YAML is messy and unnecessarily hard to read once it is in anyway non trivial. I'd prefer to work with a JSON file. So this editor aims to let you transparently open YAML files as JSON, edit them as JSON, but whilst saving they will be converted back YAML and saved as such.

NOTE: This editor cannot work on all YAML. YAML cryptically advertises itself as "superset of JSON". This just means that you can convert any JSON to YAML, but there are a few 'extras' supported in YAML that cannot be converted to JSON. So if you try to open a YAML file that cannot be converted to JSON then this cannot be used.

TODO list

  • Error feedback when you open a YAML file that could not be translated to JSON.

DONE list

  • Theme the inner editors with a similar color kind to the hosting vscode instances current theme.
  • Error feedback when you currently have JSON that cannot be parsed and therefore is not currently going to be used.
  • Column resizing.

Debugging the edtior

  • Open this example in VS Code 1.46+
  • npm install
  • npm run watch or npm run compile
  • F5 to start debugging

Open the example files from the exampleFiles directory.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published