AnWeber / vscode-statusbar-command

MIT License
16 stars 4 forks source link

Support for custom tasks #6

Closed romancow closed 3 years ago

romancow commented 7 years ago

Love the extension, but I'd really love a way to define status bar commands for my custom tasks (e.g. ones other than workbench.action.tasks.test and workbench.action.tasks.build). I know Microsoft just added support for task key bindings that looks like this:

{
    "key": "ctrl+h",
    "command": "workbench.action.tasks.runTask",
    "args": "taskName"
}

Would it be possible to do something like this with the statusbar-commands extension?

AnWeber commented 7 years ago

Thanks for your support. At the moment the provided api of vscode does not allow this feature. I created a issue 22353 in the repository to request this feature.

fabiospampinato commented 7 years ago

@AnWeber It's actually already possible to pass arbitrary arguments to commands, it just requires some tinkering. My Commands extension supports it.

AnWeber commented 7 years ago

@fabiospampinato thanks. I will add your idea with this proxy command to my extension

AnWeber commented 3 years ago

finally:-) sorry,