Changelog¶
All notable changes to the Sonic Pi for VS Code extension will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased]¶
Added¶
- GitHub Codespaces support — devcontainer with Sonic Pi server, SuperCollider, PulseAudio/JACK audio stack, and ffmpeg HTTP audio streaming
- Audio stream webview —
Sonic Pi: Listen (Audio Stream)command and Controls sidebar entry for hearing output in headless environments - Environment detection — auto-detect Codespaces and remote containers via environment variables (
SONIC_PI_HOME,AUDIO_STREAM_PORT) - Copilot agent and prompt templates — contributor agent, contribution workflow instructions, and reusable prompt files
- Live loop CodeLens — a
▶ Run loop :namelens above everylive_loopblock sends just that loop to Sonic Pi for granular live coding Sonic Pi: New Loop Filecommand — opens a ready-to-run starter file with two synced live loopsSonic Pi: Open Logcommand and Controls sidebar entryOscTransport.request()— send-and-await-reply helper with timeout, now backing ping and beautify
Changed¶
- Port discovery now uses a saved
port-infofile instead of parsingspider.log DaemonSpawnerchecksSONIC_PI_HOMEenvironment variable for daemon pathDaemonSpawnerprefers Sonic Pi's bundled Ruby (app/server/native/ruby/bin/ruby) over systemruby, which is often too old to rundaemon.rbDaemonSpawnernow shuts the daemon down gracefully via/daemon/exit(SIGTERM only as a 2s fallback), so spider/scsynth/tau exit cleanlyConnectionManagertries existing port-info file before spawning a new daemon- Run commands now use a stable per-document buffer id, so re-running a file replaces the previous job instead of accumulating new server-side buffers
- Auto-connect on activation is quiet: no error popup when Sonic Pi isn't running (the status bar still shows the state; manual connect reports errors)
- Extension declared as
extensionKind: ["workspace"]for remote support - Added
docs/10-codespaces-support.mdarchitecture documentation for remote runtime and streaming - Removed redundant
activationEvents(VS Code generates them from contributions) - Added
@types/node;npx tsc --noEmitnow passes clean and CI can type-check
Fixed¶
- Mario Overworld example timing: all loops now align to 24 beats (6 bars of 4/4)
- Tests mock
findDaemonPathto prevent side effects from host Sonic Pi installs - Audio stream webview now applies CSP + nonce script policy and validates stream port values
- Audio stream webview buttons were dead: inline
onclickhandlers are blocked by the webview's own CSP; they are now wired viaaddEventListener, and "Open in Browser" usesvscode.env.openExternal - OSC listen socket bound to the remote host's IP when
sonicpi.osc.hostwas not localhost, making any remote connection fail; it now binds a local interface /buffer-beautifysent only 2 of the 5 protocol arguments; it now sends cursor line/index/first-visible-line and restores the cursor from the server reply- Daemon-spawn saved
port-infointo the app installation directory where reconnect never looked (and which is usually read-only); it now saves toSONIC_PI_HOME/home, matching discovery, and clears it when the daemon exits DaemonSpawner.isRunningstayed true after the daemon died on its own, blocking respawn on reconnect- OSC message handlers leaked on every failed connection attempt
- Log level
warning/errorsilently dropped multi-messages that contained warnings/errors; filtering is now per message type - Problems-panel diagnostics now clear when code is re-run and attach to the document that was run, not whichever editor is focused when the error arrives
- Stale run diagnostics no longer accumulate across runs
- Status bar no longer triggers a disconnect when clicked mid-connect
- Connection recovery now clears stale
port-infoand retries with fresh discovery when initial ping fails
[0.1.0] - 2026-03-05¶
Added¶
- Syntax highlighting for
.spiand.sonicpifiles with full TextMate grammar - IntelliSense autocompletion for synths, samples, FX, scales, chords, notes, options, and functions
- Hover documentation with rich details for all Sonic Pi language elements
- Run/Stop commands with F5/Shift+F5 keybindings
- Run Selection to execute only selected code (Ctrl+F5 / Cmd+F5)
- OSC transport layer with automatic port discovery and authentication
- Connection management with auto-connect, heartbeat, and status bar indicator
- Diagnostics integration — Sonic Pi errors appear in the Problems panel
- Log output channel for Sonic Pi messages with configurable log levels
- 31 code snippets for common Sonic Pi patterns
- 55 bundled examples organized by difficulty level
- 85-chapter tutorial from the official Sonic Pi documentation with sidebar tree view and webview reader
- Beautify Buffer command for auto-formatting code
- Audio recording commands (start, stop, save as WAV)
- Extension icon from the official Sonic Pi project
- Getting Started walkthrough for new users
- 150 scales, 70 chords, and 153 notes in the data layer for completions and hover
- 8 configurable settings for connection, logging, and paths