(s: string)
| 108 | } else { |
| 109 | this._adapterProcess = cp.spawn(this._runtime!, [this._executable!, ...(this._args || [])], this._spawnOptions); |
| 110 | const sanitize = (s: string) => s.toString().replace(/\r?\n$/mg, ''); |
| 111 | this._adapterProcess.stderr!.on('data', (data: string) => { |
| 112 | if (this._enableStderr) { |
| 113 | data = sanitize(data).trim(); |