Skip to content

Commit

Permalink
Merge pull request #6009 from microsoft/ci/fix-vscode-versioning
Browse files Browse the repository at this point in the history
ci: fix vscode extension versioning script to support more than one patch version
  • Loading branch information
baywet authored Jan 14, 2025
2 parents 99d9038 + 6908010 commit c765971
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/update-vscode-releases.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ if ($version -like "*-preview.*") {
$updatedPatchVersion += (Get-Date).ToString("yyMMdd") + $sequenceNumber
}
else {
if ($updatedPatchVersion -eq "1") {
$updatedPatchVersion = "100000002"
$updatedPatchVersionAsNumber = 0;
if ([int]::TryParse($updatedPatchVersion, [ref]$updatedPatchVersionAsNumber)) {
$updatedPatchVersion = "10000000$($updatedPatchVersionAsNumber + 1)"
}
elseif ([string]::IsNullOrWhiteSpace($updatedPatchVersion)) {
$updatedPatchVersion = "100000001"
Expand Down

0 comments on commit c765971

Please sign in to comment.