seunlanlege / vscode-action-buttons

VsCode extension for custom status bar buttons
88 stars 24 forks source link

tasks.json with action buttons #55

Closed samsmith94 closed 2 years ago

samsmith94 commented 3 years ago

Is there a way to call a task defined in tasks.json by clicking on an action-button?

I would like to achieve something like this: tasks.json:

"tasks": [
        {
            "label": "Make Application",
            "type": "shell",
            "command": "make",
            "options": {
                "cwd": "${workspaceFolder}"
            },
            "problemMatcher": [],
            "group": {
                "kind": "build",
                "isDefault": true
            }
        },
        {
            "label": "Append CRC",
            "type": "shell",
            "command": "start checksum.bat",
            "dependsOn": [
                "Make Application"
            ],
        },
]

settings.json:

"commands": [
            {
                //"cwd": "${workspaceFolder}",
                "name": "🛠️ Build",
                "color": "#FFF",
                "command": "Append CRC"
            }
]
ahehn commented 2 years ago

Maybe this is what you're looking for: https://marketplace.visualstudio.com/items?itemName=forbeslindesay.forbeslindesay-taskrunner