Play a sound when integrated terminal commands fail or terminal output matches an error pattern.
- Detects non-zero exit codes from integrated terminal commands.
- Uses shell execution events when available, with terminal close fallback.
- Detects error-like terminal text with configurable regex.
- Runs platform-specific sound command (macOS/Linux/Windows).
- Falls back to terminal bell (
\a) if sound command fails. - Includes cooldown to prevent noisy repeat alerts.
- Includes a command palette action to test sound playback.
This extension contributes the following settings:
terminalErrorSound.enabled(boolean)terminalErrorSound.matchTerminalText(boolean)terminalErrorSound.pattern(string regex)terminalErrorSound.cooldownMs(number)terminalErrorSound.soundFile(string)terminalErrorSound.soundCommand.macos(string)terminalErrorSound.soundCommand.linux(string)terminalErrorSound.soundCommand.windows(string)
Run Faaaah Error Sound: Test Sound from the command palette to verify audio setup instantly.
You have two options:
- Put your file in the extension folder, for example
media/error.wav, then set:
"terminalErrorSound.soundFile": "media/error.wav"- Use an absolute path:
"terminalErrorSound.soundFile": "/Users/you/sounds/error.wav"When soundFile is set, the extension auto-builds the correct command for your OS.
If you want full control, set terminalErrorSound.soundCommand.<os> and include {soundFile} in it.
npm install
npm run compilePress F5 in VS Code to run an Extension Development Host.
npm install
npm run packageThis generates a .vsix file in the project root.
- Update
publisherinpackage.jsonto your Marketplace publisher ID. - Bump the extension
version. - Create a Personal Access Token in Azure DevOps for Marketplace publishing.
- Login and publish:
npx vsce login <your-publisher-name>
npm run publishMIT