SaltStack extension for Visual Studio CodeThis extension adds language colorization support for the SaltStack template language to VS Code. The language is a yaml with Jinja2 templating. Using the extensionFirst, you will need to install Visual Studio Code AutocompletionSalt statesWhen writing Salt states, pressing ctrl+space will offer to autocomplete state functions and some stanzas. Example:
Results in:
Full state modules can also be completed:
Results in:
SaltcheckSaltcheck tests (.tst files) can also be autocompleted with the keyword sctest<ctrl+space> Example:
ContributingIf you are interested in making this extension better, I will gladly take pull requests that expand it to add intellisense, hovers and validators. If you're not familiar with working on Visual Studio Code extensions, check out the VS Code extenders documentation at https://code.visualstudio.com/docs. To get started on the extension...
If you have a previous release of the extension installed and you perform these steps, Code will temporarily override the locally installed version instead for the one you're working on for the second window. The first (main) window will remain to have the locally installed, prior version installed and enabled until an update is available. Publishing
CreditsCreated by Marek Obuchowicz from KoreKontrol. Many thanks to William Holroyd, Ross Neufeld and Christian McHugh. License |