@@ -21,7 +21,7 @@ import { TestOptions } from 'vscode-test/out/runTest';
21
21
// that might show up with new vscode versions released, even though
22
22
// this makes testing not-quite-pure, but it can be changed for local
23
23
// testing against old versions if necessary.
24
- const VSCODE_VERSION = 'stable ' ;
24
+ const VSCODE_VERSION = '1.51 ' ;
25
25
26
26
// List if test dirs
27
27
// - no-workspace - Tests with no workspace selected upon launch.
@@ -77,14 +77,12 @@ async function main() {
77
77
const testDirsString = process . argv [ 2 ] ;
78
78
const dirs = testDirsString . split ( ',' ) . map ( dir => dir . trim ( ) . toLocaleLowerCase ( ) ) ;
79
79
80
- if ( dirs . includes ( TestDir . CliIntegration ) ) {
81
- console . log ( 'Installing required extensions' ) ;
82
- const cliPath = resolveCliPathFromVSCodeExecutablePath ( vscodeExecutablePath ) ;
83
- cp . spawnSync ( cliPath , [ '--install-extension' , 'hbenl.vscode-test-explorer' ] , {
84
- encoding : 'utf-8' ,
85
- stdio : 'inherit'
86
- } ) ;
87
- }
80
+ console . log ( 'Installing required extensions' ) ;
81
+ const cliPath = resolveCliPathFromVSCodeExecutablePath ( vscodeExecutablePath ) ;
82
+ cp . spawnSync ( cliPath , [ '--install-extension' , 'hbenl.vscode-test-explorer' ] , {
83
+ encoding : 'utf-8' ,
84
+ stdio : 'inherit'
85
+ } ) ;
88
86
89
87
console . log ( `Running integration tests in these directories: ${ dirs } ` ) ;
90
88
for ( const dir of dirs ) {
@@ -115,12 +113,10 @@ function getLaunchArgs(dir: TestDir) {
115
113
switch ( dir ) {
116
114
case TestDir . NoWorksspace :
117
115
return [
118
- '--disable-extensions'
119
116
] ;
120
117
121
118
case TestDir . MinimalWorksspace :
122
119
return [
123
- '--disable-extensions' ,
124
120
path . resolve ( __dirname , '../../test/data' )
125
121
] ;
126
122
@@ -134,5 +130,4 @@ function getLaunchArgs(dir: TestDir) {
134
130
default :
135
131
assertNever ( dir ) ;
136
132
}
137
- return undefined ;
138
133
}
0 commit comments