Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>Wrangler Config CompanionNew to Visual Studio Code? Get it now.
Wrangler Config Companion

Wrangler Config Companion

Gap Hunter Labs

|
1 install
| (0) | Free
Validates wrangler.toml -- required fields (name/main/compatibility_date), and missing binding/id in kv_namespaces/r2_buckets/d1_databases entries. No data leaves your editor.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Wrangler Config Companion (VS Code)

Validates wrangler.toml (Cloudflare Workers) — required fields (name/main/compatibility_date), date format, and missing binding/id fields in kv_namespaces/r2_buckets/d1_databases entries. No data leaves your editor.

v0.1, new niche. Not a port from the Gap Hunter Labs IntelliJ- family catalog. Evidence, direct from Cloudflare's own repo: issue cloudflare/workers-sdk#1165 ("Feature Request: improve the wrangler.toml config experience"), confirmed textually — "only limited validation of the wrangler.toml file is currently provided."

What it checks

Live, on any wrangler.toml:

  • Missing top-level name, main, or compatibility_date.
  • compatibility_date not in YYYY-MM-DD format.
  • A [[kv_namespaces]] entry missing binding or id.
  • A [[r2_buckets]] entry missing binding or bucket_name.
  • A [[d1_databases]] entry missing binding or database_id.

v0.1 scope, honestly noted: a hand-rolled parser for the TOML subset wrangler.toml actually uses (top-level key=value, [section] tables, [[array.of.tables]]) — not a general TOML parser (no multi-line strings, no inline tables). main is checked as the modern entry-point field; the older [build] command-based convention isn't specially recognized.

Privacy

See PRIVACY.md — zero network calls, everything runs against the file already open in your editor.

Development

npm install
npm run compile   # or: npm run watch
npm test

To build an installable package without publishing:

npx @vscode/vsce package

License

Apache License 2.0 — see LICENSE.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft