Code attribution & editors
Inspect executed actions and server calls, jump from any pixel to source, find screens that ran a line, and install the VS Code and Zed extensions.
4 tasks, 2 questions answered.
PitaFix records which lines ran on every captured step and displays execution highlights inside VS Code or Zed through pitafix lsp. It never modifies files in your checkout.
Every captured screen keeps its triggering action, navigation, run conditions, server calls, and executed files at that commit.
- Select a screen on the map and click Details on its title line (or press ↩).
- Review the action, dispatched event, run conditions (Renderer, language, theme, seed, locale, frozen clock), server calls, and coverage summary.
- Click Open in Zed or Open in VS Code (also under the Map menu) to open up to twelve executed files, handler first.
- With PitaFix's editor extension installed, executed lines highlight automatically inside your editor.
Wrong turn? Selecting a screen keeps a closed inspector closed; click Details or press ↩ to open it.
code, inspector, show details, open in zed, open in vs code, handler, coverage, renderer, lines that ran
Open the exact line that drew an element—or jump to its visual states—straight from the screen.
- Hold ⌥ and click any spot on a captured screen to open that file and line in your editor.
- Or ⌘-click a spot to select the element in the inspector, then click its Drawn by or On tap rows.
- Click Show in Components beside the inspector's Used row to audit every visual state of that component (see Components & scale).
Wrong turn? Opened the wrong wrapper element? ⌘-click again and step through the inspector's element hierarchy.
option click, alt click, drawn by, on tap, call site, element, server folder, backend attribution
Before changing a file or function, check every captured screen and journey it touches.
- Choose Edit › Find Screens That Ran…, or type
ran:path/File.kt,ran:path/File.kt:10-20,ran:File.kt#Name, orran:#Namein the sidebar filter. - The map narrows to journeys that executed that code and dims unrelated screens.
- From VS Code or Zed, run the editor's "Show the Screens That Ran This" code action on any selected lines or hover link.
Wrong turn? Clear the Ran filter chip in the sidebar to restore the full map.
screens that ran it, impact, ran:, find usages, affected screens, code action, hover, codelens
Both extensions run the bundled pitafix lsp language server beside your normal language servers.
- VS Code: In PitaFix's
editors/vscodefolder, runnpm ci && npm run package, open the VS Code Command Palette, runExtensions: Install from VSIX…, and pickpitafix.vsix. Setpitafix.pathonly ifPitaFix.appis outside/Applications. - Zed: Open the Zed Command Palette, run
zed: install dev extension, and selecteditors/zed(requiresrustup target add wasm32-wasip2). Set"code_lens": "on"in Zed settings for function-level screen counts, andlsp.pitafix.binary.pathonly if installed outside/Applications. - Open the repository in PitaFix once on this machine and select a captured screen; highlights sync automatically.
Wrong turn? No highlights showing? Confirm you selected a captured screen in PitaFix and that the editor opened the matching repository (or backend checkout linked via Map › Choose Server Folder…).
vscode, vsix, zed, dev extension, code_lens, wasm32-wasip2, lsp, pitafix.path, install
How it works
What do the editor extensions display, including backend code?
Live step execution coverage, cross-screen impact counts, component usage, and linked comments.
- VS Code marks executed lines with a gutter bar and tint (broken bar for partial branches) and names the selected step in the status bar. Zed fades lines that did not run during that step.
- Line positions remap across live git edits so highlights stay accurate while you code.
- Hovering a line or viewing CodeLens over a function or component shows how many screens and journeys ran it, with clickable
pitafix://links back to PitaFix. - For backend server attribution, choose Map › Choose Server Folder… and pick your local backend checkout; opening that folder in VS Code or Zed highlights executed server lines too.
coverage, hover, codelens, code actions, components, comments, choose server folder, backend
Which screens count in ran: searches?
Only screens where a capture observed those lines executing.
- Accessors stay hidden by default so domain logic appears first.
- Routes no capture reached cannot be counted; check Not reached in the Screens tab to see coverage blind spots.
ran, search syntax, lines, symbol, not reached, counted, accessors