feat(meta-info): show LimitLevelCount/LevelCount for hierarchical catalogs

Closes #10

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Nick Shirokov
2026-03-17 19:26:14 +03:00
co-authored by Claude Opus 4.6
parent bb02c1b0bd
commit ffa3189442
2 changed files with 15 additions and 2 deletions
@@ -1,4 +1,4 @@
# meta-info v1.0 — Compact summary of 1C metadata object
# meta-info v1.1 — Compact summary of 1C metadata object
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
param(
[Parameter(Mandatory=$true)][string]$ObjectPath,
@@ -773,6 +773,13 @@ if (-not $drillDone) {
if ($hier -and $hier.InnerText -eq "true") {
$ht = $props.SelectSingleNode("md:HierarchyType", $ns)
$htText = if ($ht -and $ht.InnerText -eq "HierarchyFoldersAndItems") { "группы и элементы" } else { "элементы" }
$limitNode = $props.SelectSingleNode("md:LimitLevelCount", $ns)
$levelNode = $props.SelectSingleNode("md:LevelCount", $ns)
if ($limitNode -and $limitNode.InnerText -eq "true" -and $levelNode) {
$htText += ", уровней: $($levelNode.InnerText)"
} else {
$htText += ", без ограничения уровней"
}
$parts += "Иерархический: $htText"
}
$codeLen = $props.SelectSingleNode("md:CodeLength", $ns)