(type: string, msg: string)
| 1632 | // TODO: We should add more features here. type could be a message for error, warning, info and we auto prepend |
| 1633 | // the tag for it. For consistency. Also make type an enum |
| 1634 | public handleMsg(type: string, msg: string) { |
| 1635 | if (this.suppressRadixMsgs && (type === 'console') && /radix/.test(msg)) { |
| 1636 | // Filter out unnecessary radix change messages |
| 1637 | return; |
| 1638 | } |
| 1639 | if (type === 'target') { type = 'stdout'; } |
| 1640 | if (type === 'log') { type = 'stderr'; } |
| 1641 | msg = this.wrapTimeStamp(msg); |
| 1642 | if (this.origShowDevDebugOutput === ADAPTER_DEBUG_MODE.VSCODE) { |
| 1643 | // Suppress output prevents so it does not flood the Debug Console with duplicate stuff. |
| 1644 | this.setupLogger(false, this.args); |
| 1645 | this.sendEvent(new OutputEvent(msg, type)); |
| 1646 | this.setupLogger(true, this.args); |
| 1647 | } else { |
| 1648 | this.sendEvent(new OutputEvent(msg, type)); |
| 1649 | } |
| 1650 | } |
| 1651 | |
| 1652 | protected handleRunning(info: MINode) { |
| 1653 | this.stopped = false; |
no test coverage detected