formatting (textDocument/formatting, powered by yps-fmt)
go-to-definition (textDocument/definition)
Requirements
The extension is a thin client; it needs the yps-lsp language server on your machine.
Build it from the YoptaScript repository:
cargo build --release -p yps-lsp
Then point the extension at the binary (or put it on your PATH):
{
// absolute path to target/release/yps-lsp, or just "yps-lsp" if it is on PATH
"yoptascript.server.path": "/path/to/yoptascript-rs/target/release/yps-lsp"
}
Settings
Setting
Default
Description
yoptascript.server.path
yps-lsp
Path to the yps-lsp executable.
yoptascript.trace.server
off
Trace LSP traffic (off / messages / verbose).
Building the extension
cd editors/vscode
npm ci
npm run compile # bundle src/extension.ts -> dist/extension.js with esbuild
npm test # tokenization tests for the TextMate grammar
npm run package # produce a .vsix (requires @vscode/vsce)