version-0-release.patch 1.7 KB

123456789101112131415161718192021222324252627282930313233343536
  1. diff --git a/build/gulpfile.vscode.linux.js b/build/gulpfile.vscode.linux.js
  2. index cd8610d..2d928b1 100644
  3. --- a/build/gulpfile.vscode.linux.js
  4. +++ b/build/gulpfile.vscode.linux.js
  5. @@ -27,4 +27,2 @@ const commit = getVersion(root);
  6. -const linuxPackageRevision = Math.floor(new Date().getTime() / 1000);
  7. -
  8. /**
  9. @@ -90,3 +88,3 @@ function prepareDebPackage(arch) {
  10. .pipe(replace('@@NAME@@', product.applicationName))
  11. - .pipe(replace('@@VERSION@@', packageJson.version + '-' + linuxPackageRevision))
  12. + .pipe(replace('@@VERSION@@', packageJson.version))
  13. .pipe(replace('@@ARCHITECTURE@@', debArch))
  14. @@ -204,3 +202,2 @@ function prepareRpmPackage(arch) {
  15. .pipe(replace('@@VERSION@@', packageJson.version))
  16. - .pipe(replace('@@RELEASE@@', linuxPackageRevision))
  17. .pipe(replace('@@ARCHITECTURE@@', rpmArch))
  18. @@ -278,3 +275,3 @@ function prepareSnapPackage(arch) {
  19. .pipe(replace('@@NAME@@', product.applicationName))
  20. - .pipe(replace('@@VERSION@@', commit.substr(0, 8)))
  21. + .pipe(replace('@@VERSION@@', packageJson.version))
  22. // Possible run-on values https://snapcraft.io/docs/architectures
  23. diff --git a/src/vs/workbench/api/common/extHost.api.impl.ts b/src/vs/workbench/api/common/extHost.api.impl.ts
  24. index 0db2369..5cac67b 100644
  25. --- a/src/vs/workbench/api/common/extHost.api.impl.ts
  26. +++ b/src/vs/workbench/api/common/extHost.api.impl.ts
  27. @@ -1537,5 +1537,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
  28. + const version = initData.version.replace(/^([0-9]+\.[0-9]+\.[0-5]).*$/, '$1');
  29. +
  30. // eslint-disable-next-line local/code-no-dangerous-type-assertions
  31. return <typeof vscode>{
  32. - version: initData.version,
  33. + version,
  34. // namespaces