Tasks
Finding tasks
Here are a few ways to find tasks in your project:
Using the mise activity bar
Click on a task to navigate to the file where the task is defined.
Using the command palette
Using the command palette: cmd|ctrl+shift+p
and search for
Mise: Open task definition
.
Running a task
You have several ways to run a task with the extension:
Use the run task code lens action
Click on the run button to run the task. If some option/arguments are required, you will be prompted to enter them.
Use the mise activity bar
Click on the run action, or use right-click -> run task
Use the command palette
Using the command palette: cmd|ctrl+shift+p
, search for Mise: run task
.
Press enter.
VSCode task integration
This extension lets
VSCode tasks use mise
tasks. You can use mise
tasks in your launch.json
file. This allows you to
create your own shortcuts to run tasks
Supported parameters for mise tasks
task
: The mise task to executewatch
: Re-run the task when files changemiseEnv
: The mise env to use (optional, will use the default miseEnv if not provided)glob
: Glob pattern to watch for changes. Defaults to sources from the tasksrunArgs
: Arguments to pass to the task. Not used when watch is truewatchexecArgs
: Arguments to pass towatchexec
. (example:--clear
) | usewatchexec --help
for more information
Create tasks
Using the activity bar
You can create a file task or a toml task directly from the activity bar
Use the command palette
Using the command palette: cmd|ctrl+shift+p
, search for
Mise: Create File task
or Mise: Create Toml Task