Expand description
The worktrees daemon service.
Maintains the live, authoritative set of repos/worktrees open across every
VS Code window, fed by a first-party companion extension that reports from
each window over the daemon’s control socket. The resident daemon is the
rendezvous point the per-window extension sandbox cannot replace: each window
can see only its own workspace.workspaceFolders, so a single process
aggregating those registrations is the only cross-window source of truth.
See ADR-0040.
Like the Snowflake service this is a cheap, in-memory adapter — no async
setup, no secret persisted. The registry lives behind a std::sync::Mutex
that is never held across an .await (the Snowflake rule); every op is
pure CPU under the lock, so liveness reaping happens inline on each read
rather than from a background task.
Structs§
- Worktrees
Service - Hosts the cross-window worktree registry as a
DaemonService.
Constants§
- SERVICE_
NAME - The worktrees service name (the control-socket routing key).