No description
Find a file
Himanshu Kapoor cf610df47e Remove usage of monaco.Promise
It was removed in Monaco 16.0
2020-07-02 14:46:45 +05:30
.vscode Change build output from /release to /lib 2019-09-19 16:49:18 +02:00
examples Add React demos 2020-02-22 14:47:19 -08:00
scripts Update to the latest version of yaml-language-service (#1) 2020-01-12 17:27:33 -08:00
src Remove usage of monaco.Promise 2020-07-02 14:46:45 +05:30
test Update to the latest version of yaml-language-service (#1) 2020-01-12 17:27:33 -08:00
.editorconfig build: migrate latest json language service implementation 2018-11-23 10:04:33 +08:00
.gitignore Try using latest version 2020-01-11 17:18:13 -08: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 Remove usage of monaco.Promise 2020-07-02 14:46:45 +05:30
README.md Add React demos 2020-02-22 14:47:19 -08:00
test-demo.png chore: align with pengx17/master branch 2018-10-25 10:12:07 +08:00
yarn.lock Remove usage of monaco.Promise 2020-07-02 14:46:45 +05:30

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 Both vs loader and ESM are supported. See examples directory for esm and umd examples.

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