Skip to content
| Marketplace
Sign in
Visual Studio Code>Testing>PloverNew to Visual Studio Code? Get it now.
Plover

Plover

Jeff Sallans

|
1 install
| (0) | Free
Quickly set up, test and monitor application alerts that post to Microsoft Teams.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Plover

Quickly set up, test and monitor application alerts that post to Microsoft Teams — from inside VS Code.

  • Alerts are .plvr.py (API checks) or .plvr.sql (database checks) files with plvr-* comment annotations.
  • Run any Alert once with the ▶ CodeLens or tree button; start the Monitor to run them on cron while VS Code is open.
  • Events are recorded in .plover/events-open.jsonl / .plover/events-closed.jsonl and reviewed (and closed) in the Open Events view.

Full behaviour: docs/SPEC.md. Vocabulary: GLOSSARY.md. Decisions: docs/adr.

Quick start

  1. Setup config — open the Plover sidebar → Add Auth / Add Webhook (or Plover: Add Auth).
    • Database: a JDBC URL, e.g. jdbc:sqlserver://sql01;databaseName=Reporting;integratedSecurity=true.
    • API: Microsoft Entra ID scopes for the API you call. For an endpoint that needs no sign-in (e.g. a public health check), skip this and use plvr-auth none in the Alert.
    • Webhook: a Teams Workflows URL (channel ⋯ → Workflows → Post to a channel when a webhook request is received).
    • Email List: Plover: Add Email List — recipients are emailed through your classic Outlook (Windows; the new Outlook can't be automated).
  2. Create an Alert — Plover: New Alert (or the + on the tree).
  3. Run and monitor — ▶ to test it; ▶ on the Plover - Stopped row to start the Monitor.
-- plvr-auth     reporting-db
-- plvr-webhook  ops-channel
-- plvr-email    ops-team
-- plvr-cron     */15 * * * *
-- plvr-expect   no_results
-- plvr-message  Order {id} has been stuck for {minutes} minutes
select id, datediff(minute, updated_at, getdate()) as minutes
from orders where status = 'processing' and updated_at < dateadd(minute, -30, getdate())
# plvr-auth     entra-prod
# plvr-request  GET {baseUrl}/healthz
# plvr-webhook  ops-channel
# plvr-cron     */15 * * * *
# plvr-expect   no_results
# plvr-message  {name} is {status}
def alert(payload):
    return [s for s in payload["services"] if s["status"] != "pass"]

Development

Prerequisites

  • Node.js 20+ and npm
  • Python 3 on PATH (for .plvr.py Alerts and the Python harness tests)
  • Optional: a local SQL Server reachable with Windows integrated auth (localhost, default instance). The sample/ workspace and some tests use it. Without one, change the local-sql URL in sample/.vscode/settings.json to a database you can reach (e.g. jdbc:sqlite:test.db).
npm install

Automated tests

npm test                  # unit tests (parser, expectations, events, monitor, runners)
npm run test:integration  # end-to-end inside VS Code against a temp copy of ./sample

Set PLOVER_SKIP_MSSQL=1 to skip the unit test that needs a local SQL Server.

Manual testing before publishing

1. Launch the extension from source (F5)

  1. Open this folder in VS Code.
  2. Open Run and Debug (Ctrl+Shift+D), pick Run Plover (sample workspace) and press F5. This runs npm run build and opens a new Extension Development Host window with the sample/ folder loaded.
  3. In the new window, click the Plover bird icon in the Activity Bar.
  4. Set breakpoints anywhere in src/; they are hit in the original window. Plover's run log (inputs, outputs, Events, Teams posts) is in the host window under Output → Plover. Uncaught errors appear in the original window's Debug Console.

To iterate on changes:

  • Run npm run watch in a terminal so the bundle rebuilds on save, then press Ctrl+R in the Extension Development Host window to reload it; or
  • stop debugging and press F5 again, which rebuilds through the pre-launch task.

2. Walk through the workflow

In the Extension Development Host:

Setup config

  • [ ] In the host window, File → Open Folder on an empty folder, then open the Plover sidebar. It should show the welcome view with Add Auth, Add Webhook and New Alert buttons. Switch back to sample/ afterwards.
  • [ ] Plover: Add Auth → Database, enter a JDBC URL; confirm it is written to .vscode/settings.json.
  • [ ] Plover: Add Webhook with a real Teams Workflows URL → Send Test Message; confirm the card arrives in Teams.
  • [ ] Plover: Update Secret lets you change the webhook URL.
  • [ ] Plover: Add Email List → Check Outlook (no send), then Send Test Email to yourself; confirm it arrives. Webhook and email failures appear in Output → Plover with a hint.

Create an Alert

  • [ ] Plover: New Alert (or + on a folder row) for each type: API, SQL, Heartbeat. The file opens pre-annotated with plvr-monitor false and a TODO comment; the tree shows (not monitored) until you remove it.
  • [ ] Type # plvr- / -- plvr- and check the completions; hover plvr-cron to see the next run times.
  • [ ] Break annotations (plvr-auth nope, plvr-cron 0 0 * * * *, plvr-monitor maybe, between(x, 5, 1)) and confirm red squiggles and entries in the Problems panel after you save (nothing updates while typing). Use the 💡 quick fix on an unknown Auth or Webhook.

Run and monitor

  • [ ] Click ▶ Run Alert above the annotations and the ▶ on the tree row; check the notification and Output → Plover.
  • [ ] database/heartbeat.plvr.sql writes to .plover/events-closed.jsonl and, with a plvr-webhook, posts to Teams.
  • [ ] Make an Alert fail (e.g. select 1 as x with plvr-expect no_results). Confirm:
    • the tree shows ❌ (or ⚠️ for plvr-severity warning) on the file and every parent folder;
    • the Open Events view lists it, and running again increments ×occurrences instead of adding a row;
    • the status bar shows ❌1 with a warning background;
    • clicking the event opens its details; Close (✓) moves it to events-closed.jsonl and the icons return to ✅.
  • [ ] database/snapshots/database-list.plvr.sql: the first run creates database-list.plvr.snap; edit the snap file and run again to see a snapshot Event.
  • [ ] Start the Monitor from the Plover - Stopped row. The status bar shows $(pulse) Plover and tree rows show next HH:MM. Use a */1 * * * * cron (expect the 15-minute warning) to watch a scheduled run happen.
  • [ ] Reload the window (Ctrl+R): the Monitor comes back in the same Running/Stopped state.
  • [ ] API Alert: point sample/api/service-health.plvr.py and the example-api Auth at a real endpoint and scopes. Run it, sign in with Microsoft when prompted, and confirm the JSON response reaches the function.

3. Test the packaged VSIX

The F5 host loads the unminified development build. Before publishing, also test the exact package that users will install:

npm run package
code --install-extension plover-0.1.0.vsix

Reload VS Code, open a folder with .plvr.* files (or sample/) and repeat the key checks above. Remove it afterwards with:

code --uninstall-extension your-publisher.plover

4. Before publishing

  • Set publisher in package.json (currently the placeholder your-publisher), and bump version.
  • Run npm test and npm run test:integration.
  • Run npm run package and share the .vsix, or publish it with vsce publish.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft