Skip to Content

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.

Read what a tap ran and open it in your editor

Every captured screen keeps its triggering action, navigation, run conditions, server calls, and executed files at that commit.

  1. Select a screen on the map and click Details on its title line (or press ↩).
  2. Review the action, dispatched event, run conditions (Renderer, language, theme, seed, locale, frozen clock), server calls, and coverage summary.
  3. Click Open in Zed or Open in VS Code (also under the Map menu) to open up to twelve executed files, handler first.
  4. 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.

Jump from any pixel to its source line

Open the exact line that drew an element—or jump to its visual states—straight from the screen.

  1. Hold ⌥ and click any spot on a captured screen to open that file and line in your editor.
  2. Or ⌘-click a spot to select the element in the inspector, then click its Drawn by or On tap rows.
  3. 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.

Find every screen that runs some code

Before changing a file or function, check every captured screen and journey it touches.

  1. Choose Edit › Find Screens That Ran…, or type ran:path/File.kt, ran:path/File.kt:10-20, ran:File.kt#Name, or ran:#Name in the sidebar filter.
  2. The map narrows to journeys that executed that code and dims unrelated screens.
  3. 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.

Install the VS Code or Zed extension

Both extensions run the bundled pitafix lsp language server beside your normal language servers.

  1. VS Code: In PitaFix's editors/vscode folder, run npm ci && npm run package, open the VS Code Command Palette, run Extensions: Install from VSIX…, and pick pitafix.vsix. Set pitafix.path only if PitaFix.app is outside /Applications.
  2. Zed: Open the Zed Command Palette, run zed: install dev extension, and select editors/zed (requires rustup target add wasm32-wasip2). Set "code_lens": "on" in Zed settings for function-level screen counts, and lsp.pitafix.binary.path only if installed outside /Applications.
  3. 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…).

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.

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.

On this page