actboy168 / vscode-tasks

MIT License
37 stars 14 forks source link

Task not shown when 'path' option is present #16

Closed wilkerfoureaux closed 4 years ago

wilkerfoureaux commented 4 years ago

Hello vscode-tasks team!

First, I like a lot your vscode extension, plus that I can use emojis to display tasks in the botton bar. :)

But, I noticed that every task.json that has task with a "path" configured, this task turns hidden.

Take a look in my tasks.json:

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558 
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [{
            "type": "npm",
            "script": "deploy",
            "path": "functions",
            "problemMatcher": [],
            "group": "build",
            "options": {
                "statusbar": {
                    "label": "deploy",
                    "tooltip": "deploy",
                    "color": "#FFF",
                    "hide": false
                }
            }
        },
        {
            "type": "npm",
            "script": "start-dev",
            "group": "none",
            "path": "functions"
        },
        {
            "type": "npm",
            "script": "serve-dev",
            "path": "functions/",
            "problemMatcher": [],
            "group": "build"
        },
        {
            "type": "npm",
            "script": "serve",
            "path": "/functions",
            "problemMatcher": []
        },
        {
            "type": "npm",
            "script": "debug",
            "path": "/functions/",
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "problemMatcher": []
        }
    ]
}

None of the above tasks will be shown. Only if I remove the "path" option

wilkerfoureaux commented 4 years ago

\o/ thank you man!