Files
lucisv/editors/vscode/media/hierarchy.css
T
lucioandClaude Fable 5 651e58bfb3 The design-hierarchy sidebar: codex's feature, integrated
An instance-oriented hierarchy view in the Activity Bar —
lucisv/moduleHierarchy snapshots (schema 2: uri table, flat ranges,
derived ids; 11.6 MB -> 2.3 MB on opentitan) plus
lucisv/moduleHierarchyChanged invalidation, gated on the extension's
initializationOptions. Format 5 carries decl spans, instance
occurrences and client positions for file-scope declarations
(+1.7-1.9 % store), so a snapshot reads no files at all: handler
145-167 -> 17-20 ms settled, a save with the sidebar open 366 ->
141 ms. complete is !scanning && !must_wait, pinned. Owner UI rounds:
no hover preview, all levels collapsed by default with stable ids
across refreshes, and search over a resident flat model (freeze
diagnosed: materialized expanded tree x undebounced double
fuzzyScore x whole-tree clone per keystroke) — prebuilt lowercased
index, bitmask prefilter, top-K counting, 200-row cap with an honest
remainder, single-digit ms over a 120k-entry fixture.
LineIndex::utf16_position unifies the index's and the wire's position
math under a cross-crate agreement test.

Implementation: codex. Integration fixes + owner items: Opus dev.
QA: lead (measurement pass) + Sonnet (SHIP, independent oracles).

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-29 03:39:06 -07:00

86 lines
2.8 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)); }
.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; } }