Repository navigation
ComplexityLens v2.0.0 Release Notes
We're excited to announce ComplexityLens v2.0.0, bringing full customization to how code complexity is displayed in your TypeScript and JavaScript files. This release empowers you to tailor every aspect of the plugin to your team's coding standards, making it easier to manage code quality.
What's New
-
Full Customization of Settings:
- Complete control over all complexity display settings through a streamlined configuration panel.
- Customize Thresholds:
- Warning Threshold (default: 10) and Error Threshold (default: 15) to define complexity risk levels.
- Customize Messages:
- Define messages for Low, Warning, and Error complexity levels (default: "Risk").
- Updated message format to display as
[Icon] [Message] [Complexity](e.g.,✅ Risk 5).
- Customize Colors and Icons:
- Set colors (e.g., "green", "#00FF00") and icons (e.g., ✅,
⚠️ , ❌) for Low, Warning, and Error complexity levels.
- Set colors (e.g., "green", "#00FF00") and icons (e.g., ✅,
- Access the configuration panel via
ComplexityLens: Configure Thresholds and Stylesin the Command Palette. - Fine-tune settings in VS Code’s Settings UI by searching for
ComplexityLens.
-
Simplified Configuration:
- Removed the "Recommended Settings" option, ensuring all settings are always accessible for customization.
- Added a Reset to Default button to restore default values:
- Thresholds: Warning (10), Error (15)
- Messages: "Risk" (for Low, Warning, Error)
- Colors: Green, Orange, Red
- Icons: ✅,
⚠️ , ❌
-
Improved User Experience:
- Configuration panel organizes settings into clear sections: Thresholds, Messages, and Colors/Icons, with Thresholds always at the top.
- Updated default messages to "Risk" for a cleaner display (e.g.,
✅ Risk 5instead of✅ Risk: 5).
Bug Fixes
- Resolved TypeScript compilation issues related to Webview UI rendering for a stable configuration experience.
- Fixed inconsistencies in settings persistence, ensuring custom configurations are saved across sessions.
How to Update
- Open VS Code and go to the Extensions view (
Ctrl+Shift+XorCmd+Shift+Xon macOS). - Find ComplexityLens in your installed extensions.
- Click Update if available, or reinstall to get v2.0.0.
- Reload VS Code to apply the update.
Feedback
We’d love to hear your thoughts on the new customization features! Share feedback, report issues, or suggest improvements on our GitHub repository.
Thank you for using ComplexityLens!