Skip to content

Commit 2f067f1

Browse files
committed
Adjust Debug pragma to noop the monitoring stream in release build
1 parent 1d8a574 commit 2f067f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/PowerShellEditorServices.Test.E2E/Hosts/DebugOutputStream.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ public DebugOutputStream(Stream? underlyingStream)
3131
if (segment.Array is null) { return; }
3232
LogData("➡️", segment.Array, segment.Offset, segment.Count);
3333
};
34-
#endif
3534

3635
}
3736

@@ -44,4 +43,5 @@ private static void LogData(string header, byte[] buffer, int offset, int count)
4443
Debug.WriteLine($"{header} {data}");
4544
}
4645
}
46+
#endif
4747
}

0 commit comments

Comments
 (0)