Skip to content

Minor fixes to PSScript resource#1558

Merged
SteveL-MSFT merged 2 commits into
PowerShell:mainfrom
SteveL-MSFT:ai-fixes
Jun 8, 2026
Merged

Minor fixes to PSScript resource#1558
SteveL-MSFT merged 2 commits into
PowerShell:mainfrom
SteveL-MSFT:ai-fixes

Conversation

@SteveL-MSFT

Copy link
Copy Markdown
Member

PR Summary

Minor issues found by AI

  • removed comment since it's out of date and not really providing value
  • add Write-TraceQueue before exit in failed case so accumulated traces get written

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes small reliability/cleanup adjustments to the PSScript resource wrapper, primarily aimed at ensuring trace output isn’t lost when script execution fails.

Changes:

  • Flushes the trace queue before exiting when the invoked script enters a Failed invocation state.
  • Removes an outdated inline comment about non-terminating errors.

Comment thread resources/PSScript/psscript.ps1 Outdated
@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue Jun 8, 2026
Merged via the queue into PowerShell:main with commit eafa1f3 Jun 8, 2026
19 checks passed
@SteveL-MSFT SteveL-MSFT deleted the ai-fixes branch June 8, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants