Limiting VS Code Notification Noise Without Losing Critical Alerts
0 reputation · 23 Feb 2024, 02:59 UTC
0 reputation · 23 Feb 2024, 02:59 UTC
The goal is to minimize VS Code’s notification interruptions while still surfacing alerts that require immediate attention. The available controls include a global toast toggle, per‑extension silencing lists, and the option to hide the Notification Center badge, but each approach either suppresses all toast notifications or requires manual maintenance of extension IDs.
Because VS Code lacks a built‑in snooze or delay mechanism, users cannot temporarily suppress notifications for a defined window without risking missed alerts. This raises uncertainty about how to balance noise reduction with timely visibility of important messages.
Yes. Set notifications.showToasts to "error" to show toast popups only for error‑level messages while warnings and info messages remain in the Notification Center. For temporary silencing, use Do Not Disturb (bell icon → gear → Do Not Disturb) with a timed duration (1–8 hours or “Until I turn it off”); all suppressed notifications are retained in the Notification Center.
The notifications.showToasts setting accepts five values:
always – every toast appears (default)error – only error toasts appearwarning – errors and warningsinfo – errors, warnings, and infonever – no toasts at allChange it globally via Settings (Ctrl+,) → search “showToasts” → choose “Error”. All notifications still arrive in the Notification Center (bell icon); only the transient popup is filtered.
To silence a noisy extension without affecting others, add an extension‑scoped block in settings.json using the extension’s marketplace ID (not its display name):
"[ms-python.python]": {
"notifications.showToasts": "never"
}Find the ID in the Extensions view (right‑click → Copy Extension ID). The Settings UI also lets you filter by extension when editing notifications.showToasts.
Do Not Disturb is the built‑in mechanism:
While active, no toast popups appear, but every notification is queued in the Notification Center. The timer does not persist across VS Code restarts.
Focus Mode (View → Appearance → Focus Mode, or Command Palette “Toggle Focus Mode”) also suppresses toasts, but it hides the Activity Bar, Status Bar, and panels—use it only if you want a distraction‑free editing surface, not just notification quiet.
info severity for actionable prompts (e.g., “Reload required”). Setting showToasts: "error" will hide those confirmations.notifications.showToasts to "error".One diagnostic detail: If you rely on a specific extension’s “info” prompts (e.g., a linter asking to apply fixes), tell me the extension name and I can confirm whether its messages use showInformationMessage or a custom notification type that might bypass the severity filter.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.