I'm using CLion 2021.1.3 and IntelliJ plugin PlatformIO for CLion 211.6693.66, and it would be great if Serial Monitor could disconnect and reconnect on "run" events, not just builds.
As it is now, Arduino Support will disconnect before the build, and reconnects after the build, but immediately after the build is when the com port is actually used by PlatformIO to upload, conflicting with Arduino Support's Serial Monitor.
I am unable to create a new Arduino Support project because I'm using an ESP32 with Arduino core libraries.
In this screenshot, you can see the run configuration used with the build step that will disconnect/reconnect the serial monitor.

