vscode-action-buttons icon indicating copy to clipboard operation
vscode-action-buttons copied to clipboard

Feature request: show commands based on existing file

Open StefBakker opened this issue 2 years ago • 0 comments

Hi!

I would like to see a option to only show a command if a certain file exists. Example with option requires:

{
    "actionButtons": {
        "defaultColor": "#FFF",
        "commands": [
            {
                "name": "Clear Cache",
                "color": "yellow",
                "singleInstance": false,
                "command": "php bin/console cache:clear",
                "requires": "/bin/build.sh"
            },
            {
                "name": "Compile",
                "color": "yellow",
                "singleInstance": false,
                "command": "php bin/console theme:compile",
                "requires": "package.json"
            }
        ]
    }
}

This would be handy for switching multiple projects and not having to setup each project workspace.

StefBakker avatar Jan 09 '23 14:01 StefBakker