actboy168 / vscode-tasks

MIT License
37 stars 14 forks source link

Extension stopped working #13

Closed Stanzilla closed 4 years ago

Stanzilla commented 4 years ago

Hey there, recently this extension stopped working, I think it was after your last update. I don't see any tasks in my statusbar anymore. My tasks.json looks like this:

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "presentation": {
        "echo": false,
        "reveal": "always",
        "focus": false,
        "panel": "new",
        "showReuseMessage": true
    },
    "tasks": [
        {
            "label": "npm: build",
            "type": "npm",
            "options": {
                "statusbar": {
                    "hide": false
                }
            },
            "script": "build",
            "dependsOn": ["npm: lint"],
            "group": {
                "kind": "build",
                "isDefault": true
            }
        },
        {
            "label": "npm: dev",
            "type": "npm",
            "script": "dev",
            "isBackground": true,
            "problemMatcher": ["$eslint-stylish"],
            "group": {
                "kind": "test",
                "isDefault": true
            }
        },
        {
            "label": "npm: compile-tools",
            "type": "npm",
            "options": {
                "statusbar": {
                    "hide": true
                }
            },
            "script": "compile-tools",
            "problemMatcher": ["$tsc"]
        },
        {
            "label": "npm: lint",
            "type": "npm",
            "script": "lint",
            "group": "test",
            "problemMatcher": ["$eslint-stylish"]
        },
        {
            "label": "npm: dist",
            "type": "npm",
            "script": "dist",
            "dependsOn": ["npm: lint", "npm: i18n", "npm: dev"],
            "problemMatcher": ["$eslint-stylish"]
        },
        {
            "label": "npm: i18n",
            "type": "npm",
            "script": "i18n",
            "group": "build",
            "problemMatcher": ["$tsc"]
        },
        {
            "label": "generate changelog",
            "type": "shell",
            "options": {
                "statusbar": {
                    "hide": false
                }
            },
            "windows": {
                "command": "wsl.exe -e ./generate_changelog.sh"
            },
            "command": "./generate_changelog.sh"
        }
    ]
}
actboy168 commented 4 years ago

I added support for npm type tasks, it may be incomplete. But at least it can already solve your tasks.json. If you find any problems, please let me know.

Stanzilla commented 4 years ago

Thank you! Will report back when I get the update, currently only seeing 0.3.2

Stanzilla commented 4 years ago

Got the update, seems to work again, thank you very much!

JordanLongstaff commented 4 years ago

I'm not seeing any of my status bar buttons either. I'm using extension version 0.3.8. 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": "tsc",
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "problemMatcher": {
                "base": "$tsc"
            }
        }
    ]
}