Skip to content

Commit 567ddf7

Browse files
committed
Disable hardware acceleration
1 parent 8008eda commit 567ddf7

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

.vscode-test.js

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,27 @@ const isDebugRun = !(process.env["_"] ?? "").endsWith("node_modules/.bin/vscode-
2626
// so tests don't timeout when a breakpoint is hit
2727
const timeout = isDebugRun ? Number.MAX_SAFE_INTEGER : 3000;
2828

29+
const launchArgs = [
30+
"--disable-updates",
31+
"--disable-crash-reporter",
32+
"--disable-workspace-trust",
33+
"--disable-telemetry",
34+
];
35+
if (dataDir) {
36+
launchArgs.push("--user-data-dir", dataDir);
37+
}
38+
if (process.platform === "darwin" && process.arch === "x64") {
39+
launchArgs.push("--disable-gpu");
40+
}
41+
2942
module.exports = defineConfig({
3043
tests: [
3144
{
3245
label: "integrationTests",
3346
files: ["dist/test/common.js", "dist/test/integration-tests/**/*.test.js"],
3447
version: process.env["VSCODE_VERSION"] ?? "stable",
3548
workspaceFolder: "./assets/test",
36-
launchArgs: [
37-
"--disable-updates",
38-
"--disable-crash-reporter",
39-
"--disable-workspace-trust",
40-
"--disable-telemetry",
41-
].concat(dataDir ? ["--user-data-dir", dataDir] : []),
49+
launchArgs,
4250
mocha: {
4351
ui: "tdd",
4452
color: true,
@@ -61,13 +69,7 @@ module.exports = defineConfig({
6169
label: "unitTests",
6270
files: ["dist/test/common.js", "dist/test/unit-tests/**/*.test.js"],
6371
version: process.env["VSCODE_VERSION"] ?? "stable",
64-
launchArgs: [
65-
"--disable-extensions",
66-
"--disable-updates",
67-
"--disable-crash-reporter",
68-
"--disable-workspace-trust",
69-
"--disable-telemetry",
70-
].concat(dataDir ? ["--user-data-dir", dataDir] : []),
72+
launchArgs: launchArgs.concat("--disable-extensions"),
7173
mocha: {
7274
ui: "tdd",
7375
color: true,

docker/test-macos.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ VSCODE_SETTINGS="$USER_DATA/User/settings.json"
2424
LSP_SETTINGS="$HOME/.sourcekit-lsp/config.json"
2525

2626
export TMPDIR="$ARTIFACTS/tmp"
27+
export TMP="$TMPDIR"
2728
mkdir -p "$TMPDIR"
2829

2930
function cleanup {

0 commit comments

Comments
 (0)