Skip to content

Commit 077d948

Browse files
committed
fix: info log message for on document open event for clarity.
- Updated log message to indicate both document opening and language change events for better clarity and removed the "active editor" wording as it doesn't necessarily fire for the active editor.
1 parent e67716b commit 077d948

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export function activate(context: vscode.ExtensionContext) {
104104
* Called when active editor language is changed, so re-configure the comment blocks.
105105
*/
106106
const documentOpenDisposable = vscode.workspace.onDidOpenTextDocument((e) => {
107-
logger.info(`Active editor language changed to "${e.languageId}", re-configuring comment blocks.`);
107+
logger.info(`Document opened or language changed to "${e.languageId}", re-configuring comment blocks.`);
108108

109109
// Dispose of old comment block configurations to prevent memory leaks
110110
commentBlocksDisposables.forEach((disposable) => disposable.dispose());

0 commit comments

Comments
 (0)