How tekumara/typos-lsp works
Main Components
a) Editor Integration Layer
• VS Code Extension component (TypeScript-based)
• Other Editor Support (Neovim, Helix, Zed)
b) LSP Server Core (Rust-based)
• Main LSP Server component (from typos-lsp crate)
• State Management module
• Typos Integration module
• Windows-specific handling
c) External Dependencies
• Typos library (external spell checking engine)
• Configuration Management (typos.toml handling)
Specific Implementation Details
• LSP Protocol Handlers (from lsp.rs)
• State Management (from state.rs)
• Typos Integration Layer (from typos.rs)
• Platform-specific code (from windows.rs)
Data Flow Representation
Following flows:
Additional Elements
Annotations for:
• Configuration file locations (typos.toml, _typos.toml, .typos.toml)
• Supported file types
• Quick Fix capability
• Workspace context boundaries
Technical Details to Highlight
Emphasize:
• Rust-based server implementation
• TypeScript-based VS Code extension
• LSP protocol compliance
• File system interactions
• Configuration management
• Binary vs text file handling