File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -495,6 +495,15 @@ export class ArduinoApp {
495
495
// return VscodeSettings.getInstance().useArduinoCli;
496
496
}
497
497
498
+ /**
499
+ * Checks if the line contains memory usage information
500
+ * @param line output line to check
501
+ * @returns {bool } true if line contains memory usage information
502
+ */
503
+ private isMemoryUsageInformation ( line : string ) {
504
+ return line . startsWith ( "Sketch uses " ) || line . startsWith ( "Global variables use " ) ;
505
+ }
506
+
498
507
/**
499
508
* Private implementation. Not to be called directly. The wrapper build()
500
509
* manages the build state.
@@ -732,6 +741,11 @@ export class ArduinoApp {
732
741
}
733
742
if ( verbose ) {
734
743
arduinoChannel . channel . append ( line ) ;
744
+ } else {
745
+ // Output sketch memory usage in non-verbose mode
746
+ if ( this . isMemoryUsageInformation ( line ) ) {
747
+ arduinoChannel . channel . append ( line ) ;
748
+ }
735
749
}
736
750
}
737
751
const stderrcb = ( line : string ) => {
You can’t perform that action at this time.
0 commit comments