2022-08-16 10:11:08 -04:00
|
|
|
diff --git a/build/gulpfile.reh.js b/build/gulpfile.reh.js
|
2022-08-17 01:36:15 -04:00
|
|
|
index a07c552..e5546e0 100644
|
2022-08-16 10:11:08 -04:00
|
|
|
--- a/build/gulpfile.reh.js
|
|
|
|
+++ b/build/gulpfile.reh.js
|
2022-08-17 01:36:15 -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 }));
|
|
|
|
|
2022-08-16 10:11:08 -04:00
|
|
|
diff --git a/build/gulpfile.vscode.js b/build/gulpfile.vscode.js
|
2022-08-17 01:36:15 -04:00
|
|
|
index 2c075a3..ff98402 100644
|
2022-08-16 10:11:08 -04:00
|
|
|
--- a/build/gulpfile.vscode.js
|
|
|
|
+++ b/build/gulpfile.vscode.js
|
2022-08-17 01:36:15 -04:00
|
|
|
@@ -191,3 +191,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;
|
2022-08-17 01:36:15 -04:00
|
|
|
@@ -199,3 +199,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 };
|
|
|
|
|
2022-08-16 07:51:45 -04:00
|
|
|
diff --git a/build/gulpfile.vscode.linux.js b/build/gulpfile.vscode.linux.js
|
2022-08-17 01:36:15 -04:00
|
|
|
index 4a25ca5..ca33d2e 100644
|
2022-08-16 07:51:45 -04:00
|
|
|
--- a/build/gulpfile.vscode.linux.js
|
|
|
|
+++ b/build/gulpfile.vscode.linux.js
|
2022-08-17 01:36:15 -04:00
|
|
|
@@ -24,4 +24,2 @@ const commit = util.getVersion(root);
|
|
|
|
|
|
|
|
-const linuxPackageRevision = Math.floor(new Date().getTime() / 1000);
|
|
|
|
-
|
|
|
|
/**
|
|
|
|
@@ -87,3 +85,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-08-17 01:36:15 -04:00
|
|
|
@@ -192,4 +190,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-08-17 01:36:15 -04:00
|
|
|
@@ -266,3 +263,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
|
2022-08-16 13:00:11 -04:00
|
|
|
index 81ba509..43f5377 100644
|
2022-08-16 07:51:45 -04:00
|
|
|
--- a/build/gulpfile.vscode.win32.js
|
|
|
|
+++ b/build/gulpfile.vscode.win32.js
|
2022-08-17 01:36:15 -04:00
|
|
|
@@ -93,4 +93,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
|
2022-08-17 01:36:15 -04:00
|
|
|
index 61659d2..5cafa06 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
|
|
|
|
index 1ae8079..0dad6ac 100644
|
|
|
|
--- a/src/vs/base/common/product.ts
|
|
|
|
+++ b/src/vs/base/common/product.ts
|
2022-08-17 01:36:15 -04:00
|
|
|
@@ -34,2 +34,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
|
|
|
|
index e1c60a3..a12d52c 100644
|
|
|
|
--- a/src/vs/platform/diagnostics/node/diagnosticsService.ts
|
|
|
|
+++ b/src/vs/platform/diagnostics/node/diagnosticsService.ts
|
2022-08-17 01:36:15 -04:00
|
|
|
@@ -239,3 +239,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
|
2022-08-16 13:00:11 -04:00
|
|
|
index 7e63a16..74d1f26 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-08-17 01:36:15 -04:00
|
|
|
@@ -34,3 +34,3 @@ else if (typeof require?.__$__nodeRequire === 'function') {
|
2022-08-16 13:00:11 -04:00
|
|
|
product = require.__$__nodeRequire(joinPath(rootPath, 'product.json').fsPath);
|
|
|
|
- const pkg = require.__$__nodeRequire(joinPath(rootPath, 'package.json').fsPath) as { version: string };
|
|
|
|
+ const pkg = require.__$__nodeRequire(joinPath(rootPath, 'package.json').fsPath) as { version: string, release: string };
|
|
|
|
|
2022-08-17 01:36:15 -04:00
|
|
|
@@ -47,3 +47,4 @@ else if (typeof require?.__$__nodeRequire === 'function') {
|
2022-08-16 07:51:45 -04:00
|
|
|
Object.assign(product, {
|
|
|
|
- version: pkg.version
|
2022-08-16 13:00:11 -04:00
|
|
|
+ version: pkg.version,
|
|
|
|
+ release: pkg.release
|
2022-08-16 07:51:45 -04:00
|
|
|
});
|
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
|
2022-08-17 01:36:15 -04:00
|
|
|
index ec4ff95..36e882f 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
|
2022-08-17 01:36:15 -04:00
|
|
|
@@ -146,4 +146,5 @@ export class BrowserDialogHandler implements IDialogHandler {
|
2022-08-16 13:00:11 -04:00
|
|
|
return localize('aboutDetail',
|
|
|
|
- "Version: {0}\nCommit: {1}\nDate: {2}\nBrowser: {3}",
|
|
|
|
+ "Version: {0}\nRelease: {1}\nCommit: {2}\nDate: {3}\nBrowser: {4}",
|
|
|
|
this.productService.version || 'Unknown',
|
2022-08-17 01:36:15 -04:00
|
|
|
+ this.productService.release || 'Unknown',
|
2022-08-16 13:00:11 -04:00
|
|
|
this.productService.commit || 'Unknown',
|
|
|
|
diff --git a/src/vs/workbench/contrib/issue/browser/issueService.ts b/src/vs/workbench/contrib/issue/browser/issueService.ts
|
|
|
|
index dc7430b..23def01 100644
|
|
|
|
--- a/src/vs/workbench/contrib/issue/browser/issueService.ts
|
|
|
|
+++ b/src/vs/workbench/contrib/issue/browser/issueService.ts
|
2022-08-17 01:36:15 -04:00
|
|
|
@@ -67,2 +67,3 @@ export class WebIssueService implements IWorkbenchIssueService {
|
2022-08-16 13:00:11 -04:00
|
|
|
Version: ${this.productService.version}
|
|
|
|
+Release: ${this.productService.release ?? 'unknown'}
|
|
|
|
Commit: ${this.productService.commit ?? 'unknown'}
|
|
|
|
diff --git a/src/vs/workbench/electron-sandbox/parts/dialogs/dialogHandler.ts b/src/vs/workbench/electron-sandbox/parts/dialogs/dialogHandler.ts
|
2022-08-17 01:36:15 -04:00
|
|
|
index f63b75f..8e24c02 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
|
2022-08-17 01:36:15 -04:00
|
|
|
@@ -169,4 +169,5 @@ export class NativeDialogHandler implements IDialogHandler {
|
2022-08-16 13:00:11 -04:00
|
|
|
return localize({ key: 'aboutDetail', comment: ['Electron, Chromium, Node.js and V8 are product names that need no translation'] },
|
2022-08-17 01:36:15 -04:00
|
|
|
- "Version: {0}\nCommit: {1}\nDate: {2}\nElectron: {3}\nChromium: {4}\nNode.js: {5}\nV8: {6}\nOS: {7}\nSandboxed: {8}",
|
|
|
|
+ "Version: {0}\nRelease: {1}\nCommit: {2}\nDate: {3}\nElectron: {4}\nChromium: {5}\nNode.js: {6}\nV8: {7}\nOS: {8}\nSandboxed: {9}",
|
2022-08-16 13:00:11 -04:00
|
|
|
version,
|
|
|
|
+ this.productService.release || 'Unknown',
|
|
|
|
this.productService.commit || 'Unknown',
|