Coverage
Coverage / Telemetry
π΅ High-level application shim for intercepting and routing VS Code services through Land's service tree
π΅ Coverage / Telemetry β Application-Level Shim
π΅ COVERAGE SHIM β Application-level service routing and telemetry Tier gate:
TierShim=Proxy|TierShim=ReplaceColor:#2563EB(Blue) Overhead: <1% (passthrough mode)
The Coverage Shim intercepts VS Code at the application service level β routing IPC commands through Landβs SwallowMap, proxying the ServiceCollection DI container, and tracking coverage across all 474 decorated services.
π΅ Architecture
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π΅ COVERAGE β Application Layer β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β IPC SwallowMap β 15/22 domains β
β ServiceCollection proxy β 35 services (via __CEL__) β
β RedirectBus β Wind/Cocoon/Mountain routing β
β AuditLog β Ring-buffered resolution log β
β SwallowMap rules β Pattern-matching engine β
β TierSwallow* per-domain β Individual domain toggles β
β CELExposeAccessor β Workbench bridge hooks β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Coverage: 15 of 22 core domains (growing) β
β Target: 474 decorated services β
β Infrastructure: Ready for full-service replacement β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββπ΅ Coverage by Domain
| Domain | Status | Tier | Shim Tier |
|---|---|---|---|
| Status Bar | π΅ SWALLOW | TierSwallowStatusBar=Swallow | Replace |
| SCM / Git | π΅ SWALLOW | TierSwallowSCM=Swallow | Replace |
| Search | π΅ SWALLOW | TierSwallowSearch=Swallow | Replace |
| Terminal | π΅ SWALLOW | TierSwallowTerminal=Swallow | Replace |
| Output | π΅ SWALLOW | TierSwallowOutput=Swallow | Replace |
| File System | π΅ SWALLOW | TierSwallowFile=Swallow | Replace |
| Notifications | π΅ SWALLOW | TierSwallowNotification=Swallow | Replace |
| Dialogs | π΅ SWALLOW | TierSwallowDialog=Swallow | Replace |
| Quick Input | π΅ SWALLOW | TierSwallowQuickInput=Swallow | Replace |
| Keybindings | π΅ SWALLOW | TierSwallowKeybinding=Swallow | Replace |
| Themes | π΅ SWALLOW | TierSwallowTheme=Swallow | Replace |
| Configuration | π΅ SWALLOW | TierSwallowConfiguration=Swallow | Replace |
| Telemetry | π΅ DISCARD | TierSwallowTelemetry=Discard | Replace |
| Extension Gallery | π΅ SWALLOW | TierSwallowGallery=Swallow | Replace |
| Product Identity | π΅ SWALLOW | TierSwallowProduct=Swallow | Replace |
π΅ Service Coverage Matrix
| Category | Total Services | Covered | Coverage % |
|---|---|---|---|
| Workbench UI | 25 | 15 | 60% |
| Platform Services | 100 | 35 | 35% |
| Editor Core | 40 | 8 | 20% |
| Extensions | 30 | 5 | 17% |
| Terminal | 12 | 4 | 33% |
| Chat/Copilot | 25 | 0 | 0% |
| Testing | 8 | 0 | 0% |
| Remote | 15 | 0 | 0% |
| Misc/Specialized | 219 | 0 | 0% |
| Total | 474 | 67 | 14% |
π΅ How It Works
The Coverage Shim uses three interception strategies:
IPC Intercept:
IPCInterceptor.tswrapsinvoke("MountainIPCInvoke")to check the SwallowMap before forwarding to Mountainβs DispatchMatch.DI Container Proxy:
ProxyServiceCollection.tswrapsServiceCollection.get()andServiceCollection.set()to log every service resolution and optionally replace services with Land shims.Audit Logging:
AuditLog.tsmaintains a ring buffer of all service resolutions, periodically flushed to Mountainβs dev log for coverage analysis.
π΅ Source Files
| File | Purpose |
|---|---|
Land/Element/Wind/Source/Shim/SwallowMap.ts | Pattern-matching decision engine |
Land/Element/Wind/Source/Shim/RedirectBus.ts | Handler registration and routing |
Land/Element/Wind/Source/Shim/IPCInterceptor.ts | Tauri IPC wrapper |
Land/Element/Wind/Source/Shim/AuditLog.ts | Service resolution auditor |
Land/Element/Wind/Source/Shim/Gate.ts | TierShim activation gate |
Land/Element/Output/Source/Service/CEL/Land/Shim/Init.ts | Runtime injection module |
π΅ Related Documentation
- Low-Level Shim β The engine-level prototype hooks (orange)
- VSCode API Coverage Matrix β API surface coverage
- Environment Variables β TierShim and TierSwallow* vars
- Build Pipeline β Output Transform injection
π΅ COVERAGE TELEMETRY β ACTIVE β This component tracks service resolution, event routing, and domain coverage. All data flows through Landβs diagnostic pipeline (OTLP/PostHog/dev log). No data leaves the local machine.