According to the pio docs, this should work:
# pio platform update
Platform Espressif 8266
--------
Updating espressif8266 @ 2.2.2 [Up-to-date]
Updating tool-esptoolpy @ 1.20600.0 [Up-to-date]
Updating tool-mkspiffs @ 1.200.0 [Up-to-date]
Updating tool-esptool @ 1.413.0 [Up-to-date]
Updating framework-arduinoespressif8266 @ 2.20502.0 [Up-to-date]
Updating toolchain-xtensa @ 2.40802.190218 [Up-to-date]
That makes it look like the espressif8266
version is up to date at 2.2.2, and the framework-arduinoespressif8266
is up to date at 2.20502.0. I would expect that one of these would correspond with the a recent release of the esp8266/Arduino repo, which currently sits at 2.5.2.
Is there some in-between repackaging going on? How can I make sure that I'm using the latest version?