Explorar el Código

fix: remove leading zeros before passing version to extension (#2302)

Baptiste Augrain hace 2 meses
padre
commit
14e40dbd37
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  1. 9 0
      patches/version-0-release.patch

+ 9 - 0
patches/version-0-release.patch

@@ -21,3 +21,12 @@ index cd8610d..2d928b1 100644
 -			.pipe(replace('@@VERSION@@', commit.substr(0, 8)))
 +			.pipe(replace('@@VERSION@@', packageJson.version))
  			// Possible run-on values https://snapcraft.io/docs/architectures
+diff --git a/src/vs/workbench/api/common/extHost.api.impl.ts b/src/vs/workbench/api/common/extHost.api.impl.ts
+index f13affa..60f0ccb 100644
+--- a/src/vs/workbench/api/common/extHost.api.impl.ts
++++ b/src/vs/workbench/api/common/extHost.api.impl.ts
+@@ -1548,3 +1548,3 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
+ 		return <typeof vscode>{
+-			version: initData.version,
++			version: initData.version.replace(/\.0+/g, '.'),
+ 			// namespaces