We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8c01e3 commit 7c86f1fCopy full SHA for 7c86f1f
arduino-ide-extension/src/node/monitor-service.ts
@@ -80,6 +80,7 @@ export class MonitorService extends CoreClientAware implements Disposable {
80
private readonly board: Board;
81
private readonly port: Port;
82
private readonly monitorID: string;
83
+ private readonly streamingTextDecoder = new TextDecoder('utf8');
84
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 =
321
typeof data === 'string'
322
? data
- : new TextDecoder('utf8').decode(data);
323
+ : this.streamingTextDecoder.decode(data, {stream:true});
324
this.messages.push(...splitLines(message));
325
},
326
0 commit comments