File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -253,7 +253,6 @@ export class PythonManager {
253
253
}
254
254
} else {
255
255
this . outputChannel . appendLine ( `executeRobotCode: ${ stdout } \n${ stderr } ` ) ;
256
- this . outputChannel . show ( true ) ;
257
256
258
257
reject ( new Error ( `Executing robotcode failed with code ${ code ?? "null" } : ${ stdout } \n${ stderr } ` ) ) ;
259
258
}
Original file line number Diff line number Diff line change @@ -377,7 +377,6 @@ export class TestControllerManager {
377
377
modal : true ,
378
378
detail : ( e as Error ) . toString ( ) ,
379
379
} ) ;
380
- this . outputChannel . show ( true ) ;
381
380
}
382
381
}
383
382
@@ -571,6 +570,18 @@ export class TestControllerManager {
571
570
folder : vscode . WorkspaceFolder ,
572
571
token ?: vscode . CancellationToken
573
572
) : Promise < RobotTestItem [ ] | undefined > {
573
+ // TODO do not use hardcoded file extensions
574
+ const robotFiles = await vscode . workspace . findFiles (
575
+ new vscode . RelativePattern ( folder , "**/*.robot" ) ,
576
+ undefined ,
577
+ 1 ,
578
+ token
579
+ ) ;
580
+
581
+ if ( robotFiles . length === 0 ) {
582
+ return undefined ;
583
+ }
584
+
574
585
try {
575
586
const o : { [ key : string ] : string } = { } ;
576
587
You can’t perform that action at this time.
0 commit comments