Skip to content

Commit 8bcc147

Browse files
committed
fix: Bring output console into view if robotcode discovery fails
closes #140
1 parent 326e4b2 commit 8bcc147

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

vscode-client/pythonmanger.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

vscode-client/testcontrollermanager.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)