Real-time secret detection in the editor. Catches secrets as you type — before they reach git history or CI.
Features
Inline diagnostics — red/yellow/blue squiggles on detected secrets
Hover tooltips — detection type and severity on hover
Quick-fix actions — append an exact value to .pastewatch-allow only when the CLI marks the finding as project-exemptible
Status bar — finding count for the active file
Auto-refresh — re-scans on file save (debounced, configurable)
Requirements
pastewatch-cli must be installed and available in your PATH.
brew install ppiankov/tap/pastewatch-cli
Installation
From Marketplace
Search for "pastewatch" in the VS Code Extensions view.
From VSIX
cd vscode-pastewatch
npm run package:vsix
code --install-extension pastewatch-*.vsix
Configuration
Setting
Default
Description
pastewatch.autoRefresh
true
Re-run diagnostics on file save
pastewatch.binaryPath
pastewatch-cli
Path to the CLI binary
pastewatch.debounceMs
500
Debounce window for save-triggered refresh
pastewatch.failOnSeverity
low
Minimum severity to show diagnostics
How It Works
The extension shells out to pastewatch-cli scan --format json --file <path> for each file. No detection logic is bundled — the CLI is the single source of truth.
The allow-file action requires projectExemptible: true in the finding. Intrinsic secrets and custom-rule hits have no allow-file action; older CLI versions without this field also have no action.