Skip to content

Commit cd42814

Browse files
committed
Add JSON schema for Wrangler (#7602)
* Add JSON schema for Wrangler * Create tough-tables-sleep.md * Use new icon
1 parent f761e9c commit cd42814

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

.changeset/tough-tables-sleep.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"cloudflare-workers-bindings-extension": patch
3+
---
4+
5+
Add JSON schema for Wrangler config files
Lines changed: 11 additions & 0 deletions
Loading

packages/cloudflare-workers-bindings-extension/package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@
3838
"icon": "$(add)"
3939
}
4040
],
41+
"jsonValidation": [
42+
{
43+
"fileMatch": "**/wrangler.{json,jsonc,toml}",
44+
"url": "https://www.unpkg.com/wrangler/config-schema.json"
45+
}
46+
],
4147
"menus": {
4248
"view/title": [
4349
{
@@ -57,7 +63,7 @@
5763
{
5864
"id": "cloudflare-workers-bindings",
5965
"name": "Bindings",
60-
"icon": "media/cf-workers-logo.svg",
66+
"icon": "media/cloudflare-workers-outline.svg",
6167
"contextualTitle": "Cloudflare Workers Bindings"
6268
}
6369
]
@@ -67,7 +73,7 @@
6773
{
6874
"id": "cloudflare-workers",
6975
"title": "Cloudflare Workers",
70-
"icon": "media/cf-workers-logo.svg"
76+
"icon": "media/cloudflare-workers-outline.svg"
7177
}
7278
]
7379
},

0 commit comments

Comments
 (0)