Skip to content

Commit b4077e4

Browse files
committed
Release 0.0.48
1 parent 9edfd99 commit b4077e4

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "liquid-java",
33
"displayName": "LiquidJava",
44
"description": "Extending Java with Liquid Types",
5-
"version": "0.0.47",
5+
"version": "0.0.48",
66
"publisher": "AlcidesFonseca",
77
"repository": {
88
"type": "git",

client/src/webview/renderers/diagnostics/errors.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,10 @@ function renderExtra(error: LJError, errorIndex: number, isExpanded: boolean): s
8080
${isExpanded ? '↑' : '↓'}
8181
</button>
8282
`;
83-
if (!isExpanded) return button;
8483

85-
let extra = button;
86-
extra += '<div class="extra-content">';
84+
let extra = "";
8785
if (error.hasOwnProperty('translationTable')) {
8886
extra += renderTranslationTable((error as any).translationTable as TranslationTable);
8987
}
90-
extra += '</div>';
91-
return extra;
88+
return extra ? isExpanded ? /*html*/`${button}<div class="extra-content">${extra}</div>` : button : "";
9289
}

0 commit comments

Comments
 (0)