Expand description
claude-code-mode — the minor mode layered on the IDE terminal buffer.
I1 registers it as a Manual-activation marker mode (no per-buffer
resources). In I5 it becomes the minor mode :claude activates on the
BufferKind::Terminal buffer running the agent: its on_activate will
ensure the server is running, contribute the headerline status row, and
own the diff affordances (design §3). The -mode suffix matches the
ModeRegistry naming convention (enforced at registration).
Structs§
- Claude
Code Mode - The Claude Code IDE minor mode.
- Claude
Code Status Guard - I7: per-activation Guard. While
claude-code-modeis active on a buffer, that buffer shows theclaude-codemodeline status segment; the Guard’sDrop(on deactivate / buffer close) unregisters it so the segment clears.Nonewhen the server handle wasn’t available at activation (e.g. tests without the service) — then the Guard is an inert no-op.
Functions§
- register_
claude_ code_ modes - Register
claude-code-modeagainstregistry. Called from editor boot.