Revert "Switch to the legacy API for calling a task"
Revert "Switch to the legacy API for calling a task"

This reverts commit ee9c5ab9378eed2df9c3fe2b10eda733db5a2d68.

platformio/platformio-vscode-ide,platformio/platformio-vscode-ide