Uses rustel lsp --stdio for completion, hover docs, and lint diagnostics, and rustel play --watch --ui-events for live playback with real-time note highlighting.
Install
Requires a rustel binary with rustel lsp --stdio on your PATH (or set rustel.serverPath).
Reload VS Code. Run git pull in that folder to update.
Use
Open examples/demo.strudel (or any .strudel / .std file):
Hover a function to read its docs.
Type . or trigger completion inside s("..."), scale("..."), or chord("...").
Ctrl+Enter (Cmd+Enter on macOS): play or update the score.
Ctrl+Shift+Enter (Cmd+Shift+Enter): play the selection or current line.
Ctrl+. (Cmd+.): stop playback.
Settings
rustel.serverPath: path to rustel (default rustel).
rustel.extraPlayArgs: extra flags for rustel play (for example ["--output", "silent"]).
rustel.highlightEvents: highlight active tokens during playback (default true).
rustel.trace: set to messages to inspect raw LSP frames in the Rustel output log.
Release and publish
Under the tzfm publisher on the Visual Studio Marketplace, add a Trusted Publishing policy for tzfm / rustel-vscode / release.yml (no long-lived secret needed).
Bump version in package.json, push to main, and push a matching tag such as v0.1.0.
.github/workflows/release.yml runs tests, attaches the .vsix to a GitHub Release, and publishes automatically via OIDC (plus Open VSX if OVSX_PAT is set).
Local dev: open this folder in VS Code and press F5, or run node --test.