Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User Button Command #75

Open
captincook opened this issue Feb 16, 2022 · 1 comment
Open

User Button Command #75

captincook opened this issue Feb 16, 2022 · 1 comment

Comments

@captincook
Copy link

Hi,
how to use the button command? for example in my Rust project I tried:

"code-runner.customCommand": "cargo build"
or just cargo build

it works in terminal but in the extension I get Execution of 'userButton01' command has failed: command '

@GitMensch
Copy link
Contributor

GitMensch commented Aug 20, 2024

Have you checked workbench.action.tasks.runTask|cargo build? For this to work you need to define a build task with that name.
... thinking about - you may already have a default build task that you otherwise trigger by [CTRL]+[SHIFT]+[B], that can be executed with workbench.action.tasks.build.

Haven't checked but you may also be able to use commands.runInTerminal|cargo build (but you really would like a build task that you can add a problemMatcher to).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants