Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .chronus/changes/reenable-vscode-e2e-tests-2026-7-24-0-0-0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: internal
packages:
- typespec-vscode
---

Re-enable the VS Code e2e tests (`test:web` and `test:extension`) that were temporarily skipped due to a hang in CI with the VS Code 1.130.0 release. Both tests are now pinned to VS Code 1.129.1 to avoid the regression until it is fixed upstream.

This file was deleted.

4 changes: 2 additions & 2 deletions packages/typespec-vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@
"package-vsix": "vsce package",
"deploy": "vsce publish",
"open-in-browser": "vscode-test-web --extensionDevelopmentPath=. .",
"test:e2e": "echo 'Skipping vscode e2e tests: test:web and test:extension both pull the latest VS Code build, which hung CI on the 1.130.0 release. Re-enable once pinned/timeout-guarded.'",
"test:web": "vscode-test-web --quality stable --extensionDevelopmentPath=. --headless --extensionTestsPath=dist/test/web/suite.js ./test/web/data",
"test:e2e": "pnpm test:web && pnpm test:extension",
"test:web": "vscode-test-web --quality stable --commit=8a7abeba6e03ea3af87bfbce9a1b7e48fed567b8 --extensionDevelopmentPath=. --headless --extensionTestsPath=dist/test/web/suite.js ./test/web/data",
"test:extension": "vitest run --root test/extension"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { download } from "@vscode/test-electron";
import type { TestProject } from "vitest/node";

// VS Code 1.130.0 introduced a regression that causes the E2E tests to hang.
// Pin to 1.129.1 until the regression is resolved in a later release.
// See https://github.com/microsoft/typespec/issues/11369
const VSCODE_PINNED_VERSION = "1.129.1";
Comment thread
timotheeguerin marked this conversation as resolved.

/**
* The global method will download a brand new vscode to your local computer.
* Subsequent cases will be executed in this vscode.
Expand All @@ -9,7 +14,7 @@ export default async function downloadVscode({ provide }: TestProject) {
if (process.env.VSCODE_E2E_DOWNLOAD_PATH) {
provide("executablePath", process.env.VSCODE_E2E_DOWNLOAD_PATH);
} else {
provide("executablePath", await download());
provide("executablePath", await download({ version: VSCODE_PINNED_VERSION }));
}
}

Expand Down
Loading