Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion arduino-ide-extension/src/node/monitor-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export class MonitorService extends CoreClientAware implements Disposable {
private readonly board: Board;
private readonly port: Port;
private readonly monitorID: string;
private readonly streamingTextDecoder = new TextDecoder('utf8');

/**
* The lightweight representation of the port configuration currently in use for the running monitor.
Expand Down Expand Up @@ -319,7 +320,7 @@ export class MonitorService extends CoreClientAware implements Disposable {
const message =
typeof data === 'string'
? data
: new TextDecoder('utf8').decode(data);
: this.streamingTextDecoder.decode(data, {stream:true});
this.messages.push(...splitLines(message));
},
},
Expand Down