An extension I developed to alert me with a sound whenever a command fails in the VS Code terminal (when the exit code is not 0). I no longer have to constantly check the screen when long-running builds, compilations, or tests fail in the background!
Features
Automatically plays a warning sound (fail.wav) when a command executed in the terminal fails.
Cross-platform: I designed it to detect the operating system and work seamlessly via built-in media players on Windows, macOS, and Linux.
Listens silently in the background and doesn't impact VS Code performance.
Requirements
In order for my extension to catch command completions and exit codes, VS Code's "Shell Integration" feature must be active. This is enabled by default in modern VS Code versions. To check:
Open VS Code Settings (Ctrl + ,)
Search for Terminal > Integrated: Shell Integration and make sure it is checked.
Manual Installation (VSIX)
To install this extension in your own environment:
Open the Extensions tab in VS Code (Ctrl+Shift+X).
Click on the three dots (...) in the top right corner.
Select Install from VSIX...
Choose the compiled .vsix file to complete the installation.
Customizing the Sound
If you clone the project to your computer and want to change the sound:
You can replace the sounds/fail.wav file in the root directory with another .wav file of your choice (keeping the exact same name), and repackage the project using the vsce package command.