631
continue;
632
}
634
>
const commands: IHookCommand[] = [];
635
>
636
>
for (const item of prop.value.items) {
637
>
// Convert the YAML AST node to a plain object so the existing
638
>
// extractHookCommandsFromItem helper can handle both direct
639
>
// commands and nested matcher structures.
640
>
const plainItem = yamlValueToPlain(item);
641
>
const extracted = extractHookCommandsFromItem(plainItem, workspaceRootUri, userHome);
642
>
commands.push(...extracted);
643
>
}
644
>
645
>
if (commands.length > 0) {
646
>
if (!result[hookType]) {
647
>
result[hookType] = [];
648
>
}
649
>
result[hookType].push(...commands);
650
>
}
651
}
652