Upload OTA is missing

I’m aware I can configure different environment for serial and OTA uploads. But I’m wondering why there are are two buttons for Upload filesystem image w/ and w/o OTA, but not for sketch:

immagine

That would give the impression that you can just click the “Upload via OTA” and have it work without configuration (i.e., telling PlatformIO the target address) – I think it may confuse people.

Nope. Because with two different buttons the standard one would use the serial protocol and the serial port, while the second the espota protocol and the ip address as port (two different sets of parameters, instead of changing them every time).

I mean, it’s unbelievable I have to change the configuration (that leads to a full rebuild) just to change the upload port or the upload protocol (since they are not related with the build configuration).

In PlatformIO terms, until now, each environment can specifiy their own upload_protocol = ... and the upload button will use that for the firmware upload.

Nonetheless, I invite you to file an issue at Issues · platformio/platformio-vscode-ide · GitHub so that this can be discussed with the PlatformIO developers.