diff --git a/scripts/Invoke-CIJob.ps1 b/scripts/Invoke-CIJob.ps1 index 05b6022..ce66e8e 100644 --- a/scripts/Invoke-CIJob.ps1 +++ b/scripts/Invoke-CIJob.ps1 @@ -166,7 +166,9 @@ try { $jobLogDir = Join-Path $LogDir $JobId if (-not (Test-Path $jobLogDir)) { New-Item -ItemType Directory -Path $jobLogDir -Force | Out-Null } $transcriptPath = Join-Path $jobLogDir 'invoke-ci.log' - Start-Transcript -Path $transcriptPath -Force -ErrorAction Stop + # -Append allows starting a new transcript even when VS Code (or another host) + # has already opened a transcript on this PowerShell session. + Start-Transcript -Path $transcriptPath -Append -Force -ErrorAction Stop $transcriptStarted = $true } catch {