/goboscript-lsp

Language Server and VS Code extension for goboscript

Primary LanguagePythonMIT LicenseMIT

goboscript Language Server

This software provides features such as Autocompletion, Go to definition, Documentation preview to code editors for goboscript.

Go to definition and documentation on hover

Auto complete

Installation

cd goboscript-lsp
pip install -e .

Supported Editors

All editors who support the Language Server Protocol are supported.

VS Code

Install the extension from VSIX Package

Helix Editor

Helix is a modal text editor, use the following configuration.

Add this configuration to ~/.config/helix/languages.toml (Create the file if doesn't exist.)

[[language]]
name = "goboscript"
scope = "source.goboscript"
roots = ["stage.gobo"]
language-server = { command = "python", args = ["-m", "goboscript_lsp"] }
file-types = ["gobo"]

Installation

python -m pip install -e .

Development

Development is against the VS Code extension. Open /vscode-extension/ in VS Code and hit F5.

Start the language server before starting VS Code.

python -m goboscript_lsp --tcp --port 6001

Footnotes

The code in /vscode-extension/ was adpoted from lark-language-server.