seunlanlege / vscode-action-buttons

VsCode extension for custom status bar buttons
90 stars 25 forks source link

Is it possible to use templates like ${file}? #19

Closed MasterGroosha closed 5 years ago

MasterGroosha commented 5 years ago

Currently my settings.json looks like:

{
    "actionButtons": {
        "commands": [
            {
                "name": "Go Run",
                "color": "Red",
                "singleInstance": true,
                "command": "go run ${file}"
            }
        ]
    },
}

Unfortunately, when I run this task, it tries to execute go run ${file}, not go run <currently open file>, though ${file} template works fine in VSCode's tasks. Is it possible to add support for such templates in this extension?

seunlanlege commented 5 years ago

Actually, yes it should be possible

MasterGroosha commented 5 years ago

The problem is that doesn't work :( Does it work for you?