mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-20 02:34:31 +10:00
fix: remove leading zeros before passing version to extension (#2302)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user