Skip to content

Commit a6115d7

Browse files
Use updated VSCode (#10370)
* Update VSCodeEditor.tsx * Fix URL extraction and improve deployment messages Updated URL extraction command and modified messages for clarity. * Update deploy-pages-previews.yml * Update deploy-pages-previews.yml * Update changeset for VSCode version change * Fix lint * Update deploy-pages-previews.yml * Update deployment workflow to install grep Replaced coreutils installation with grep installation in the workflow. * Fix formatting: remove trailing whitespace Co-Authored-By: [email protected] <[email protected]> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent f29b0b0 commit a6115d7

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.changeset/blue-dancers-cry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cloudflare/workers-playground": patch
3+
---
4+
5+
Use updated VSCode version

.github/workflows/deploy-pages-previews.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ jobs:
4646
with:
4747
node-version: 22
4848

49+
- name: Install grep
50+
run: brew install grep
51+
4952
- name: Build tools and libraries
5053
run: pnpm run build
5154
env:
@@ -57,7 +60,7 @@ jobs:
5760
run: |
5861
output=$(pnpm --filter @cloudflare/chrome-devtools-patches run deploy)
5962
echo "Extracting deployed URL from command output"
60-
url=$(echo "$output" | grep -oP 'Take a peek over at \K\S+')
63+
url=$(echo "$output" | ggrep -oP 'Take a peek over at \K\S+')
6164
echo "Extracted URL: $url"
6265
echo "VITE_DEVTOOLS_PREVIEW_URL=$url" >> $GITHUB_ENV
6366
env:
@@ -73,10 +76,11 @@ jobs:
7376

7477
- name: Deploy Workers Playground preview
7578
if: contains(github.event.*.labels.*.name, 'preview:workers-playground')
79+
shell: bash
7680
run: |
7781
output=$(pnpm --filter workers-playground run build:testing && pnpm --filter workers-playground run deploy)
7882
echo "Extracting deployed URL from command output"
79-
url=$(echo "$output" | grep -oP 'Take a peek over at \K\S+')
83+
url=$(echo "$output" | ggrep -oP 'Take a peek over at \K\S+')
8084
echo "Extracted URL: $url"
8185
echo "PLAYGROUND_URL=$url" >> $GITHUB_ENV
8286
env:

packages/workers-playground/src/QuickEditor/VSCodeEditor.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ function stripSlashPrefix(path: string) {
1515
return path[0] === "/" ? path.slice(1) : path;
1616
}
1717

18-
const quickEditHost = "https://quick-edit.devprod.cloudflare.dev";
18+
const quickEditHost =
19+
"https://e98a7604.quick-edit-workers.devprod.cloudflare.dev";
1920

2021
function constructVSCodeURL(serviceId: string, baseURL: string) {
2122
const workerPath = `cfs:/${serviceId}`;

0 commit comments

Comments
 (0)