From 5d0842d80e1a85be86c12f800aee34b02ec37011 Mon Sep 17 00:00:00 2001 From: yCodeTech Date: Fri, 5 Dec 2025 05:04:46 +0000 Subject: [PATCH 1/2] docs: add new version --- CHANGELOG.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bf30ad2..05ec403 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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: From b37e7a06ce1be7473381758a2315a759bea157f7 Mon Sep 17 00:00:00 2001 From: yCodeTech Date: Fri, 5 Dec 2025 05:04:58 +0000 Subject: [PATCH 2/2] chore: version bump --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index de29a25..58c768a 100644 --- a/package.json +++ b/package.json @@ -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": {