diff --git a/auto_package/templates/info.nj b/auto_package/templates/info.nj index f9652eb6..719ca01c 100644 --- a/auto_package/templates/info.nj +++ b/auto_package/templates/info.nj @@ -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" }, diff --git a/auto_package/templates/package.nj b/auto_package/templates/package.nj index a89bc6ce..99310cba 100644 --- a/auto_package/templates/package.nj +++ b/auto_package/templates/package.nj @@ -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) %} diff --git a/package.json b/package.json index 712cffdb..19b1c675 100644 --- a/package.json +++ b/package.json @@ -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" }, @@ -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)" } ], diff --git a/resources/release_notes/release-notes.html b/resources/release_notes/release-notes.html index 2553c351..411b3c57 100644 --- a/resources/release_notes/release-notes.html +++ b/resources/release_notes/release-notes.html @@ -39,7 +39,7 @@
-

🎉🎉 Release notes v6 🎉🎉

+

🎉🎉 Release notes TEROSHDL_VERSION 🎉🎉

We are excited to announce 1st class support for Intel@ Quartus@ Prime Pro. Check the documentation for more details: diff --git a/src/teroshdl/features/utils/webview/webview.ts b/src/teroshdl/features/utils/webview/webview.ts index 9e96a3de..eb4ccf28 100644 --- a/src/teroshdl/features/utils/webview/webview.ts +++ b/src/teroshdl/features/utils/webview/webview.ts @@ -93,6 +93,15 @@ export abstract class WebviewController 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; }