wilzbach / vscode

Visual Code plugin for Storyscript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VSCode Storyscript extension

CircleCI Contributor Covenant

Provides Storyscript language support for Visual Studio Code powered by the Storyscript Language Server.

Installation

Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.

ext install story.script

Open on the VSCode Marketplace

Features

Syntax highlighting

Storyscript in Visual Studio Code

Auto-completion

autocompletion

Linting

linting

Formatting

format

Debug output

Set sls.debug to true in your user or worspace settings.

To open your user and workspace settings, use the following VS Code menu command:

  • On Windows/Linux - File > Preferences > Settings
  • On macOS - Code > Preferences > Settings

You can also open the Settings editor from the Command Palette (Ctrl+Shift+P) with "Preferences: Open Settings" or use the keyboard shortcut (Ctrl+,).

Alternatively, quickly paste this in your workspace to create a new settings file:

cat > .vscode/settings.json <<EOF
{
    "sls.debug": true
}
EOF

Learn more about VSCode settings.

Development

  1. Install all dependencies
npm install
  1. Open up VSCode (dev instance)
npm run vscode

Development tips

Automatically recompile the extension

Use Typescript's watch to monitor all Typescript files and automatically recompile the extension:

npm run watch

Now you can use the vscode:open target to start the VSCode instance faster:

npm run vscode:open

Subsequent executions of npm run vscode:open will refresh the development instance.

Spawn via VSCode

You can also start up a VSCode instance via VSCode. This will allow you to debug into an extension.

  1. Open VSCode
  2. Open Folder (-> select "/client")
  3. View -> Debug
  4. Run "Launch Client"
  5. Open up a directory with Storyscript files or create a new .story file

About

Visual Code plugin for Storyscript

License:Apache License 2.0


Languages

Language:TypeScript 94.8%Language:JavaScript 5.2%