Plays a sound whenever a terminal command fails — never miss an error again!
Features
Automatic error detection — Listens to all VS Code integrated terminals and plays a sound when any command exits with a non-zero exit code.
Cross-platform — Works on Windows, macOS, and Linux.
Debounced — A 5-second cooldown prevents the sound from spamming during rapid failures.
Toggle on/off — Quickly enable or disable via the Command Palette or settings.
How It Works
The extension uses VS Code's Shell Integration API to detect when a terminal command finishes with a non-zero exit code. When that happens, it plays the bundled audio.mp3 file using your system's audio player.
Examples that trigger the sound:
Command
Why
exit 1
Non-zero exit code
nonexistent-command
Command not found (exit code 127)
npm test (failing tests)
Test runner returns non-zero
gcc broken.c (compile error)
Compiler returns non-zero
Requirements
VS Code 1.93+ (for Shell Integration API support)
Terminal Shell Integration must be enabled (it is by default):