MCPcopy
hub / github.com/continuedev/continue / constructor

Method constructor

binary/test/binary.test.ts:31–40  ·  view source on GitHub ↗
(subprocess: ChildProcessWithoutNullStreams, ide: IDE)

Source from the content-addressed store, hash-verified

29 private unfinishedLine: string | undefined;
30
31 constructor(subprocess: ChildProcessWithoutNullStreams, ide: IDE) {
32 this.ide = ide;
33 this.subprocess = subprocess;
34 this.registerHandlers();
35
36 // Listen on stdout alongside CoreBinaryMessenger (EventEmitter allows multiple listeners)
37 // Use setEncoding so split multibyte UTF-8 characters are decoded correctly
38 subprocess.stdout.setEncoding("utf8");
39 subprocess.stdout.on("data", (data: string) => this.handleData(data));
40 }
41
42 private registerHandlers() {
43 const ide = this.ide;

Callers

nothing calls this directly

Calls 3

registerHandlersMethod · 0.95
handleDataMethod · 0.95
onMethod · 0.65

Tested by

no test coverage detected