No description
Find a file
Kristen Mills 775a2b5fa8
fix
2020-01-11 12:50:40 -08:00
.vscode Change build output from /release to /lib 2019-09-19 16:49:18 +02:00
demo Change build output from /release to /lib 2019-09-19 16:49:18 +02:00
scripts Fix the code to generate a proper ESM output 2019-09-19 20:57:50 +02:00
src fix 2020-01-11 12:50:40 -08:00
test test: some more fix to unit tests 2018-12-21 17:33:09 +08:00
.editorconfig build: migrate latest json language service implementation 2018-11-23 10:04:33 +08:00
.gitignore Change build output from /release to /lib 2019-09-19 16:49:18 +02:00
.npmignore chore: align with pengx17/master branch 2018-10-25 10:12:07 +08:00
LICENSE.md 1.0 2016-06-26 12:50:57 +02:00
package.json schema request service 2020-01-11 02:46:16 -08:00
README.md test: add jest for testing 2018-12-14 18:00:45 +08:00
test-demo.png chore: align with pengx17/master branch 2018-10-25 10:12:07 +08:00
yarn.lock Fix the code to generate a proper ESM output 2019-09-19 20:57:50 +02:00

Monaco YAML

YAML language plugin for the Monaco Editor. It provides the following features when editing YAML files:

  • Code completion, based on JSON schemas or by looking at similar objects in the same file
  • Hovers, based on JSON schemas
  • Validation: Syntax errors and schema validation
  • Formatting
  • Document Symbols
  • Syntax highlighting
  • Automatically load remote schema files (by enabling DiagnosticsOptions.enableSchemaRequest)

Schemas can also be provided by configuration. See here for the API that the JSON plugin offers to configure the JSON language support.

Installing

yarn add monaco-yaml See test/index.html as an example. Currently only load with vs loader is supported. (AMD) Load with ESM is added, but not yet tested.

Development

  • git clone https://github.com/pengx17/monaco-yaml
  • cd monaco-yaml
  • yarn
  • open $/monaco-yaml/demo/index.html in your favorite browser.

A running example: demo-image

Credits

Maintain

Manually clone dependencies list below and update the project files accordingly:

License

MIT