adamvoss / vscode-yaml

YAML language support, including JSON Schema validation, for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=adamvoss.yaml
MIT License
29 stars 5 forks source link

feature request: jinja support? #17

Open boyvinall opened 6 years ago

boyvinall commented 6 years ago

Thanks for this plugin, very useful.

Not sure how this might be done, but I'll ask anyway 😄 ... is it possible to somehow enable jinja2 support for validation? I guess this might be a wider issue for vscode too, not only for this plugin. But I have a yaml file with some jinja2 tags that looks like this:

screen shot 2017-12-12 at 11 15 09

The errors/warnings I get are:

screen shot 2017-12-12 at 11 20 31

It'd be great if this could look a bit nicer somehow.

FYI, these yaml files are from openstack rally

Thanks!

adamvoss commented 6 years ago

Relevant: https://github.com/Microsoft/vscode/issues/1751

I'm probably not likely to implement this without the above. But if someone else wants to design and implement a way to make it work, it would probably be accepted here.