How boshyxd/remove-all-comments works
Component Details and Relationships
[VSCode Extension Host]
• ↓
[Command Registration] ← → [Configuration Manager]
• ↓
[Event Handlers]
• ↙ ↘
[Manual [Auto-Save
Trigger] Trigger]
• ↘ ↙
[Comment Removal Engine]
• ↓
[Language Detector]
• ↓
[Language-Specific Handlers]
• ↓
[File System Operations]
Specific Component Details
Language Handlers Section:
[Language Detector]
• ↓
┌────┬────┬────┬────┐
• Py │JS │Lua │C++ │
• ┴────┴────┴────┘
Processing Stages
Comment removal pipeline:
[Source Code Input] → [Tokenization] → [Comment Detection] →
[String Preservation] → [Comment Removal] → [Code Reconstruction]
Key Elements to Highlight
• Extension activation triggers
• Command registration process
• Settings management
• Language-specific processing logic
• File handling safety measures
Technical Details
• VSCode API integration points
• File extension handlers
• Comment pattern definitions
• String literal preservation logic
• Error handling flow