No description
Find a file
Remco Haszing 5fd08c73ed
Update prettier to match yaml-language-server
Since both yaml-language-server and prettier are included in the bundle, their
versions should match for best compatibility. Also code has been formatted using
the updated prettier.
2021-04-13 20:17:12 +02:00
.github/workflows Add GitHub workflow 2021-03-25 17:55:23 +01:00
.husky Update husky and lint-staged 2021-03-25 17:40:43 +01:00
.vscode Remove unused dependencies 2021-03-25 17:40:16 +01:00
examples Update prettier to match yaml-language-server 2021-04-13 20:17:12 +02:00
scripts Update prettier to match yaml-language-server 2021-04-13 20:17:12 +02:00
src Update prettier to match yaml-language-server 2021-04-13 20:17:12 +02:00
.editorconfig build: migrate latest json language service implementation 2018-11-23 10:04:33 +08:00
.gitignore Gitignore built packages 2021-03-25 18:01:10 +01:00
.prettierignore Apply prettier on all committed files 2021-03-25 17:59:58 +01:00
LICENSE.md Apply prettier on all committed files 2021-03-25 17:59:58 +01:00
package.json Update prettier to match yaml-language-server 2021-04-13 20:17:12 +02:00
README.md Apply prettier on all committed files 2021-03-25 17:59:58 +01:00
test-demo.png chore: align with pengx17/master branch 2018-10-25 10:12:07 +08:00
tsconfig.esm.json Remove unused dependencies 2021-03-25 17:40:16 +01:00
tsconfig.json Remove unused dependencies 2021-03-25 17:40:16 +01:00
yarn.lock Update prettier to match yaml-language-server 2021-04-13 20:17:12 +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 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