fix: use Start-Transcript -Append to allow nested transcript in VS Code session

This commit is contained in:
Simone
2026-05-08 23:59:51 +02:00
parent b64d6c2c5d
commit 97a852c9f3
+3 -1
View File
@@ -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 {