Please click on “gear” icon near “Build” task in Menu > Tasks
There’s no menu named “tasks” in latest VSCode 1.40.2. If the instruction means the PlatformIO “project tasks” sidebar, there’s no gear icon there.
I managed to get the .vscode/tasks.json somehow anyway and pasted the code. No change when building.
Since I think this should be the default behavior, there should at least be a simple way to activate it. This was also addressed in VSCode; would like to clear terminal before build
This is the gear icon the documentation referred to… not the best, but it’s also a bit hard to describe since it’s a nested menu type option thingy.
It think the underlying issue is that custom tasks are broken again? Although I’m also probably doing something wrong as the VSCode tasks are like greek to me…
results in a toast saying that there are task errors, with this log output
Error: The PlatformIO task detection didn't contribute a task for the following configuration:
{
"type": "PlatformIO",
"task": "Build",
"problemMatcher": [
"$platformio"
],
"group": "build"
}
The task will be ignored.
I notice there’s a PlatformIO setting platformio-ide.autoCloseSerialMonitor:
Automatically close cmd_device_monitor before uploading/testing,
default value is true.
A similar setting to close the old build log when building again would be great.
But fixing the script for just launching a new terminal would be a good start.