| 54 | * this for VS Code launches as we have no way to forcefully close those sssions. |
| 55 | */ |
| 56 | export 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. |
nothing calls this directly
no outgoing calls
no test coverage detected