@@ -9,8 +9,13 @@ type Suite = {
99 extensionDevelopmentPath : string ;
1010 extensionTestsPath : string ;
1111 launchArgs : string [ ] ;
12+ version ?: string ;
1213} ;
1314
15+ // Which version of vscode to test against. Can set to 'stable' or
16+ // 'insiders'. See runTest.d.ts in vscode-test for more details.
17+ const VSCODE_VERSION = '1.46.0' ;
18+
1419/**
1520 * Run an integration test suite `suite`, retrying if it segfaults, at
1621 * most `tries` times.
@@ -53,15 +58,17 @@ async function main() {
5358
5459 // List of integration test suites.
5560 // The path to the extension test runner script is passed to --extensionTestsPath.
56- const integrationTestSuites = [
61+ const integrationTestSuites : Suite [ ] = [
5762 // Tests with no workspace selected upon launch.
5863 {
64+ version : VSCODE_VERSION ,
5965 extensionDevelopmentPath : extensionDevelopmentPath ,
6066 extensionTestsPath : path . resolve ( __dirname , 'no-workspace' , 'index' ) ,
6167 launchArgs : [ '--disable-extensions' ] ,
6268 } ,
6369 // Tests with a simple workspace selected upon launch.
6470 {
71+ version : VSCODE_VERSION ,
6572 extensionDevelopmentPath : extensionDevelopmentPath ,
6673 extensionTestsPath : path . resolve ( __dirname , 'minimal-workspace' , 'index' ) ,
6774 launchArgs : [
0 commit comments