actboy168 / vscode-tasks

MIT License
37 stars 14 forks source link

Tasks with same exact command string are treated as the same? #6

Closed sersanchus closed 5 years ago

sersanchus commented 5 years ago

I have noticed that tasks with same command string can cause extrange problems. In a tasks.json like the next one the two tasks are hidden whe only one has the hide attribute actived:

{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "task",
            "type": "shell",
            "command": "b1"
        },
        {
            "label": "hidden task",
            "type": "shell",
            "command": "b1",
            "options": {
                "statusbar": "hide"
            }
        }
    ]
}
actboy168 commented 5 years ago

microsoft/vscode#67095

Because of the lack of VSCode's task api support, I can only associate tasks.json and task objects myself.

I added label as part of the hash, but it may still not solve all the problems.

sersanchus commented 5 years ago

Thanks! For me the label solution works as expected.