Install Stallion from the marketplace or look for Stallion in the VSCode extension tab and click the install button.
Usage
The extension exposes the following commands to the Command Palette (View > Command Palette).
Send To Cavalry
This will send the text from an open editor to Cavalry. It doesn't have to be a saved file. Focus the Cavalry window and check the Log Window for any errors.
If it was sucessful the Log Window will show:
```bash
[Info]
JavaScript: Stallion: Script successfully executed
```
Insert Cavalry Types
This will enable auto-complete for Cavalry's scripting API. It inserts a comment at the top of the open editor which references the latest cavalry-types.
Known Issues
The server address and port are hardcoded (127.0.0.1:8080). Make sure nothing else is using this port.
ui.scriptLocation returns a temporary path if the document in VSCode hasn't been saved.