Plan VSCode extension version 2.0 revamp#734
Merged
andi1984 merged 2 commits intoNov 22, 2025
Merged
Conversation
Restructured the extension from a single-file architecture to a modular, maintainable codebase. This refactoring is the foundation for v2.0.0. Changes: - Created new src/ directory structure with organized modules - Extracted services: CompressionService, ConfigService - Extracted utilities: errorHandler, fileUtils - Created dedicated command handlers for each command - Defined TypeScript interfaces for type safety - Updated tsconfig.json to compile from src/ directory - Preserved all existing functionality (no breaking changes) Directory structure: src/ ├── commands/ - Command handlers ├── services/ - Core business logic ├── utils/ - Helper functions ├── types/ - TypeScript interfaces └── extension.ts - Main entry point Benefits: - Better code organization and maintainability - Improved testability with separated concerns - Clear separation between UI, business logic, and utilities - Foundation for adding new features (queue system, progress tracking, etc.) - Type safety with proper TypeScript interfaces All existing commands work exactly as before: - Compress single file - Compress folder - Compress git staged files - Get compression count
The refactored code is now in src/ directory, which compiles to out/src/extension.js instead of out/extension.js. Updated package.json to point to the correct entry point. This fixes the test failures where VSCode couldn't find the extension module because it was looking at the old path. Changes: - Updated "main" in package.json from "./out/extension.js" to "./out/src/extension.js" Fixes #6 test failures related to extension activation and command registration.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Restructured the extension from a single-file architecture to a modular, maintainable codebase. This refactoring is the foundation for v2.0.0.
Changes:
Directory structure:
src/
├── commands/ - Command handlers
├── services/ - Core business logic
├── utils/ - Helper functions
├── types/ - TypeScript interfaces
└── extension.ts - Main entry point
Benefits:
All existing commands work exactly as before: