ATM follows a strict modular architecture where each extension is an independent module with its own core/ (business logic) and ui/ (presentation) layers.
src/
βββ extension.ts β Entry point
βββ extensions/
β βββ extensions.ts β Central registry
β βββ ai-data-id/ β π§ AI data & consumption
β βββ code-spell/ β π Spell checker
β βββ color-box/ β π¨ Color decorations
β βββ color-debugging/ β π Debug colors
β βββ comments-code/ β β
TODO/FIXME indexer
β βββ env-lens/ β π Secure .env visibility
β βββ error-lens/ β β Inline diagnostics
β βββ git-better/ β π Git blame + GitHub tools
β βββ image-preview/ β πΌοΈ Gutter previews
β βββ markdown-mdx/ β π MDX support
β βββ markdown-md/ β π Markdown preview enhancements
β βββ screenshot-code/ β πΈ Code screenshots
β βββ svg-better/ β β‘ SVG optimizer
β βββ translate-doc/ β π Translation engine
β βββ version-package/ β π¦ Dependency checker
β βββ voice-tts/ β π Text-to-speech
β βββ shared/ β π οΈ Shared utilities & models
βββ settings/
βββ code/ β Editor styling & coding enhancements
β βββ auto-tag-x2/ β π·οΈ Autoβclose/rename HTML/JSX tags
β βββ color-bg-tag/ β π© HTML tag background colors
β βββ copy-tag/ β π Copy highlight animations
β βββ line-bg-tag/ β β Current line styling
βββ native/ β Native VS Code config overrides
βββ breadcrumbs/ β π Breadcrumbs navigation tweaks
βββ cursor/ β π±οΈ Cursor animations & styles
βββ files/ β π File explorer configuration
The following diagram illustrates how the ATM toolkit is instantiated and how it handles dependencies internally without bloating the editor:
graph TD
classDef core fill:#0a0a0a,stroke:#3b82f6,stroke-width:2px,color:#fff
classDef registry fill:#1f2937,stroke:#10b981,stroke-width:2px,color:#fff
classDef module fill:#374151,stroke:#6366f1,stroke-width:2px,color:#fff
classDef settings fill:#374151,stroke:#f59e0b,stroke-width:2px,color:#fff
A[ATM Core\nextension.ts]:::core --> B(Settings Engine\nsrc/settings):::settings
A --> C(Extensions Registry\nsrc/extensions.ts):::registry
B --> B1[Native Configs\nCursor, Files, Breadcrumbs]:::module
B --> B2[Code Styling\nTags, Line BG, Copy]:::module
C --> D1[Visual DX Tools\nErrorLens, ColorBox, ImagePreview]:::module
C --> D2[AI & Intelligence\nTTS, Translator, AI Data]:::module
C --> D3[Utility Mappers\nGitBetter, Markdown, SVG]:::module
Z[shared\nShared Models/Utils]:::settings -.-> C
Z -.-> D1
Z -.-> D2
Z -.-> D3
Key Highlights:
- Lazy Loading & Performance: Through the
extensions.tscentral registry, each module manages its own subscription. Memory leaks are avoided by ensuring every module registers its disposables correctly. - Independent Modules: Extensions inside
src/extensionsdon't depend on each other (with the exception ofshared), which means a visual bug incolor-boxwill never crashvoice-tts. - Native Enhancements: The
settingsmodule actively rewrites workspace configurations to provide a "Cursor IDE-like" feeling immediately upon activation.