No description
Find a file
2020-10-01 20:30:27 -05:00
.vscode Change build output from /release to /lib 2019-09-19 16:49:18 +02:00
examples WIP: Dependency upgrades (#27) 2020-08-20 15:12:43 +05:30
scripts use yaml-language-server's ESM and UMD modules; fix formatting 2020-09-20 21:23:48 -05:00
src use yaml-language-server's ESM and UMD modules; fix formatting 2020-09-20 21:23:48 -05:00
.editorconfig build: migrate latest json language service implementation 2018-11-23 10:04:33 +08:00
.gitignore use yaml-language-server's ESM and UMD modules; fix formatting 2020-09-20 21:23:48 -05:00
.npmignore Add examples and patches to npmignore 2020-08-20 15:20:07 +05:30
.prettierignore use yaml-language-server's ESM and UMD modules; fix formatting 2020-09-20 21:23:48 -05:00
LICENSE.md 1.0 2016-06-26 12:50:57 +02:00
package.json version-bump monaco-editor 2020-10-01 20:30:27 -05:00
README.md use yaml-language-server's ESM and UMD modules; fix formatting 2020-09-20 21:23:48 -05:00
test-demo.png chore: align with pengx17/master branch 2018-10-25 10:12:07 +08:00
tsconfig.esm.json Move tsconfig-s to the root of the project and update them 2020-09-20 19:20:19 -05:00
tsconfig.json Move tsconfig-s to the root of the project and update them 2020-09-20 19:20:19 -05:00
yarn.lock version-bump monaco-editor 2020-10-01 20:30:27 -05: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 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

A running example: demo-image

Credits

License

MIT