This repository was archived by the owner on Nov 18, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 24
24
"runtimeExecutable" : " ${execPath}" ,
25
25
"args" : [
26
26
" --extensionDevelopmentPath=${workspaceFolder}" ,
27
- " --extensionTestsPath=${workspaceFolder}/out/test"
27
+ " --extensionTestsPath=${workspaceFolder}/out/test/suite" ,
28
+ " ${workspaceFolder}/fixtures"
28
29
],
29
30
"outFiles" : [
30
31
" ${workspaceFolder}/out/test/**/*.js"
Original file line number Diff line number Diff line change @@ -9,7 +9,12 @@ import { runTests } from 'vscode-test';
9
9
await runTests ( {
10
10
extensionDevelopmentPath,
11
11
extensionTestsPath,
12
- launchArgs : [ '--disable-extensions' ] ,
12
+ launchArgs : [
13
+ '--disable-extensions' ,
14
+ // Already start in the fixtures dir because we lose debugger connection
15
+ // once we re-open a different folder due to window reloading
16
+ path . join ( extensionDevelopmentPath , 'fixtures' ) ,
17
+ ] ,
13
18
} ) . catch ( ( ) => {
14
19
console . error ( `Test run failed` ) ;
15
20
process . exit ( 1 ) ;
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ suite('Extension Tests', () => {
26
26
{ subcommand : 'run' , group : undefined } ,
27
27
] ;
28
28
29
- await vscode . commands . executeCommand ( 'vscode.openFolder' , projectUri ) ;
30
29
const whenWorkspacesActive = projects . map ( path => {
31
30
const fsPath = Uri . file ( path ) . fsPath ;
32
31
return whenWorkspaceActive ( fsPath ) ;
You can’t perform that action at this time.
0 commit comments