2022-08-16 10:11:08 -04:00
|
|
|
diff --git a/build/gulpfile.reh.js b/build/gulpfile.reh.js
|
2023-05-28 17:07:30 -04:00
|
|
|
index 2a0c236..9fea722 100644
|
2022-08-16 10:11:08 -04:00
|
|
|
--- a/build/gulpfile.reh.js
|
|
|
|
+++ b/build/gulpfile.reh.js
|
2023-05-28 17:07:30 -04:00
|
|
|
@@ -250,4 +250,5 @@ function packageTask(type, platform, arch, sourceFolderName, destinationFolderNa
|
2022-08-16 13:00:11 -04:00
|
|
|
const name = product.nameShort;
|
|
|
|
+ const release = packageJson.release;
|
|
|
|
const packageJsonStream = gulp.src(['remote/package.json'], { base: 'remote' })
|
|
|
|
- .pipe(json({ name, version, dependencies: undefined, optionalDependencies: undefined }));
|
|
|
|
+ .pipe(json({ name, version, release, dependencies: undefined, optionalDependencies: undefined }));
|
|
|
|
|
2023-05-28 17:07:30 -04:00
|
|
|
@@ -256,3 +257,3 @@ function packageTask(type, platform, arch, sourceFolderName, destinationFolderNa
|
2022-09-25 08:54:41 -04:00
|
|
|
const productJsonStream = gulp.src(['product.json'], { base: '.' })
|
|
|
|
- .pipe(json({ commit, date, version }));
|
|
|
|
+ .pipe(json({ commit, date, version, release }));
|
|
|
|
|
2022-08-16 10:11:08 -04:00
|
|
|
diff --git a/build/gulpfile.vscode.js b/build/gulpfile.vscode.js
|
2023-05-28 17:07:30 -04:00
|
|
|
index 0ca2cfd..3fb21d5 100644
|
2022-08-16 10:11:08 -04:00
|
|
|
--- a/build/gulpfile.vscode.js
|
|
|
|
+++ b/build/gulpfile.vscode.js
|
2023-05-09 20:30:07 -04:00
|
|
|
@@ -225,3 +225,3 @@ function packageTask(platform, arch, sourceFolderName, destinationFolderName, op
|
2022-08-16 10:11:08 -04:00
|
|
|
|
|
|
|
- let version = packageJson.version;
|
2022-08-16 13:00:11 -04:00
|
|
|
+ let version = packageJson.version
|
2022-08-16 10:11:08 -04:00
|
|
|
const quality = product.quality;
|
2023-05-09 20:30:07 -04:00
|
|
|
@@ -233,3 +233,4 @@ function packageTask(platform, arch, sourceFolderName, destinationFolderName, op
|
2022-08-16 13:00:11 -04:00
|
|
|
const name = product.nameShort;
|
|
|
|
- const packageJsonUpdates = { name, version };
|
|
|
|
+ const release = packageJson.release;
|
|
|
|
+ const packageJsonUpdates = { name, version, release };
|
|
|
|
|
2023-05-09 20:30:07 -04:00
|
|
|
@@ -244,3 +245,3 @@ function packageTask(platform, arch, sourceFolderName, destinationFolderName, op
|
2022-09-25 08:54:41 -04:00
|
|
|
const date = new Date().toISOString();
|
|
|
|
- const productJsonUpdate = { commit, date, checksums, version };
|
|
|
|
+ const productJsonUpdate = { commit, date, checksums, version, release };
|
|
|
|
|
2022-08-16 07:51:45 -04:00
|
|
|
diff --git a/build/gulpfile.vscode.linux.js b/build/gulpfile.vscode.linux.js
|
2023-05-09 20:30:07 -04:00
|
|
|
index 90f75cc..275c958 100644
|
2022-08-16 07:51:45 -04:00
|
|
|
--- a/build/gulpfile.vscode.linux.js
|
|
|
|
+++ b/build/gulpfile.vscode.linux.js
|
2022-11-17 16:56:46 -05:00
|
|
|
@@ -25,4 +25,2 @@ const commit = getVersion(root);
|
2022-08-17 01:36:15 -04:00
|
|
|
|
|
|
|
-const linuxPackageRevision = Math.floor(new Date().getTime() / 1000);
|
|
|
|
-
|
|
|
|
/**
|
2022-11-17 16:56:46 -05:00
|
|
|
@@ -88,3 +86,3 @@ function prepareDebPackage(arch) {
|
2022-08-16 07:51:45 -04:00
|
|
|
.pipe(replace('@@NAME@@', product.applicationName))
|
|
|
|
- .pipe(replace('@@VERSION@@', packageJson.version + '-' + linuxPackageRevision))
|
2022-08-16 13:00:11 -04:00
|
|
|
+ .pipe(replace('@@VERSION@@', `${packageJson.version}.${packageJson.release}`))
|
2022-08-16 07:51:45 -04:00
|
|
|
.pipe(replace('@@ARCHITECTURE@@', debArch))
|
2022-11-17 16:56:46 -05:00
|
|
|
@@ -193,4 +191,3 @@ function prepareRpmPackage(arch) {
|
2022-08-16 07:51:45 -04:00
|
|
|
.pipe(replace('@@ICON@@', product.linuxIconName))
|
|
|
|
- .pipe(replace('@@VERSION@@', packageJson.version))
|
|
|
|
- .pipe(replace('@@RELEASE@@', linuxPackageRevision))
|
2022-08-16 13:00:11 -04:00
|
|
|
+ .pipe(replace('@@VERSION@@', `${packageJson.version}.${packageJson.release}`))
|
2022-08-16 07:51:45 -04:00
|
|
|
.pipe(replace('@@ARCHITECTURE@@', rpmArch))
|
2022-11-17 16:56:46 -05:00
|
|
|
@@ -267,3 +264,3 @@ function prepareSnapPackage(arch) {
|
2022-08-16 07:51:45 -04:00
|
|
|
.pipe(replace('@@NAME@@', product.applicationName))
|
|
|
|
- .pipe(replace('@@VERSION@@', commit.substr(0, 8)))
|
2022-08-16 13:00:11 -04:00
|
|
|
+ .pipe(replace('@@VERSION@@', `${packageJson.version}.${packageJson.release}`))
|
2022-08-16 07:51:45 -04:00
|
|
|
// Possible run-on values https://snapcraft.io/docs/architectures
|
|
|
|
diff --git a/build/gulpfile.vscode.win32.js b/build/gulpfile.vscode.win32.js
|
2023-05-28 17:07:30 -04:00
|
|
|
index 6e9a6f3..9d80b6b 100644
|
2022-08-16 07:51:45 -04:00
|
|
|
--- a/build/gulpfile.vscode.win32.js
|
|
|
|
+++ b/build/gulpfile.vscode.win32.js
|
2022-11-17 16:56:46 -05:00
|
|
|
@@ -94,4 +94,4 @@ function buildWin32Setup(arch, target) {
|
2022-08-16 07:51:45 -04:00
|
|
|
DirName: product.win32DirName,
|
|
|
|
- Version: pkg.version,
|
|
|
|
- RawVersion: pkg.version.replace(/-\w+$/, ''),
|
2022-08-16 13:00:11 -04:00
|
|
|
+ Version: `${pkg.version}.${pkg.release}`,
|
|
|
|
+ RawVersion: `${pkg.version.replace(/-\w+$/, '')}.${pkg.release}`,
|
2022-08-16 07:51:45 -04:00
|
|
|
NameVersion: product.win32NameVersion + (target === 'user' ? ' (User)' : ''),
|
|
|
|
diff --git a/resources/linux/rpm/code.spec.template b/resources/linux/rpm/code.spec.template
|
2023-05-09 20:30:07 -04:00
|
|
|
index 06b8549..3af1f45 100644
|
2022-08-16 07:51:45 -04:00
|
|
|
--- a/resources/linux/rpm/code.spec.template
|
|
|
|
+++ b/resources/linux/rpm/code.spec.template
|
2022-08-17 01:36:15 -04:00
|
|
|
@@ -2,3 +2,3 @@ Name: @@NAME@@
|
2022-08-16 07:51:45 -04:00
|
|
|
Version: @@VERSION@@
|
|
|
|
-Release: @@RELEASE@@.el7
|
|
|
|
+Release: el7
|
|
|
|
Summary: Code editing. Redefined.
|
2022-08-16 13:00:11 -04:00
|
|
|
diff --git a/src/vs/base/common/product.ts b/src/vs/base/common/product.ts
|
2023-05-28 17:07:30 -04:00
|
|
|
index ac9cd5d..87b6105 100644
|
2022-08-16 13:00:11 -04:00
|
|
|
--- a/src/vs/base/common/product.ts
|
|
|
|
+++ b/src/vs/base/common/product.ts
|
2023-05-09 20:30:07 -04:00
|
|
|
@@ -58,2 +58,3 @@ export interface IProductConfiguration {
|
2022-08-16 13:00:11 -04:00
|
|
|
readonly version: string;
|
|
|
|
+ readonly release: string;
|
|
|
|
readonly date?: string;
|
|
|
|
diff --git a/src/vs/platform/diagnostics/node/diagnosticsService.ts b/src/vs/platform/diagnostics/node/diagnosticsService.ts
|
2023-05-09 20:30:07 -04:00
|
|
|
index 0be311f..d6c4a18 100644
|
2022-08-16 13:00:11 -04:00
|
|
|
--- a/src/vs/platform/diagnostics/node/diagnosticsService.ts
|
|
|
|
+++ b/src/vs/platform/diagnostics/node/diagnosticsService.ts
|
2023-05-09 20:30:07 -04:00
|
|
|
@@ -224,3 +224,3 @@ export class DiagnosticsService implements IDiagnosticsService {
|
2022-08-16 13:00:11 -04:00
|
|
|
const output: string[] = [];
|
|
|
|
- output.push(`Version: ${this.productService.nameShort} ${this.productService.version} (${this.productService.commit || 'Commit unknown'}, ${this.productService.date || 'Date unknown'})`);
|
|
|
|
+ output.push(`Version: ${this.productService.nameShort} ${this.productService.version} ${this.productService.release || 'Release unknown'} (${this.productService.commit || 'Commit unknown'}, ${this.productService.date || 'Date unknown'})`);
|
|
|
|
output.push(`OS Version: ${osLib.type()} ${osLib.arch()} ${osLib.release()}`);
|
2022-08-16 07:51:45 -04:00
|
|
|
diff --git a/src/vs/platform/product/common/product.ts b/src/vs/platform/product/common/product.ts
|
2023-05-09 20:30:07 -04:00
|
|
|
index 51a55e1..26dfe7b 100644
|
2022-08-16 07:51:45 -04:00
|
|
|
--- a/src/vs/platform/product/common/product.ts
|
|
|
|
+++ b/src/vs/platform/product/common/product.ts
|
2022-11-23 15:51:36 -05:00
|
|
|
@@ -43,6 +43,7 @@ else if (globalThis._VSCODE_PRODUCT_JSON && globalThis._VSCODE_PACKAGE_JSON) {
|
2022-09-25 08:54:41 -04:00
|
|
|
if (!product.version) {
|
2022-11-23 15:51:36 -05:00
|
|
|
- const pkg = globalThis._VSCODE_PACKAGE_JSON as { version: string };
|
|
|
|
+ const pkg = globalThis._VSCODE_PACKAGE_JSON as { version: string, release: string };
|
2022-08-16 13:00:11 -04:00
|
|
|
|
2022-09-25 08:54:41 -04:00
|
|
|
Object.assign(product, {
|
|
|
|
- version: pkg.version
|
|
|
|
+ version: pkg.version,
|
|
|
|
+ release: pkg.release
|
|
|
|
});
|
2022-08-16 13:00:11 -04:00
|
|
|
diff --git a/src/vs/workbench/browser/parts/dialogs/dialogHandler.ts b/src/vs/workbench/browser/parts/dialogs/dialogHandler.ts
|
2023-05-28 17:07:30 -04:00
|
|
|
index 4b320bb..6619c75 100644
|
2022-08-16 13:00:11 -04:00
|
|
|
--- a/src/vs/workbench/browser/parts/dialogs/dialogHandler.ts
|
|
|
|
+++ b/src/vs/workbench/browser/parts/dialogs/dialogHandler.ts
|
2023-05-09 20:30:07 -04:00
|
|
|
@@ -22,2 +22,3 @@ import { defaultButtonStyles, defaultCheckboxStyles, defaultDialogStyles, defaul
|
|
|
|
import { ResultKind } from 'vs/platform/keybinding/common/keybindingResolver';
|
2022-11-01 13:56:12 -04:00
|
|
|
+import { getReleaseString } from 'vs/workbench/common/release';
|
|
|
|
|
2023-05-09 20:30:07 -04:00
|
|
|
@@ -79,2 +80,4 @@ export class BrowserDialogHandler extends AbstractDialogHandler {
|
2022-11-01 13:56:12 -04:00
|
|
|
const detailString = (useAgo: boolean): string => {
|
|
|
|
+ const releaseString = getReleaseString();
|
|
|
|
+
|
2022-08-16 13:00:11 -04:00
|
|
|
return localize('aboutDetail',
|
2023-05-09 20:30:07 -04:00
|
|
|
@@ -85,3 +88,3 @@ export class BrowserDialogHandler extends AbstractDialogHandler {
|
2022-11-01 13:56:12 -04:00
|
|
|
navigator.userAgent
|
|
|
|
- );
|
|
|
|
+ ).replace('\n', `\n${releaseString} ${this.productService.release || 'Unknown'}\n`);
|
|
|
|
};
|
|
|
|
diff --git a/src/vs/workbench/common/release.ts b/src/vs/workbench/common/release.ts
|
|
|
|
new file mode 100644
|
|
|
|
index 0000000..2a8ea57
|
|
|
|
--- /dev/null
|
|
|
|
+++ b/src/vs/workbench/common/release.ts
|
|
|
|
@@ -0,0 +1,14 @@
|
|
|
|
+import { language } from 'vs/base/common/platform';
|
|
|
|
+
|
|
|
|
+const DEFAULT_LABEL = 'Release:';
|
|
|
|
+const LABELS: { [key: string]: string } = {
|
|
|
|
+ 'en': DEFAULT_LABEL,
|
|
|
|
+ 'fr': 'Révision :',
|
|
|
|
+ 'ru': 'Релиз:',
|
|
|
|
+ 'zh-hans': '发布版本:',
|
|
|
|
+ 'zh-hant': '發布版本:',
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+export function getReleaseString(): string {
|
|
|
|
+ return LABELS[language] ?? DEFAULT_LABEL;
|
|
|
|
+}
|
2022-08-16 13:00:11 -04:00
|
|
|
diff --git a/src/vs/workbench/electron-sandbox/parts/dialogs/dialogHandler.ts b/src/vs/workbench/electron-sandbox/parts/dialogs/dialogHandler.ts
|
2023-05-28 17:07:30 -04:00
|
|
|
index 575bde3..f427833 100644
|
2022-08-16 13:00:11 -04:00
|
|
|
--- a/src/vs/workbench/electron-sandbox/parts/dialogs/dialogHandler.ts
|
|
|
|
+++ b/src/vs/workbench/electron-sandbox/parts/dialogs/dialogHandler.ts
|
2023-05-09 20:30:07 -04:00
|
|
|
@@ -14,2 +14,3 @@ import { IProductService } from 'vs/platform/product/common/productService';
|
2022-11-01 13:56:12 -04:00
|
|
|
import { process } from 'vs/base/parts/sandbox/electron-sandbox/globals';
|
|
|
|
+import { getReleaseString } from 'vs/workbench/common/release';
|
|
|
|
|
2023-05-09 20:30:07 -04:00
|
|
|
@@ -77,2 +78,3 @@ export class NativeDialogHandler extends AbstractDialogHandler {
|
2022-11-01 13:56:12 -04:00
|
|
|
const osProps = await this.nativeHostService.getOSProperties();
|
|
|
|
+ const releaseString = getReleaseString();
|
|
|
|
|
2023-05-28 17:07:30 -04:00
|
|
|
@@ -89,3 +91,3 @@ export class NativeDialogHandler extends AbstractDialogHandler {
|
|
|
|
`${osProps.type} ${osProps.arch} ${osProps.release}${isLinuxSnap ? ' snap' : ''}`
|
2022-11-01 13:56:12 -04:00
|
|
|
- );
|
|
|
|
+ ).replace('\n', `\n${releaseString} ${this.productService.release || 'Unknown'}\n`);
|
|
|
|
};
|