No description
Find a file
Remco Haszing c12db2ef5b
Merge pull request #48 from remcohaszing/monaco-imports
Replace monaco namespace with monaco-editor imports
2021-07-17 12:46:06 +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 Synchronize yarn lockfiles 2021-04-14 20:09:42 +02:00
scripts Use monaco-editor/esm/vs/editor/editor.api 2021-04-22 20:00:34 +02:00
src Use monaco-editor/esm/vs/editor/editor.api 2021-04-22 20:00:34 +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 Replace monaco namespace with monaco-editor imports 2021-04-13 21:18:18 +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 Replace monaco namespace with monaco-editor imports 2021-04-13 21:18:18 +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