Skip to content

Commit a0e6520

Browse files
Small fixes regarding high-level requirement generation (#295)
Corrects the config location used for determining if we should generate high-level requirements and adds the requirement module/unit as a backup group to group requirements under before falling back to "Unknown Function".
1 parent af24ab1 commit a0e6520

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2486,7 +2486,7 @@ async function generateRequirements(enviroPath: string) {
24862486
}
24872487
}
24882488

2489-
const config = vscode.workspace.getConfiguration("vectorcastTestExplorer");
2489+
const config = vscode.workspace.getConfiguration("vectorcastTestExplorer.reqs2x");
24902490
const generateHighLevelRequirements = config.get<boolean>(
24912491
"generateHighLevelRequirements",
24922492
false
@@ -3148,7 +3148,7 @@ function generateRequirementsHtml(requirements: any[]): string {
31483148
// Group requirements by function
31493149
const requirementsByFunction: Record<string, any[]> = {};
31503150
for (const req of requirements) {
3151-
const funcName = req.Function || "Unknown Function";
3151+
const funcName = req.Function || req.Module || "Unknown Function";
31523152
if (!requirementsByFunction[funcName]) {
31533153
requirementsByFunction[funcName] = [];
31543154
}

0 commit comments

Comments
 (0)