Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>StallionNew to Visual Studio Code? Get it now.

Stallion

Scenery

|
14 installs
| (0) | Free
A scripting bridge for Cavalry
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info
Stallion icon

stallion


VSCode extension to send scripts to Cavalry.

Warning
This extension is still in beta. Please report any issues you run into.

Features

  • Send scripts to Cavalry
  • Insert Cavalry's Typescript definitions
  • Automatically installs the Stallion script

Requirements

  • VSCode
  • Cavalry 1.5.2+

Installation

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).

  1. 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
    ```
    
  2. 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

  1. The server address and port are hardcoded (127.0.0.1:8080). Make sure nothing else is using this port.
  2. ui.scriptLocation returns a temporary path if the document in VSCode hasn't been saved.

Icon Credits

The icon is Horse by Buztas Linggar from Noun Project

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft