Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ All notable changes to this extension will be documented in this file.

This Changelog uses the [Keep a Changelog](http://keepachangelog.com/) structure.

## [1.1.12](https://github.com/yCodeTech/auto-comment-blocks/releases/tag/v1.1.12) - 2025-12-05

#### Fixed:

- Fixes [#14](https://github.com/yCodeTech/auto-comment-blocks/issues/14) via PR [#15](https://github.com/yCodeTech/auto-comment-blocks/pull/15)

The extension crashes on startup with the `Cannot convert undefined or null to object` error. This is caused by the `Object.keys` in `Configuration::setLanguageConfigDefinitions` method because the config JSON file failed to parse in the `readJsonFile` util function which made the config `null`.

When the "jsonc-parser" package encounters a problem parsing the JSON via its `parse` function, it just returns `null` instead of erroring.

- Fixed by adding proper error handling, logging and showing a user error dialog when parse errors occur, directly from `readJsonFile` function.

If errors occur, the error will be thrown from `readJsonFile` which will fail extension startup and crash, this is to provide easier debugging, instead of waiting for subsequent code that relies on the function from crashing the extension with an unrelated error.

## [1.1.11](https://github.com/yCodeTech/auto-comment-blocks/releases/tag/v1.1.11) - 2025-10-17

#### Fixed:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "automatic-comment-blocks",
"displayName": "Automatic Comment Blocks",
"description": "Provides block comment completion for Javadoc-style multi-line comments and single-line comment blocks for most officially supported languages.",
"version": "1.1.11",
"version": "1.1.12",
"publisher": "ycodetech",
"homepage": "https://github.com/ycodetech/auto-comment-blocks",
"repository": {
Expand Down