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 {
253253 }
254254 } else {
255255 this . outputChannel . appendLine ( `executeRobotCode: ${ stdout } \n${ stderr } ` ) ;
256- this . outputChannel . show ( true ) ;
257256
258257 reject ( new Error ( `Executing robotcode failed with code ${ code ?? "null" } : ${ stdout } \n${ stderr } ` ) ) ;
259258 }
Original file line number Diff line number Diff line change @@ -377,7 +377,6 @@ export class TestControllerManager {
377377 modal : true ,
378378 detail : ( e as Error ) . toString ( ) ,
379379 } ) ;
380- this . outputChannel . show ( true ) ;
381380 }
382381 }
383382
@@ -571,6 +570,18 @@ export class TestControllerManager {
571570 folder : vscode . WorkspaceFolder ,
572571 token ?: vscode . CancellationToken
573572 ) : 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+
574585 try {
575586 const o : { [ key : string ] : string } = { } ;
576587
You can’t perform that action at this time.
0 commit comments