No description
Find a file
Remco Haszing 3762a98af0
Fix dependencies
This package includes `yaml-language-server` in its build. This means it’s not a
runtime dependency, but it belongs in `devDependencies`.

The runtime bundle does depend on the dependencies specified in `resolveSkip` in
`scripts/bundle-esm.js`. These packages have been added as direct dependencies
instead.
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 Apply prettier on all committed files 2021-03-25 17:59:58 +01:00
scripts use yaml-language-server's ESM and UMD modules; fix formatting 2020-09-20 21:23:48 -05:00
src Remove unused dependencies 2021-03-25 17:40:16 +01: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 Fix dependencies 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 Fix dependencies 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