File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
arduino-ide-extension/src/node Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ export class MonitorService extends CoreClientAware implements Disposable {
8080 private readonly board : Board ;
8181 private readonly port : Port ;
8282 private readonly monitorID : string ;
83+ private readonly streamingTextDecoder = new TextDecoder ( 'utf8' ) ;
8384
8485 /**
8586 * The lightweight representation of the port configuration currently in use for the running monitor.
@@ -319,7 +320,7 @@ export class MonitorService extends CoreClientAware implements Disposable {
319320 const message =
320321 typeof data === 'string'
321322 ? data
322- : new TextDecoder ( 'utf8' ) . decode ( data ) ;
323+ : this . streamingTextDecoder . decode ( data , { stream : true } ) ;
323324 this . messages . push ( ...splitLines ( message ) ) ;
324325 } ,
325326 } ,
You can’t perform that action at this time.
0 commit comments