version-0-release.patch 1.6 KB

1234567891011121314151617181920212223242526272829303132
  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 f13affa..60f0ccb 100644
  25. --- a/src/vs/workbench/api/common/extHost.api.impl.ts
  26. +++ b/src/vs/workbench/api/common/extHost.api.impl.ts
  27. @@ -1548,3 +1548,3 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
  28. return <typeof vscode>{
  29. - version: initData.version,
  30. + version: initData.version.replace(/\.0+/g, '.'),
  31. // namespaces