This is a port of the YAML validator from the triggermail_sublimetext_plugin. It functions similarly, run the 'Triggermail YAML Validate' command from the command palette to validate the current file you have open.
This extension is not on VS Code Marketplace and must be packaged and installed locally on your machine. Here are the steps:
- make sure you have VS Code updated
- git clone to your machine
- run
npm i && npm i -g vsce
in command line of the directory (vsce is the vs code extension packaging cli tool) - run
vsce package
in command line - copy the resulting .vsix file to
~/.vscode/extensions
or just runcode --install-extension [vsixfile]
. if neither work you can manually install an extension byClick the ... at the top-right corner of the Extensions pane and select "Install from VSIX..." on the menu that appears.
- to run the validator, open the command palette (command + shift + p) on the current .yaml file you have open and run the
Triggermail YAML Validate
command.