Author: Abhishek Kumar – Vereda Digital Technologies, Patna, Bihar
ZapAlert is a Visual Studio Code extension that provides audio alerts for command success or errors in the integrated terminal. It is designed to improve developer productivity by providing immediate feedback without constantly monitoring the terminal output.
Features
Detects a wide range of common terminal errors including syntax errors, runtime errors, missing modules, permission issues, and command not found messages.
Plays distinct audio alerts for first and repeated errors.
Plays a success sound when commands complete successfully or tests/builds pass.
Plays a success sound when the terminal is cleared.
Works exclusively in the VS Code integrated terminal (bash/zsh on macOS).
Handles rapid output with a debounce mechanism to prevent overlapping audio.
Lightweight, with no additional configuration required.
Workflow
Open the integrated terminal in VS Code (Ctrl+` on macOS).
Run any command or script.
ZapAlert monitors terminal output in real time:
Error detection: Plays an alert sound on error; repeated errors trigger a different sound.
Success detection: Plays a success sound when commands/tests/builds succeed.
Clear detection: Plays a success sound when you run clear.
Note: ZapAlert does not work in external system terminals outside VS Code.
Visual Workflow
+--------------------------+
| Open VS Code Terminal |
+------------+-------------+
|
v
+---------------------------+
| Execute Command / Script |
+------------+--------------+
|
v
+----------------------+
| Monitor Terminal Data |
+-----------+----------+
|
+------------+------------+
| |
v v
+-------------------+ +-------------------+
| Detect Error? | | Detect Success? |
+--------+----------+ +--------+----------+
| Yes | Yes
v v
+-------------------+ +-------------------+
| Play Error Sound | | Play Success Sound|
+-------------------+ +-------------------+
|
If repeated error
|
+-------------------+
| Play Repeat Sound |
+-------------------+
Installation
From Marketplace
Search for ZapAlert in the VS Code Extensions panel and click Install.
Manual
code --install-extension zapalert-0.0.1.vsix
Requirements
Visual Studio Code 1.60.0 or higher
macOS (uses afplay for audio playback)
Integrated terminal enabled
Known Issues
Highly customized or uncommon error messages may not trigger audio alerts.
Only works in the VS Code integrated terminal, not external terminals.
Audio relies on afplay on macOS.
Support
Email: work.abhishek031@gmail.com
Release Notes
0.0.1 – Initial Release
Core functionality with error and success detection.
Audio alerts for first and repeated errors, as well as successful commands.
Real-time monitoring of VS Code integrated terminal output.
0.0.2 – Randomized Error Sounds
Error alerts now play a random sound from a predefined set instead of based on error count.
Success sound behavior remains unchanged.
Improved terminal output buffering and multi-line error handling.
Maintains debounce mechanism to prevent overlapping audio on rapid outputs.
Fully production-ready for VS Code integrated terminal (bash/zsh on macOS).