Skip to content

Commit cd7388f

Browse files
authored
forwarding: fix formatting issues in the log (microsoft#191814)
Fixes microsoft#191759
1 parent 29137c6 commit cd7388f

File tree

1 file changed

+3
-1
lines changed
  • extensions/tunnel-forwarding/src

1 file changed

+3
-1
lines changed

extensions/tunnel-forwarding/src/split.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ export const splitNewLines = () => new StreamSplitter('\n'.charCodeAt(0));
99

1010
/**
1111
* Copied and simplified from src\vs\base\node\nodeStreams.ts
12+
*
13+
* Exception: does not include the split character in the output.
1214
*/
1315
export class StreamSplitter extends Transform {
1416
private buffer: Buffer | undefined;
@@ -31,7 +33,7 @@ export class StreamSplitter extends Transform {
3133
break;
3234
}
3335

34-
this.push(this.buffer.subarray(offset, index + 1));
36+
this.push(this.buffer.subarray(offset, index));
3537
offset = index + 1;
3638
}
3739

0 commit comments

Comments
 (0)