Skip to content

Commit 52e27cf

Browse files
committed
Enable Content-Length header in stdio reader
This change turns on the "Content-Length" header expectation for the MessageReader that is used in the language service host. The VS Code plugin now writes out this header for all of its requests.
1 parent 26077c0 commit 52e27cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PowerShellEditorServices.Transport.Stdio/StdioHost.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ async Task ListenForMessages()
142142
MessageReader messageReader =
143143
new MessageReader(
144144
System.Console.In,
145-
MessageFormat.WithoutContentLength,
145+
MessageFormat.WithContentLength,
146146
messageTypeResolver);
147147

148148
MessageWriter messageWriter =

0 commit comments

Comments
 (0)