(action: CTIAction)
| 478 | } |
| 479 | |
| 480 | public ctiStopResume?(action: CTIAction): void { |
| 481 | let commands = []; |
| 482 | if (action === CTIAction.init) { |
| 483 | this.tclCommand('tcl_notifications on'); |
| 484 | commands = this.args.ctiOpenOCDConfig?.enabled ? this.args.ctiOpenOCDConfig?.initCommands : []; |
| 485 | } else if (action === CTIAction.pause) { |
| 486 | commands = this.args.ctiOpenOCDConfig?.pauseCommands; |
| 487 | } else { |
| 488 | commands = this.args.ctiOpenOCDConfig?.resumeCommands; |
| 489 | } |
| 490 | for (const p of commands || []) { |
| 491 | this.tclCommand(p); |
| 492 | } |
| 493 | } |
| 494 | } |
| 495 | |
| 496 | interface TclCommandQueue { |
no test coverage detected