Skip to content

Commit 14e40db

Browse files
authored
fix: remove leading zeros before passing version to extension (#2302)
1 parent d4b6a02 commit 14e40db

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

patches/version-0-release.patch

+9
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,12 @@ index cd8610d..2d928b1 100644
2121
- .pipe(replace('@@VERSION@@', commit.substr(0, 8)))
2222
+ .pipe(replace('@@VERSION@@', packageJson.version))
2323
// Possible run-on values https://snapcraft.io/docs/architectures
24+
diff --git a/src/vs/workbench/api/common/extHost.api.impl.ts b/src/vs/workbench/api/common/extHost.api.impl.ts
25+
index f13affa..60f0ccb 100644
26+
--- a/src/vs/workbench/api/common/extHost.api.impl.ts
27+
+++ b/src/vs/workbench/api/common/extHost.api.impl.ts
28+
@@ -1548,3 +1548,3 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
29+
return <typeof vscode>{
30+
- version: initData.version,
31+
+ version: initData.version.replace(/\.0+/g, '.'),
32+
// namespaces

0 commit comments

Comments
 (0)