Skip to content

Commit b62d32e

Browse files
committed
Omit pre-release suffix for Fabric in VS Code changelog sync
1 parent 9e6b3e3 commit b62d32e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

eng/scripts/Sync-VsCodeChangelog.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ $MainChangelogPath = $ChangelogPath
6767
$mainChangelogFile = Join-Path $RepoRoot $MainChangelogPath
6868
$vscodeChangelogFile = Join-Path $RepoRoot $VsCodeChangelogPath
6969

70+
# VS Code changelog entries are marked "(pre-release)" by default. The Fabric
71+
# extension omits this suffix, so detect it from the changelog path.
72+
$preReleaseSuffix = if ($ChangelogPath -like '*Fabric.Mcp.Server*') { '' } else { ' (pre-release)' }
73+
7074
# Validate files exist
7175
if (-not (Test-Path $mainChangelogFile)) {
7276
LogError "Main CHANGELOG not found: $mainChangelogFile"
@@ -155,7 +159,7 @@ if ($currentSection -and $currentEntries.Count -gt 0) {
155159

156160
# Build VS Code changelog entry
157161
$vscodeEntry = @()
158-
$vscodeEntry += "## $Version ($(Get-Date -Format 'yyyy-MM-dd')) (pre-release)"
162+
$vscodeEntry += "## $Version ($(Get-Date -Format 'yyyy-MM-dd'))$preReleaseSuffix"
159163
$vscodeEntry += ""
160164

161165
# Helper function to add section if it has content

0 commit comments

Comments
 (0)