Skip to content

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 :name lens above every live_loop block sends just that loop to Sonic Pi for granular live coding
  • Sonic Pi: New Loop File command — opens a ready-to-run starter file with two synced live loops
  • Sonic Pi: Open Log command and Controls sidebar entry
  • OscTransport.request() — send-and-await-reply helper with timeout, now backing ping and beautify

Changed

  • Port discovery now uses a saved port-info file instead of parsing spider.log
  • DaemonSpawner checks SONIC_PI_HOME environment variable for daemon path
  • DaemonSpawner prefers Sonic Pi's bundled Ruby (app/server/native/ruby/bin/ruby) over system ruby, which is often too old to run daemon.rb
  • DaemonSpawner now shuts the daemon down gracefully via /daemon/exit (SIGTERM only as a 2s fallback), so spider/scsynth/tau exit cleanly
  • ConnectionManager tries 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.md architecture documentation for remote runtime and streaming
  • Removed redundant activationEvents (VS Code generates them from contributions)
  • Added @types/node; npx tsc --noEmit now 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 findDaemonPath to 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 onclick handlers are blocked by the webview's own CSP; they are now wired via addEventListener, and "Open in Browser" uses vscode.env.openExternal
  • OSC listen socket bound to the remote host's IP when sonicpi.osc.host was not localhost, making any remote connection fail; it now binds a local interface
  • /buffer-beautify sent 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-info into the app installation directory where reconnect never looked (and which is usually read-only); it now saves to SONIC_PI_HOME/home, matching discovery, and clears it when the daemon exits
  • DaemonSpawner.isRunning stayed true after the daemon died on its own, blocking respawn on reconnect
  • OSC message handlers leaked on every failed connection attempt
  • Log level warning/error silently 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-info and retries with fresh discovery when initial ping fails

[0.1.0] - 2026-03-05

Added

  • Syntax highlighting for .spi and .sonicpi files 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