Skip to content

Commit

Permalink
Merge branch 'main' into fix/extension/api-center-client-vscode-gener…
Browse files Browse the repository at this point in the history
…ation-disabled
  • Loading branch information
thewahome authored Jan 14, 2025
2 parents 6437ddb + c765971 commit bc34df6
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 bc34df6

Please sign in to comment.