Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit f999cf5

Browse files
elektronikworkshophlovdal
authored andcommitted
Build/analysis logging improvements for Windows
1 parent 83fd0e0 commit f999cf5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/arduino/arduino.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import { IArduinoSettings } from "./arduinoSettings";
1616
import { BoardManager } from "./boardManager";
1717
import { ExampleManager } from "./exampleManager";
1818
import { AnalysisManager,
19-
ICoCoPaContext,
2019
isCompilerParserEnabled,
2120
makeCompilerParserContext } from "./intellisense";
2221
import { LibraryManager } from "./libraryManager";
@@ -558,7 +557,12 @@ Please make sure the folder is not occupied by other procedures .`);
558557
}
559558
}
560559
const stderrcb = (line: string) => {
561-
arduinoChannel.channel.append(line);
560+
if (os.platform() == "win32") {
561+
line = line.trim();
562+
if (line.length && !line.startsWith("DEBUG ") && !line.startsWith("TRACE ") && !line.startsWith("INFO ")) {
563+
arduinoChannel.channel.append(`${line}${os.EOL}`);
564+
}
565+
}
562566
}
563567

564568
return await util.spawn(

0 commit comments

Comments
 (0)