Comment Inserter — v0.0.2
This release introduces full configuration for comment insertion and improves logging and file handling. Google Drive submission from the previous version has been removed to simplify the workflow.
New Features
Configurable Comment Metadata
Users can now choose which information to include in inserted comments via settings:
authorName → Sets the author line.
includeDate → Toggle inclusion of the current date.
includeFileName → Toggle inclusion of the file name.
Automatic Comment Insertion on File Creation
Java files created in the workspace are automatically opened and have comments inserted at the top.
Improvements
Logging Enhancements
Logs author name, file name, and successful insertion events using Winston.
Errors during insertion are now logged consistently.
Cleaner and Maintainable Code
insertComment() logic is simplified and dynamically respects configuration settings.
Improved readability and reduced redundant global variables.
File Handling
More reliable detection of Java files.
Proper handling of filenames and formatting for cross-platform paths.
Removed
Google Drive file submission functionality.
Global static author and drive path variables.
Forced inclusion of date and file name in comments—now fully configurable.
Bug Fixes
Fixed logging for file detection (true/false now reported correctly).
Ensured errors in comment insertion do not crash the extension.
Summary
This version focuses on customization, clarity, and maintainability. Users now have full control over what metadata is included in their comments, and automatic insertion is more robust and reliable.