🪞 CodeMirror SSOT
- domain: wiki.comi.loca.zone
- purpose: deep_xray_cheatsheets
- introduction:
- context: Comi Ecosystem Knowledge Forge documents CodeMirror 6 extension design, architectural patterns, and execution contexts.
- objectives: Keep CM6 components decoupled, maintain strict state-to-view separation, and document custom extension patterns.
- architectural_guides_map:
- core_architecture:
- CM6-Architecture: Immutable EditorState, mutable EditorView, and transaction flow.
- extension_design:
- CM6-Extensions: LSP, ghost text simulator, and git-diff gutters integration.
- LSP-Design: Autocomplete, diagnostic linters, state-to-view interaction, and quick-fixes.
- Ghost-Text-Simulator: Inline ghost text via transaction filtering, decoration state fields, widget rendering, and keymaps.
- Line-Decorations: Gutter extensions, diff-tracking state fields, and custom line background styling.
- AI-Streaming-Simulator: Copilot-style multi-agent workflow using state fields and simulated token streams.
- deep_xray_internals:
- fields-and-facets: Editor state fields, extension configuration, and custom facets.
- plugins-and-decorations: View plugins, decorations, updates, and DOM rendering.
- keymaps-and-dispatch: Command dispatch, standard keymaps, and key event handling.
- lezer-and-highlighting: Lezer parser integration, syntax trees, and tags.
- sandboxing-and-lifecycle: Execution safety, sandbox constraints, and lifecycle events.
- bridge-and-events: Communication bridge, event emitters, and cross-context message passing.
- formatting_rules:
- no_markdown_bolding: True
- strict_yaml_style_nested_lists: True
- maximum_density: True