fix: use Start-Transcript -Append to allow nested transcript in VS Code session
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user