VS Code extension for distributed XState v5 state machines — machines split across multiple files (machine.ts, types.ts, context.ts, states/*.ts, etc.).
Existing tools only parse a single file. XState Lens follows imports across file boundaries to reconstruct the full machine from all of its parts.
Features
Auto-discovery — finds machine directories in your workspace automatically
Interactive diagram — visualize machines with auto-layout, simulation mode, and multi-machine drill-in navigation
Go-to-Definition — Ctrl/Cmd-click on state names, actions, guards, actors, or events to jump to their definition across files
Hover tooltips — state type, transitions, action kind, guard logic