Error Sound Alert is a lightweight Visual Studio Code extension that plays a sound whenever a terminal command fails (non-zero exit code). It helps you instantly notice errors without constantly watching the terminal.
🚀 Features
🔔 Automatic Error Detection
Plays a sound when a terminal command exits with an error.
🎯 Accurate Detection
Uses exit codes instead of unreliable keyword matching.
🎵 Custom Sound მხარდაჭერა
Easily change the alert sound to your preference.
⚙️ How It Works
The extension listens to terminal command executions.
If a command exits with a non-zero exit code, a sound is played.
No false positives from console.log or print statements.
🎧 Change Error Sound
You can customize the alert sound:
Open Command Palette:
Ctrl + Shift + P
Type:
Change Error Sound
Select a .wav file from your system
⚠️ Important:
Only .wav files are supported
.mp3 or other formats will not work
📦 Requirements
Visual Studio Code (version compatible with your extension)
OS with audio playback support:
Windows (PowerShell)
macOS (afplay)
Linux (aplay)
⚙️ Extension Settings
Currently, this extension does not add configurable settings via settings.json.
⚠️ Known Limitations
If a program exits with code 0 despite having logical errors, no sound will be played
Some custom shells/tools may not report exit codes reliably
Only terminal-based errors are detected (not editor diagnostics)