Skip to content

Commit 54bfb34

Browse files
authored
Release v1.1.12 (#16)
2 parents 08de8ee + b37e7a0 commit 54bfb34

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@ All notable changes to this extension will be documented in this file.
44

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

7+
## [1.1.12](https://github.com/yCodeTech/auto-comment-blocks/releases/tag/v1.1.12) - 2025-12-05
8+
9+
#### Fixed:
10+
11+
- Fixes [#14](https://github.com/yCodeTech/auto-comment-blocks/issues/14) via PR [#15](https://github.com/yCodeTech/auto-comment-blocks/pull/15)
12+
13+
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`.
14+
15+
When the "jsonc-parser" package encounters a problem parsing the JSON via its `parse` function, it just returns `null` instead of erroring.
16+
17+
- Fixed by adding proper error handling, logging and showing a user error dialog when parse errors occur, directly from `readJsonFile` function.
18+
19+
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.
20+
721
## [1.1.11](https://github.com/yCodeTech/auto-comment-blocks/releases/tag/v1.1.11) - 2025-10-17
822

923
#### Fixed:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "automatic-comment-blocks",
33
"displayName": "Automatic Comment Blocks",
44
"description": "Provides block comment completion for Javadoc-style multi-line comments and single-line comment blocks for most officially supported languages.",
5-
"version": "1.1.11",
5+
"version": "1.1.12",
66
"publisher": "ycodetech",
77
"homepage": "https://github.com/ycodetech/auto-comment-blocks",
88
"repository": {

0 commit comments

Comments
 (0)