SLS is the Storyscript Language Server. It provides common editor features like completion to its clients.
Storyscript Language Server (SLS)
SLS implements a Language Server for Storyscript.
TBD (work in progress).
Work in a fresh virtual environment:
virtualenv venv -p /usr/bin/python3.6 . ./venv/bin/activate
And then install all dependencies:
pip install -r requirements.txt
You can start the LSP server with:
Furthermore, install pre-commit and set up a git hook:
pip install --user pre-commit pre-commit install
This will ensure that every commit is formatted according to
Testing with VSCode
- Setup the VS client
Initially the dependencies of the VSCode extension need to be fetched:
cd client npm install --prefix client
- Start a TCP LSP server
- Open up VSCode
cd client npm run --prefix client vscode
VSCode will automatically try to reconnect if the socket has been lost.
Alternative: spawn via VSCode
You can also start up a VSCode instance via VSCode. This will allow you to debug into an extension.
- Open VSCode
- Open Folder (-> select "<this-dir>/client")
- View -> Debug
- Run "Launch Client"
- Open up a directory with Storyscript files or create a new
If a Stdio server is used, it will automatically spawn the server and connect to it. On changes to the server, it can be killed by e.g.:
VSCode will automatically respawn a new LSP server instance.
If you want to continuously build the client extension, do:
npm run --prefix client watch
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size sls-0.5.0-py2.py3-none-any.whl (53.3 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View|
|Filename, size sls-0.5.0.tar.gz (181.8 kB)||File type Source||Python version None||Upload date||Hashes View|