Skip to content

Commit

Permalink
feat: add documentation links to vscode extension (#7689)
Browse files Browse the repository at this point in the history
* refactor

* notification improvements

* add sidebar docs link

* changeset

* check wrangler version

* add binding icons

* supportedWrangler -> unsupportedWrangler

* update and add test

* add test comment

* fixups
  • Loading branch information
emily-shen authored Jan 23, 2025
1 parent d7210ec commit 3886065
Show file tree
Hide file tree
Showing 29 changed files with 453 additions and 77 deletions.
5 changes: 5 additions & 0 deletions .changeset/wet-beds-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"cloudflare-workers-bindings-extension": patch
---

Add documentation links to binding created notification and bindings tree view
23 changes: 21 additions & 2 deletions packages/cloudflare-workers-bindings-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@
{
"command": "cloudflare-workers-bindings.addBinding",
"title": "Cloudflare Workers: Add binding",
"icon": "$(add)"
"icon": "$(add)",
"enablement": "!ext.unsupportedWrangler"
},
{
"command": "cloudflare-workers-bindings.openDocs",
"title": "Cloudflare Workers: Open Documentation",
"icon": "$(book)"
}
],
"jsonValidation": [
Expand All @@ -57,6 +63,13 @@
"when": "view == cloudflare-workers-bindings",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "cloudflare-workers-bindings.openDocs",
"when": "view == cloudflare-workers-bindings && viewItem == binding",
"group": "inline"
}
]
},
"views": {
Expand All @@ -81,7 +94,13 @@
"viewsWelcome": [
{
"view": "cloudflare-workers-bindings",
"contents": "Welcome to Cloudflare Workers! [Learn more](https://workers.cloudflare.com).\n[Add a binding](command:cloudflare-workers-bindings.addBinding)"
"contents": "Welcome to Cloudflare Workers! [Learn more](https://workers.cloudflare.com).\n[Add a binding](command:cloudflare-workers-bindings.addBinding)",
"when": "!ext.unsupportedWrangler"
},
{
"view": "cloudflare-workers-bindings",
"contents": "Please upgrade Wrangler to at least 3.99.0 in order to use the Cloudflare Workers Extension. You can install the latest Wrangler version by running `npm i wrangler@latest`",
"when": "ext.unsupportedWrangler"
}
]
},
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 3886065

Please sign in to comment.