Skip to content

Commit 99f64d9

Browse files
Merge pull request #968 from gjsjohnmurray/fix-macOS-build
Fix macOS build error
2 parents b791db6 + a29167d commit 99f64d9

File tree

3 files changed

+34
-34
lines changed

3 files changed

+34
-34
lines changed

package-lock.json

Lines changed: 30 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1442,6 +1442,7 @@
14421442
"@types/xmldom": "^0.1.29",
14431443
"@typescript-eslint/eslint-plugin": "^4.32.0",
14441444
"@typescript-eslint/parser": "^4.32.0",
1445+
"@vscode/test-electron": "^2.1.5",
14451446
"eslint": "^7.32.0",
14461447
"eslint-config-airbnb-base": "^14.2.1",
14471448
"eslint-config-prettier": "^6.11.0",
@@ -1457,7 +1458,6 @@
14571458
"typescript": "^4.4.3",
14581459
"vscode-debugadapter-testsupport": "^1.41.0",
14591460
"vscode-dts": "^0.3.2",
1460-
"vscode-test": "^1.4.0",
14611461
"webpack": "^5.27.1",
14621462
"webpack-cli": "^4.5.0"
14631463
},

src/test/runTest.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as cp from "child_process";
22
import * as path from "path";
33

4-
import { downloadAndUnzipVSCode, resolveCliPathFromVSCodeExecutablePath, runTests } from "vscode-test";
4+
import { downloadAndUnzipVSCode, resolveCliArgsFromVSCodeExecutablePath, runTests } from "@vscode/test-electron";
55

66
async function main() {
77
try {
@@ -17,10 +17,10 @@ async function main() {
1717
const workspace = path.resolve("test-fixtures", "test.code-workspace");
1818

1919
const vscodeExecutablePath = await downloadAndUnzipVSCode("stable");
20-
const cliPath = resolveCliPathFromVSCodeExecutablePath(vscodeExecutablePath);
20+
const [cli, ...args] = resolveCliArgsFromVSCodeExecutablePath(vscodeExecutablePath);
2121

2222
const installExtension = (extId) =>
23-
cp.spawnSync(cliPath, ["--install-extension", extId], {
23+
cp.spawnSync(cli, [...args, "--install-extension", extId], {
2424
encoding: "utf-8",
2525
stdio: "inherit",
2626
});

0 commit comments

Comments
 (0)