Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>YarnSpinner Command SchemaNew to Visual Studio Code? Get it now.
YarnSpinner Command Schema

YarnSpinner Command Schema

fmoo

|
537 installs
| (0) | Free
Basic file structure and command parameter validation for YarnSpinner
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

yarnspinner-commandschema README

yarnspinner-commandschema is a Diagnositic plugin for YarnSpinner.

Features

Basic validation of YarnSpinner .yarn files, including limited command parameter validation.

TODO: Insert a screenshot here

Requirements

This plugin depends on the SecretLab.yarn-spinner language plugin.

Extension Settings

This extension contributes the following settings:

  • YarnSpinner.commandValidationSchema: Configure a schema for command validation
{
    "YarnSpinner.commandValidationSchema": {
        "commands": {
            "stop": {"maxArgs": 0},
            "if": {"minArgs": 1},
            "else": {"maxArgs": 0},
            "elseif": {"minArgs": 1},
            "endif": {"maxArgs": 0},
            "wait": {"minArgs": 1, "maxArgs": 1, "types": ["number"]},
            "SetDirection": {"minArgs": 2, "types": ["string", "direction"]},
            "Move": {"minArgs": 2, "maxArgs": 3, "types": ["string", "direction", "number"]}
        },
        "enums": {
            "direction": ["up", "down", "left", "right", "forward", "backward"]
        }
    }
}

Known Issues

  • Builtin commands must be manually specified in YarnSpinner.commandValidationSchema

Release Notes

0.0.4

  • Don't parse conditional choices as commands

0.0.3

  • Allow extra newlines at EOF (after === marker)

0.0.2

  • Hot reload schema on configuration changes

0.0.1

  • Initial release.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft