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 {
80
80
private readonly board : Board ;
81
81
private readonly port : Port ;
82
82
private readonly monitorID : string ;
83
+ private readonly streamingTextDecoder = new TextDecoder ( 'utf8' ) ;
83
84
84
85
/**
85
86
* 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 {
319
320
const message =
320
321
typeof data === 'string'
321
322
? data
322
- : new TextDecoder ( 'utf8' ) . decode ( data ) ;
323
+ : this . streamingTextDecoder . decode ( data , { stream : true } ) ;
323
324
this . messages . push ( ...splitLines ( message ) ) ;
324
325
} ,
325
326
} ,
You can’t perform that action at this time.
0 commit comments