Skip to content

rakam-io/monaco-jsonnet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monaco Jsonnet

Jsonnet language plugin for the Monaco Editor. It provides the following features when editing Jsonnet files:

  • Validation based on JSON schemas or by looking at similar objects in the same file
  • Validation: Syntax errors and schema validation
  • Syntax highlighting
  • Color decorators for all properties matching a schema containing format: "color-hex"' (non-standard schema extension)

#TODO

  • Hovers, based on JSON schemas
  • Formatting
  • Document Symbols
  • Code completion

Schemas can be provided by configuration. See here for the API that the JSON plugin offers to configure the JSON language support.

Internally the Jsonnet plugin uses the vscode-jsonnet-languageservice node module, providing the implementation of the features listed above.

Development

  • git clone https://github.com/Microsoft/monaco-jsonnet
  • npm install .
  • compile with npm run compile
  • watch with npm run watch
  • npm run prepublishOnly
  • open $/monaco-jsonnet/test/index.html in your favorite browser.

License

MIT

About

Jsonnet language support for the Monaco editor

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 50.8%
  • TypeScript 37.9%
  • JavaScript 11.3%