MCPcopy Create free account
hub / github.com/Snapchat/Valdi / StubProgram

Class StubProgram

valdi/vscode_debugger/src/targets/node/program.ts:56–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 * this for VS Code launches as we have no way to forcefully close those sssions.
55 */
56export class StubProgram implements IProgram {
57 public readonly stopped: Promise<IStopMetadata>;
58 protected stopDefer!: (data: IStopMetadata) => void;
59
60 constructor() {
61 this.stopped = new Promise(resolve => (this.stopDefer = resolve));
62 }
63
64 public gotTelemetery() {
65 // no-op
66 }
67
68 public stop() {
69 this.stopDefer({ code: 0, killed: true });
70 return this.stopped;
71 }
72}
73
74/**
75 * Wrapper for the watchdog program.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected