Skip to content

Commit f5995eb

Browse files
committed
tests/CSharpLanguageServer.Tests/Tooling.fs: apply fantomas
1 parent 401d143 commit f5995eb

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

tests/CSharpLanguageServer.Tests/Tooling.fs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,14 +310,22 @@ let processClientEvent (state: ClientState) (post: ClientEvent -> unit) msg : As
310310
let bytesRead: List<byte> = List<byte>()
311311

312312
while bytesRead.Count < header.ContentLength do
313-
let numBytesToReadInThisChunk = Math.Min(header.ContentLength - bytesRead.Count, 4096)
313+
let numBytesToReadInThisChunk =
314+
Math.Min(header.ContentLength - bytesRead.Count, 4096)
315+
314316
let chunk: byte[] = Array.zeroCreate numBytesToReadInThisChunk
315317
let chunkBytesRead: int = stdout.Read(chunk)
316-
for i in 0 .. (chunkBytesRead-1) do
318+
319+
for i in 0 .. (chunkBytesRead - 1) do
317320
bytesRead.Add(chunk[i])
318321

319322
if bytesRead.Count <> header.ContentLength then
320-
failwith (sprintf "readNextJsonRpcMessage: could not read the full content of response (bytesRead=%d; header.ContentLength=%d)" bytesRead.Count header.ContentLength)
323+
failwith (
324+
sprintf
325+
"readNextJsonRpcMessage: could not read the full content of response (bytesRead=%d; header.ContentLength=%d)"
326+
bytesRead.Count
327+
header.ContentLength
328+
)
321329

322330
let msg = bytesRead |> _.ToArray() |> Encoding.UTF8.GetString |> JObject.Parse
323331

0 commit comments

Comments
 (0)