version-0-release.patch 1.6 KB

12345678910111213141516171819202122232425262728293031
  1. diff --git a/build/gulpfile.vscode.linux.ts b/build/gulpfile.vscode.linux.ts
  2. index c5d2163..b4768b9 100644
  3. --- a/build/gulpfile.vscode.linux.ts
  4. +++ b/build/gulpfile.vscode.linux.ts
  5. @@ -90,3 +90,3 @@ function prepareDebPackage(arch: string) {
  6. .pipe(replace('@@NAME@@', product.applicationName))
  7. - .pipe(replace('@@VERSION@@', packageJson.version + '-' + linuxPackageRevision))
  8. + .pipe(replace('@@VERSION@@', packageJson.version))
  9. .pipe(replace('@@ARCHITECTURE@@', debArch))
  10. @@ -198,3 +198,2 @@ function prepareRpmPackage(arch: string) {
  11. .pipe(replace('@@VERSION@@', packageJson.version))
  12. - .pipe(replace('@@RELEASE@@', linuxPackageRevision.toString()))
  13. .pipe(replace('@@ARCHITECTURE@@', rpmArch))
  14. @@ -263,3 +262,3 @@ function prepareSnapPackage(arch: string) {
  15. .pipe(replace('@@NAME@@', product.applicationName))
  16. - .pipe(replace('@@VERSION@@', commit!.substr(0, 8)))
  17. + .pipe(replace('@@VERSION@@', packageJson.version))
  18. // Possible run-on values https://snapcraft.io/docs/architectures
  19. diff --git a/src/vs/workbench/api/common/extHost.api.impl.ts b/src/vs/workbench/api/common/extHost.api.impl.ts
  20. index 8838f2f..fb120ae 100644
  21. --- a/src/vs/workbench/api/common/extHost.api.impl.ts
  22. +++ b/src/vs/workbench/api/common/extHost.api.impl.ts
  23. @@ -1629,5 +1629,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
  24. + const version = initData.version.replace(/^([0-9]+\.[0-9]+\.[0-5]).*$/, '$1');
  25. +
  26. // eslint-disable-next-line local/code-no-dangerous-type-assertions
  27. return <typeof vscode>{
  28. - version: initData.version,
  29. + version,
  30. // namespaces