actboy168 / vscode-tasks

MIT License
37 stars 14 forks source link

Compound tasks not showing up #20

Closed poseva closed 4 years ago

poseva commented 4 years ago

Hello,

First thing first, great extension, real time saver 😄

I noticed that compounded tasks do not show up as buttons in status bar.

Running the compounded task directly works fine, so nothing wrong with syntax or anything.

This use case is covered by the extension ? or I should figure a workaround ?

Thank you advance for your time and answer!

BR, Sebastian

poseva commented 4 years ago

OK, I found the issue. It seems that even tough VS code allows compounded tasks without command, Tasks extensions does not work without it. So just add an empty command:

 {
            "label": "Generate BSW + Generate OS + Build",
            "type": "shell",
            "command": [
                "echo Finished running Generate BSW + Generate OS + Build"
            ],
            "dependsOrder": "sequence",
            "dependsOn": ["Generate BSW", "Generate OS", "Build"],
            "problemMatcher": [],
            "options": {
                "statusbar": {
                  "tooltip": "Generate BSW + Generate OS + Build",
                  // set icon if Tasks extension by actboy168 is used
                  "label" : "$(zap) Generate & Build",
                 }
            }
}

Maybe add this in readme ?

Thank you!

BR, Sebastian