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

Syntax question for running a Task #1

Open
jeremydavidson opened this issue Jul 3, 2024 · 1 comment
Open

Syntax question for running a Task #1

jeremydavidson opened this issue Jul 3, 2024 · 1 comment

Comments

@jeremydavidson
Copy link

This is more of a discussion question, not a bug: What is the syntax and or setup on the run configuration for running a vscode Task? I've tried using the label property of the Task and I've tried varieties of the workbench.action.tasks.runTask internal method, but nothing works. The plugin gives error "command not found".

@daiyam
Copy link
Member

daiyam commented Jul 3, 2024

It calls vscode.commands.executeCommand(task.run);

You can find docs about the commands here:
https://code.visualstudio.com/api/references/commands
https://code.visualstudio.com/api/extension-guides/command

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