Added `dependsOn` property to tasks.json

Added dependsOn property to tasks.json, the task will be executed after its dependent task has been executed, but on Windows the task output will override its dependent task output, I can’t see the error of the task output it depends on.Theia 1.23.0

@connor thank you for the discussion, unfortunately I am not on windows to confirm but is it reproducible with the simple example:

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "echo",
            "type": "shell",
            "command": "echo Hello",
            "problemMatcher": []
        },
        {
            "label": "goodbye",
            "type": "shell",
            "command": "echo Goodbye",
            "problemMatcher": [],
            "dependsOn": [
                "echo"
            ]
        }
    ]
}

I’m wondering if perhaps you may have "presentation": {"clear": false } set in your tasks.json for the task which will clear any previous output.

@connor I confirmed with a colleague that the issue exists on windows, thank you for reporting it! I opened a follow-up issue on the repo to track a fix: https://github.com/eclipse-theia/theia/issues/10964.