Please help. Just installed PIO with VSC it was working great for a while but after some update, I suppose, it started to break my sources when I try to format it with the “editor.action.formatDocument”. It works for a while formatting well, but then, I don’t understand after what happened, but it starts to mess my sources completely. After restart the situation repeats - it works again for a while, then starts to break the source while formatting.
I have installed home 2.3.3, core 4.0.3, c/c++ (ms) 0.25.1, pio ide 1.8.3, ini for vsc 0.0.4 and that’s all.
Tried to understand when it happens but did not succeed. It happens on different sources, usually after I upload my program but not always. Sometime after save - don’t understand exactly when
You have another formatting extension loaded - the ini file formatter. Although it shouldn’t be having any effect on a cpp file, you could try disabling it or removing it to see if the behaviour changes. In particular, I wonder what happens when platformio.ini updates when you have this extension loaded. The right answer would be ‘nothing’, but…