No description
Find a file
Peng Xiao 37dae21bbd
Merge pull request #5 from kpdecker/feat/2.0
build: migrate latest json language service implementation
2018-11-30 15:05:52 +08:00
.vscode build: migrate latest json language service implementation 2018-11-23 10:04:33 +08:00
scripts build: migrate latest json language service implementation 2018-11-23 10:04:33 +08:00
src fix: disable completion for now 2018-11-30 15:05:02 +08:00
test build: migrate latest json language service implementation 2018-11-23 10:04:33 +08:00
.editorconfig build: migrate latest json language service implementation 2018-11-23 10:04:33 +08:00
.gitignore 1.0 2016-06-26 12:50:57 +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 fix: disable completion for now 2018-11-30 15:05:02 +08:00
README.md chore: upgrade dependencies and bump version to 1.2.0 2018-11-14 17:57:07 +08:00
test-demo.png chore: align with pengx17/master branch 2018-10-25 10:12:07 +08:00
yarn.lock build: migrate latest json language service implementation 2018-11-23 10:04:33 +08: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/kpdecker/monaco-yaml
  • cd monaco-yaml
  • yarn
  • yarn watch
  • open $/monaco-yaml/test/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