feat: add documentation links to vscode extension#7689
Conversation
🦋 Changeset detectedLatest commit: f133236 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12935939251/npm-package-wrangler-7689You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/7689/npm-package-wrangler-7689Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12935939251/npm-package-wrangler-7689 dev path/to/script.jsAdditional artifacts:cloudflare-workers-bindings-extension: wget https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12935939251/npm-package-cloudflare-workers-bindings-extension-7689 -O ./cloudflare-workers-bindings-extension.0.0.0-v1690d09c9.vsix && code --install-extension ./cloudflare-workers-bindings-extension.0.0.0-v1690d09c9.vsixcreate-cloudflare: npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12935939251/npm-package-create-cloudflare-7689 --no-auto-update@cloudflare/kv-asset-handler: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12935939251/npm-package-cloudflare-kv-asset-handler-7689miniflare: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12935939251/npm-package-miniflare-7689@cloudflare/pages-shared: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12935939251/npm-package-cloudflare-pages-shared-7689@cloudflare/unenv-preset: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12935939251/npm-package-cloudflare-unenv-preset-7689@cloudflare/vite-plugin: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12935939251/npm-package-cloudflare-vite-plugin-7689@cloudflare/vitest-pool-workers: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12935939251/npm-package-cloudflare-vitest-pool-workers-7689@cloudflare/workers-editor-shared: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12935939251/npm-package-cloudflare-workers-editor-shared-7689@cloudflare/workers-shared: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12935939251/npm-package-cloudflare-workers-shared-7689@cloudflare/workflows-shared: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12935939251/npm-package-cloudflare-workflows-shared-7689Note that these links will no longer work once the GitHub Actions artifact expires.
Please ensure constraints are pinned, and |
096d275 to
90960c9
Compare
90960c9 to
484b53f
Compare
| const configUri = await getConfigUri(); | ||
| if (!config || !configUri) { | ||
| const docs = await window.showErrorMessage( | ||
| "Unable to locate Wrangler configuration file — have you opened a project with a wrangler.json(c) or wrangler.toml file?", |
There was a problem hiding this comment.
up to prod, but IMHO smth more action oriented like Unable to locate Wrangler configuration file. Please make sure your project contains a wrangler.json(c) or wrangler.toml file. would be more helpful than asking a question. But again, up to prod
| // if we didn't successfully read the config, it's probably because of an old wrangler version | ||
| // import wrangler will already have warned the user (prbs at the view binding stage) - do we want to error again? | ||
| // should we just hide the add buttons if wrangler is old? |
There was a problem hiding this comment.
I think it makes sense to show the error again here—users can trigger this through the command pallete
There was a problem hiding this comment.
the add binding command is now entirely disabled if you don't have a supported version of wrangler. but i'll leave in the warning in case they somehow get there
Fixes/adds:
DEVX-1555 use correct config name
DEVX-1550 Add documentation notifications

DEVX-1554 Use info styling for clipboard notifications

DEVX-1548 Add documentation links to binding types in sidebar
(instead of bindings tree view welcome)
(whew we have a lot of bindings)