Compound Tasks

I was looking at the code to support compound tasks (https://github.com/theia-ide/theia/issues/5517).
It seems that the task-server should run the dependent tasks before running the task. The problem is that the task provider (to get the dependent tasks) is in the browser part of the extension.
Any thought on how to implement this?

[original thread by Ido Perez]

@elaihau Could you give a hint where one can start looking? I will try to research as well, but unfortunytely can do it only later.