Skip to content

Docs YAML Support extension for Visual Studio Code, support snippets and applying schema valdiation according to the YamlMime and snippets

Notifications You must be signed in to change notification settings

928PJY/docs-yaml

Repository files navigation

Docs-YAML Support for Visual Studio Code

Current Version Install Count Open Issues

Provides Docs-YAML support via yaml-language-server.

Features

screencast

  1. YAML validation:

    • Apply schema validation according to the YamlMime
    • Detects errors such as:
      • Invalid property value type
      • Invalid child property
      • Required property is missing
      • Unexpected property
  2. Auto completion:

    • Auto completes on the YamlMime and supported property

    For now, the VSCode don't support auto-completion on a comment, so do not type # to get intellisense, just type YamlMime or YamlMime type.

    • Supported properties recommendation if provided by schema(Ctrl + Space)
    • Enumerated property value recommendation if provided by schema
  3. Hover support:

    • Hovering over a property shows description if provided by schema

Extra Knowledge

YamlMime

A YAML syntax to identify the mime type of this YAML document, which will decide the applied schema type e.g.

### YamlMime:Module
....
  • YamlMime should be the first line
  • There are should be a space between triple # and case-sensitive YamlMime
  • There are should not be extra space between YamlMime, MimetypeName and :

Developer Support

Developing the client side

  1. Install prerequisites:
  2. Fork this repository.
  3. Build this project.
    # clone your forked repository
    $ git clone https://github.com/{your-github-name}/docs-yaml
    $ cd docs-yaml
    # install npm dependencies
    $ npm install
    # compile
    $ npm run compile
    # open the project in vscode
    $ code .
  4. Make changes as neccessary and the run the code using F5. Refer to VS Code documentation on how to run and debug the extension.
  5. Create a pull-request to Github repository and we will review, merge it and publish new version extension regularly.

Contributing to schemas and snippets

Comming soon.

All contributions are welcome!

About

Docs YAML Support extension for Visual Studio Code, support snippets and applying schema valdiation according to the YamlMime and snippets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published