Skip to content

Commit bb35efe

Browse files
committed
Skip extension dependencies
1 parent c5203f2 commit bb35efe

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.vscode-test.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,18 @@ if (vsixPath) {
6363
}
6464
console.log("Running tests against extension version " + versionStr);
6565

66+
const vscodeVersion = process.env["VSCODE_VERSION"] ?? "stable";
67+
console.log("Running tests against VS Code version " + vscodeVersion);
68+
6669
const installConfigs = [];
6770
for (const ext of installExtensions) {
6871
installConfigs.push({
6972
label: `installExtension-${ext}`,
7073
installExtensions: [ext],
7174
launchArgs,
7275
files: ["dist/test/sleep.test.js"],
73-
version: process.env["VSCODE_VERSION"] ?? "stable",
76+
version: vscodeVersion,
77+
skipExtensionDependencies: true,
7478
reuseMachineInstall: !isCIBuild,
7579
});
7680
}
@@ -81,7 +85,7 @@ module.exports = defineConfig({
8185
{
8286
label: "integrationTests",
8387
files: ["dist/test/common.js", "dist/test/integration-tests/**/*.test.js"],
84-
version: process.env["VSCODE_VERSION"] ?? "stable",
88+
version: vscodeVersion,
8589
workspaceFolder: "./assets/test",
8690
launchArgs,
8791
extensionDevelopmentPath: vsixPath
@@ -106,7 +110,7 @@ module.exports = defineConfig({
106110
},
107111
},
108112
},
109-
skipExtensionDependencies: install.length > 0,
113+
skipExtensionDependencies: installConfigs.length > 0,
110114
reuseMachineInstall: !isCIBuild,
111115
},
112116
{
@@ -120,7 +124,7 @@ module.exports = defineConfig({
120124
"dist/test/integration-tests/testexplorer/TestExplorerIntegration.test.js",
121125
"dist/test/integration-tests/commands/dependency.test.js",
122126
],
123-
version: process.env["VSCODE_VERSION"] ?? "stable",
127+
version: vscodeVersion,
124128
workspaceFolder: "./assets/test.code-workspace",
125129
launchArgs,
126130
extensionDevelopmentPath: vsixPath
@@ -145,13 +149,13 @@ module.exports = defineConfig({
145149
},
146150
},
147151
},
148-
skipExtensionDependencies: install.length > 0,
152+
skipExtensionDependencies: installConfigs.length > 0,
149153
reuseMachineInstall: !isCIBuild,
150154
},
151155
{
152156
label: "unitTests",
153157
files: ["dist/test/common.js", "dist/test/unit-tests/**/*.test.js"],
154-
version: process.env["VSCODE_VERSION"] ?? "stable",
158+
version: vscodeVersion,
155159
launchArgs: launchArgs.concat("--disable-extensions"),
156160
env: {
157161
VSCODE_TEST: "1",

0 commit comments

Comments
 (0)