TODO §56 (docs/features/dut-hierarchy), the owner's request of 2026-09-06.
Client-only, over the flat `lucisv/moduleHierarchy` snapshot the server
already sends. `hierarchySections.js`: per starred DUT, in starred
order, the DUT's forward subtree (the DUT at the top) and an upward tree
from the DUT through every module that instantiates it (labelled `via
<instance>`, cycles cut with one `recursive` row), then one section for
every module in no DUT's subtree or ancestor closure, re-rooted where
its only parents are DUT ancestors (the review ruling — a monitor beside
the DUT under the same bench stays on screen); a module both below one
DUT and above another appears in both DUT sections; a starred name the
index lacks keeps its sections with a "not in the index" row. Star and
unstar from the webview row menu (the pane is a WebviewView, so the
menu is the renderer's, driven by a `menuTable()` per render), the
`lucisv.hierarchy.{starDut,unstarDut,clearDuts}` commands and title
actions, persistence in `workspaceState` in starred order, and the
`lucisv.hierarchy.duts` setting whose entries show locked. With nothing
starred the pane is byte-identical to before (pinned).
opentitan `hw/ip` (847 modules): `aes` → 3 sections with `tb` in its
parents and 5 modules under `aes_tb` re-rooted into others; `aes` +
`hmac` → 5 sections; every module reachable in both configurations; QA's
200-trial fuzz found no overlap and no gap. `extract_test.js` added to
`.vscodeignore`.
(Committed after the 0.48.0 version commit: the release chain broke at a
test-output grep and cut the tag one commit early; the tag is moved here.)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
97 lines
3.3 KiB
CSS
97 lines
3.3 KiB
CSS
:root { color-scheme: light dark; }
|
|
* { box-sizing: border-box; }
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
color: var(--vscode-foreground);
|
|
background: var(--vscode-sideBar-background);
|
|
font: var(--vscode-font-weight) var(--vscode-font-size)/1.4 var(--vscode-font-family);
|
|
overflow: hidden auto;
|
|
}
|
|
.search-wrap {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 3;
|
|
padding: 6px 8px;
|
|
background: var(--vscode-sideBar-background);
|
|
}
|
|
#search {
|
|
width: 100%;
|
|
height: 26px;
|
|
padding: 2px 7px;
|
|
color: var(--vscode-input-foreground);
|
|
background: var(--vscode-input-background);
|
|
border: 1px solid var(--vscode-input-border, transparent);
|
|
outline: none;
|
|
}
|
|
#search:focus { border-color: var(--vscode-focusBorder); }
|
|
#status { padding: 8px 10px; color: var(--vscode-descriptionForeground); }
|
|
#status.error { color: var(--vscode-errorForeground); }
|
|
#tree, #results { padding-bottom: 8px; }
|
|
#more { padding: 4px 10px 10px; color: var(--vscode-descriptionForeground); }
|
|
.row {
|
|
--indent: calc(var(--depth) * 12px);
|
|
width: 100%;
|
|
min-height: 22px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 1px 8px 1px calc(4px + var(--indent));
|
|
border: 1px solid transparent;
|
|
color: inherit;
|
|
background: transparent;
|
|
font: inherit;
|
|
text-align: left;
|
|
cursor: default;
|
|
}
|
|
.row:hover { background: var(--vscode-list-hoverBackground); }
|
|
.row:focus { outline: 1px solid var(--vscode-list-focusOutline, var(--vscode-focusBorder)); outline-offset: -1px; }
|
|
.row.match .label { font-weight: 600; }
|
|
.row.bookmarked {
|
|
background: color-mix(in srgb, var(--vscode-charts-yellow, #cca700) 35%, transparent);
|
|
border-color: var(--vscode-charts-yellow, #cca700);
|
|
}
|
|
.row.warning .detail { color: var(--vscode-list-warningForeground, var(--vscode-editorWarning-foreground)); }
|
|
/* A DUT section header: the pane's one structural row, so it reads as a
|
|
heading rather than as another module. */
|
|
.row.section {
|
|
position: sticky;
|
|
top: 38px;
|
|
z-index: 2;
|
|
background: var(--vscode-sideBarSectionHeader-background, var(--vscode-sideBar-background));
|
|
font-weight: 700;
|
|
}
|
|
#menu button[disabled] { color: var(--vscode-disabledForeground, var(--vscode-descriptionForeground)); }
|
|
#menu button[disabled]:hover { background: transparent; color: var(--vscode-disabledForeground, var(--vscode-descriptionForeground)); }
|
|
.twisty { width: 12px; flex: 0 0 12px; text-align: center; }
|
|
.icon { width: 14px; flex: 0 0 14px; color: var(--vscode-symbolIcon-moduleForeground, var(--vscode-foreground)); }
|
|
.label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.detail { margin-left: auto; font-size: .9em; color: var(--vscode-descriptionForeground); }
|
|
#menu {
|
|
position: fixed;
|
|
z-index: 10;
|
|
width: 185px;
|
|
padding: 4px;
|
|
background: var(--vscode-menu-background);
|
|
color: var(--vscode-menu-foreground);
|
|
border: 1px solid var(--vscode-menu-border, var(--vscode-widget-border));
|
|
box-shadow: 0 4px 12px var(--vscode-widget-shadow);
|
|
}
|
|
#menu button {
|
|
display: block;
|
|
width: 100%;
|
|
padding: 4px 8px;
|
|
border: 0;
|
|
color: inherit;
|
|
background: transparent;
|
|
text-align: left;
|
|
font: inherit;
|
|
}
|
|
#menu button:hover, #menu button:focus {
|
|
color: var(--vscode-menu-selectionForeground);
|
|
background: var(--vscode-menu-selectionBackground);
|
|
outline: none;
|
|
}
|
|
[hidden] { display: none !important; }
|
|
@media (forced-colors: active) { .row.bookmarked { outline: 2px solid Highlight; } }
|