@@ -63,14 +63,18 @@ if (vsixPath) {
63
63
}
64
64
console . log ( "Running tests against extension version " + versionStr ) ;
65
65
66
+ const vscodeVersion = process . env [ "VSCODE_VERSION" ] ?? "stable" ;
67
+ console . log ( "Running tests against VS Code version " + vscodeVersion ) ;
68
+
66
69
const installConfigs = [ ] ;
67
70
for ( const ext of installExtensions ) {
68
71
installConfigs . push ( {
69
72
label : `installExtension-${ ext } ` ,
70
73
installExtensions : [ ext ] ,
71
74
launchArgs,
72
75
files : [ "dist/test/sleep.test.js" ] ,
73
- version : process . env [ "VSCODE_VERSION" ] ?? "stable" ,
76
+ version : vscodeVersion ,
77
+ skipExtensionDependencies : true ,
74
78
reuseMachineInstall : ! isCIBuild ,
75
79
} ) ;
76
80
}
@@ -81,7 +85,7 @@ module.exports = defineConfig({
81
85
{
82
86
label : "integrationTests" ,
83
87
files : [ "dist/test/common.js" , "dist/test/integration-tests/**/*.test.js" ] ,
84
- version : process . env [ "VSCODE_VERSION" ] ?? "stable" ,
88
+ version : vscodeVersion ,
85
89
workspaceFolder : "./assets/test" ,
86
90
launchArgs,
87
91
extensionDevelopmentPath : vsixPath
@@ -106,7 +110,7 @@ module.exports = defineConfig({
106
110
} ,
107
111
} ,
108
112
} ,
109
- skipExtensionDependencies : install . length > 0 ,
113
+ skipExtensionDependencies : installConfigs . length > 0 ,
110
114
reuseMachineInstall : ! isCIBuild ,
111
115
} ,
112
116
{
@@ -120,7 +124,7 @@ module.exports = defineConfig({
120
124
"dist/test/integration-tests/testexplorer/TestExplorerIntegration.test.js" ,
121
125
"dist/test/integration-tests/commands/dependency.test.js" ,
122
126
] ,
123
- version : process . env [ "VSCODE_VERSION" ] ?? "stable" ,
127
+ version : vscodeVersion ,
124
128
workspaceFolder : "./assets/test.code-workspace" ,
125
129
launchArgs,
126
130
extensionDevelopmentPath : vsixPath
@@ -145,13 +149,13 @@ module.exports = defineConfig({
145
149
} ,
146
150
} ,
147
151
} ,
148
- skipExtensionDependencies : install . length > 0 ,
152
+ skipExtensionDependencies : installConfigs . length > 0 ,
149
153
reuseMachineInstall : ! isCIBuild ,
150
154
} ,
151
155
{
152
156
label : "unitTests" ,
153
157
files : [ "dist/test/common.js" , "dist/test/unit-tests/**/*.test.js" ] ,
154
- version : process . env [ "VSCODE_VERSION" ] ?? "stable" ,
158
+ version : vscodeVersion ,
155
159
launchArgs : launchArgs . concat ( "--disable-extensions" ) ,
156
160
env : {
157
161
VSCODE_TEST : "1" ,
0 commit comments