We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29137c6 commit cd7388fCopy full SHA for cd7388f
extensions/tunnel-forwarding/src/split.ts
@@ -9,6 +9,8 @@ export const splitNewLines = () => new StreamSplitter('\n'.charCodeAt(0));
9
10
/**
11
* Copied and simplified from src\vs\base\node\nodeStreams.ts
12
+ *
13
+ * Exception: does not include the split character in the output.
14
*/
15
export class StreamSplitter extends Transform {
16
private buffer: Buffer | undefined;
@@ -31,7 +33,7 @@ export class StreamSplitter extends Transform {
31
33
break;
32
34
}
35
- this.push(this.buffer.subarray(offset, index + 1));
36
+ this.push(this.buffer.subarray(offset, index));
37
offset = index + 1;
38
39
0 commit comments