Fetch and display : voidVersion into dialog handler

This commit is contained in:
Jérôme Commaret 2025-02-11 12:08:03 +01:00
parent ba606d229a
commit 014c87bc3e

View file

@ -71,6 +71,7 @@ export class NativeDialogHandler extends AbstractDialogHandler {
async about(): Promise<void> {
let version = this.productService.version;
let voidVersion = this.productService.voidVersion || 'Unknown';
if (this.productService.target) {
version = `${version} (${this.productService.target} setup)`;
} else if (this.productService.darwinUniversalAssetId) {
@ -81,7 +82,8 @@ export class NativeDialogHandler extends AbstractDialogHandler {
const detailString = (useAgo: boolean): string => {
return localize({ key: 'aboutDetail', comment: ['Electron, Chromium, Node.js and V8 are product names that need no translation'] },
"Version: {0}\nCommit: {1}\nDate: {2}\nElectron: {3}\nElectronBuildId: {4}\nChromium: {5}\nNode.js: {6}\nV8: {7}\nOS: {8}",
"Void : {0}\nVSCode Version: {1}\nCommit: {2}\nDate: {3}\nElectron: {4}\nElectronBuildId: {5}\nChromium: {6}\nNode.js: {7}\nV8: {8}\nOS: {9}",
voidVersion,
version,
this.productService.commit || 'Unknown',
this.productService.date ? `${this.productService.date}${useAgo ? ' (' + fromNow(new Date(this.productService.date), true) + ')' : ''}` : 'Unknown',