eclipse-cdt-cloud / cdt-gdb-adapter

CDT GDB Debug Adapter
Eclipse Public License 2.0
28 stars 40 forks source link

Rework waitForOutputEvent to not miss events #242

Closed jonahgraham closed 1 year ago

jonahgraham commented 1 year ago

The code used to do this.once('output') in a tight loop, but this meant that between processing one of the iterations and the next iteration of the loop a message may have been output. Instead use this.on('output') so all messages are processed.

Prerequisite for #239 which generates multiple events quickly