Snapshot Inspector view in the sidebar#12
Merged
Conversation
A third sidebar view alongside Settings and Devices that renders the most recent snapshot as a clickable tree. Subscribes to SnapshotIndex.onDidChange — no new daemon traffic, refs come from the same stdout we already capture on each successful snapshot step. Each row shows a typed codicon, the @en ref in monospace, and the element's label/type. Click anywhere on a row to insert @en at the active editor's cursor (auto-focuses a visible .ad editor first). Hover reveals an explicit "→ Insert" plus a "⧉ Copy" button. Toolbar has a sticky search input that filters by id/type/label; Esc clears. Tree honors leading-whitespace indentation in the snapshot output, so hierarchical formats render with correct depth. SnapshotIndex.SnapshotRef gains a depth field; parseSnapshotRefs counts leading whitespace (2 spaces or one tab = one level).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
snapshot -iSnapshotIndex.onDidChange— no new daemon traffic@eNref in monospace, label + type next to it@eNat the active editor's cursor (auto-focuses a visible.adeditor first)→ Insertand⧉ CopyEscclearsTest plan
npm run compilecleansnapshot -ito capture one")snapshot -iagainst a booted sim → refs appear with codicons by type@eNinserted at the cursor of the active.adfile