This repository was archived by the owner on Oct 1, 2024. It is now read-only.
File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -254,10 +254,18 @@ export class ArduinoApp {
254
254
}
255
255
}
256
256
257
+ // TODO: Get rid of spawn's channel parameter and just support
258
+ // stdout and stderr callbacks
259
+ const stdoutCallback = ( line : string ) => {
260
+ arduinoChannel . channel . append ( line ) ;
261
+ }
262
+
257
263
await util . spawn (
258
264
this . _settings . commandPath ,
259
265
arduinoChannel . channel ,
260
266
args ,
267
+ undefined ,
268
+ stdoutCallback ,
261
269
) . then ( async ( ) => {
262
270
await cleanup ( ) ;
263
271
arduinoChannel . end ( `${ buildMode } sketch '${ dc . sketch } '${ os . EOL } ` ) ;
@@ -345,12 +353,18 @@ export class ArduinoApp {
345
353
await Promise . resolve ( ) ;
346
354
}
347
355
356
+ // TODO: Get rid of spawn's channel parameter and just support
357
+ // stdout and stderr callbacks
358
+ const stdoutCallback = ( line : string ) => {
359
+ arduinoChannel . channel . append ( line ) ;
360
+ }
361
+
348
362
await util . spawn (
349
363
this . _settings . commandPath ,
350
364
arduinoChannel . channel ,
351
365
args ,
352
366
undefined ,
353
- compilerParserContext . callback ,
367
+ stdoutCallback ,
354
368
) . then ( async ( ) => {
355
369
await cleanup ( ) ;
356
370
arduinoChannel . end ( `${ buildMode } sketch '${ dc . sketch } '${ os . EOL } ` ) ;
You can’t perform that action at this time.
0 commit comments