Skip to content

Commit f67e8c1

Browse files
committed
Add code ref to ErrorRecordExtensions
1 parent ac985fa commit f67e8c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/PowerShellEditorServices/Services/PowerShell/Utility/ErrorRecordExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ static ErrorRecordExtensions()
2727
// Generates a call like:
2828
// $errorPSObject.WriteStream = [System.Management.Automation.WriteStreamType]::Error
2929
// So that error record PSObjects will be rendered in the console properly
30+
// See https://github.com/PowerShell/PowerShell/blob/946341b2ebe6a61f081f4c9143668dc7be1f9119/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHost.cs#L2088-L2091
3031
s_setWriteStreamProperty = Expression.Lambda<Action<PSObject>>(
3132
Expression.Call(
3233
errorObjectParameter,

0 commit comments

Comments
 (0)