From da9dee7472fc82256eadb383a756cfb66156f4f9 Mon Sep 17 00:00:00 2001 From: bluedrink9 Date: Sat, 29 Nov 2025 18:02:21 +1300 Subject: [PATCH] feat: respect CURSORLESS_VSCODE_COMMAND in generateTestSubsetFile script Otherwise this breaks on systems without code installed --- packages/test-harness/src/scripts/generateTestSubsetFile.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/test-harness/src/scripts/generateTestSubsetFile.ts b/packages/test-harness/src/scripts/generateTestSubsetFile.ts index 7188c53601..ebeb2c50a4 100644 --- a/packages/test-harness/src/scripts/generateTestSubsetFile.ts +++ b/packages/test-harness/src/scripts/generateTestSubsetFile.ts @@ -20,6 +20,8 @@ languages/go/ */ function run() { const testSubsetGrepPath = testSubsetFilePath(); + // Use CURSORLESS_VSCODE_COMMAND environment variable if set, otherwise default to 'code' + const vscodeCommand = process.env.CURSORLESS_VSCODE_COMMAND || "code"; const exists = fs.existsSync(testSubsetGrepPath); @@ -28,7 +30,7 @@ function run() { } if (!exists || process.argv.includes("--always-open")) { - child.execSync(`code ${testSubsetGrepPath}`); + child.execSync(`${vscodeCommand} ${testSubsetGrepPath}`); } if (!exists && process.argv.includes("--fail-if-not-exists")) {