Baigan
This VS Code extension plays an audio file when a terminal command fails (non-zero exit code).
Current bundled audio
baigan.webm (in the extension root)
How it works
- Watches terminal shell execution events.
- When a command exits with non-zero code, it plays audio.
- Playback is throttled by
cooldownMs to avoid repeating too fast.
- Includes a manual command:
Baigan: Play Sound Now.
Settings
terminalErrorAudioAlert.cooldownMs: minimum delay between plays.
terminalErrorAudioAlert.audioFile: audio path (relative to extension folder or absolute).
Build
npm install
npm run compile
Run inside VS Code
- Open this folder in VS Code.
- Press
F5 to launch the Extension Development Host.
- In the new window, open a terminal and run a command that prints an error (for example:
ls does-not-exist).
- The sound should play.
Aayein-baigan-vs-code-extension
| |