aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/commands/line_buffer.ts
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-12-30 19:25:01 +0000
committerGitHub <[email protected]>2019-12-30 19:25:01 +0000
commit17dda0972a68dd88a766c223390317dc2cb3ea00 (patch)
tree67ef26be75ec5db5fd66761a67b65a09e42d363e /editors/code/src/commands/line_buffer.ts
parent237abb85c40672e8cdafa423db6187c107369a09 (diff)
parent9ead314005afd835ca64b5db9117e1c495814e17 (diff)
Merge #2693
2693: Encapsulate inlay hints activation r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'editors/code/src/commands/line_buffer.ts')
-rw-r--r--editors/code/src/commands/line_buffer.ts16
1 files changed, 0 insertions, 16 deletions
diff --git a/editors/code/src/commands/line_buffer.ts b/editors/code/src/commands/line_buffer.ts
deleted file mode 100644
index fb5b9f7f2..000000000
--- a/editors/code/src/commands/line_buffer.ts
+++ /dev/null
@@ -1,16 +0,0 @@
1export class LineBuffer {
2 private outBuffer: string = '';
3
4 public processOutput(chunk: string, cb: (line: string) => void) {
5 this.outBuffer += chunk;
6 let eolIndex = this.outBuffer.indexOf('\n');
7 while (eolIndex >= 0) {
8 // line includes the EOL
9 const line = this.outBuffer.slice(0, eolIndex + 1);
10 cb(line);
11 this.outBuffer = this.outBuffer.slice(eolIndex + 1);
12
13 eolIndex = this.outBuffer.indexOf('\n');
14 }
15 }
16}