Skip to content

Commit

Permalink
automatic release notes version
Browse files Browse the repository at this point in the history
  • Loading branch information
qarlosalberto committed Oct 20, 2024
1 parent 6ec4ba1 commit 09d369e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion auto_package/templates/info.nj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"displayName": "TerosHDL",
"publisher": "teros-technology",
"description": "Powerful toolbox for ASIC/FPGA: state machine viewer, linter, documentation, snippets... and more! ",
"version": "6.0.12",
"version": "6.0.13",
"engines": {
"vscode": "^1.74.0"
},
Expand Down
2 changes: 1 addition & 1 deletion auto_package/templates/package.nj
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
},
{
"view": "teroshdl-view-actions",
"contents": "[Open Global Settings Menu](command:teroshdl.configuration.global)\n[Export Settings](command:teroshdl.view.project.export_configuration)\n[Load Settings](command:teroshdl.view.project.load_configuration)\n[Documentation](command:teroshdl.documentation)\n[Verify Setup](command:teroshdl.verifySetup)"
"contents": "[Verify Setup](command:teroshdl.verifySetup)\n[Open Global Settings Menu](command:teroshdl.configuration.global)\n[Export Settings](command:teroshdl.view.project.export_configuration)\n[Load Settings](command:teroshdl.view.project.load_configuration)\n[Documentation](command:teroshdl.documentation)"
}
],
{% filter indent(width=8) %}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "TerosHDL",
"publisher": "teros-technology",
"description": "Powerful toolbox for ASIC/FPGA: state machine viewer, linter, documentation, snippets... and more! ",
"version": "6.0.12",
"version": "6.0.13",
"engines": {
"vscode": "^1.74.0"
},
Expand Down Expand Up @@ -120,7 +120,7 @@
},
{
"view": "teroshdl-view-actions",
"contents": "[Open Global Settings Menu](command:teroshdl.configuration.global)\n[Export Settings](command:teroshdl.view.project.export_configuration)\n[Load Settings](command:teroshdl.view.project.load_configuration)\n[Documentation](command:teroshdl.documentation)\n[Verify Setup](command:teroshdl.verifySetup)"
"contents": "[Verify Setup](command:teroshdl.verifySetup)\n[Open Global Settings Menu](command:teroshdl.configuration.global)\n[Export Settings](command:teroshdl.view.project.export_configuration)\n[Load Settings](command:teroshdl.view.project.load_configuration)\n[Documentation](command:teroshdl.documentation)"
}
],

Expand Down
2 changes: 1 addition & 1 deletion resources/release_notes/release-notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<br>


<center><h1 id="release-notes">🎉🎉 Release notes v6 🎉🎉</h1></center>
<center><h1 id="release-notes">🎉🎉 Release notes TEROSHDL_VERSION 🎉🎉</h1></center>

<p>
We are excited to announce 1st class support for Intel@ Quartus@ Prime Pro. Check the documentation for more details:
Expand Down
9 changes: 9 additions & 0 deletions src/teroshdl/features/utils/webview/webview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@ export abstract class WebviewController<TBootstrap> extends Disposable {
// Replace placeholders in html content for assets and adding configurations as `window.bootstrap`
fullHtml += this.replaceInPanel(html);

let version = "";
try {
version = `v${require(path.join(this.context.extensionPath, 'package.json')).version}`;
} catch (e) {
console.error(e);
}

fullHtml = fullHtml.replace(/TEROSHDL_VERSION/g, version);

this.panel.webview.html = fullHtml;
}

Expand Down

0 comments on commit 09d369e

Please sign in to comment.