|
| 1 | +// Project tasks configuration. See https://zed.dev/docs/tasks for documentation. |
| 2 | +// |
| 3 | +// Example: |
| 4 | +[ |
| 5 | + { |
| 6 | + "label": "gradle: clean", |
| 7 | + "command": "./gradlew clean", |
| 8 | + //"args": [], |
| 9 | + // Env overrides for the command, will be appended to the terminal's environment from the settings. |
| 10 | + "env": {}, |
| 11 | + // Current working directory to spawn the command into, defaults to current project root. |
| 12 | + //"cwd": "/path/to/working/directory", |
| 13 | + // Whether to use a new terminal tab or reuse the existing one to spawn the process, defaults to `false`. |
| 14 | + "use_new_terminal": false, |
| 15 | + // Whether to allow multiple instances of the same task to be run, or rather wait for the existing ones to finish, defaults to `false`. |
| 16 | + "allow_concurrent_runs": false, |
| 17 | + // What to do with the terminal pane and tab, after the command was started: |
| 18 | + // * `always` — always show the task's pane, and focus the corresponding tab in it (default) |
| 19 | + // * `no_focus` — always show the task's pane, add the task's tab in it, but don't focus it |
| 20 | + // * `never` — do not alter focus, but still add/reuse the task's tab in its pane |
| 21 | + "reveal": "no_focus", |
| 22 | + // Where to place the task's terminal item after starting the task: |
| 23 | + // * `dock` — in the terminal dock, "regular" terminal items' place (default) |
| 24 | + // * `center` — in the central pane group, "main" editor area |
| 25 | + "reveal_target": "dock", |
| 26 | + // What to do with the terminal pane and tab, after the command had finished: |
| 27 | + // * `never` — Do nothing when the command finishes (default) |
| 28 | + // * `always` — always hide the terminal tab, hide the pane also if it was the last tab in it |
| 29 | + // * `on_success` — hide the terminal tab on task success only, otherwise behaves similar to `always` |
| 30 | + "hide": "on_success", |
| 31 | + // Which shell to use when running a task inside the terminal. |
| 32 | + // May take 3 values: |
| 33 | + // 1. (default) Use the system's default terminal configuration in /etc/passwd |
| 34 | + // "shell": "system" |
| 35 | + // 2. A program: |
| 36 | + // "shell": { |
| 37 | + // "program": "sh" |
| 38 | + // } |
| 39 | + // 3. A program with arguments: |
| 40 | + // "shell": { |
| 41 | + // "with_arguments": { |
| 42 | + // "program": "/bin/bash", |
| 43 | + // "args": ["--login"] |
| 44 | + // } |
| 45 | + // } |
| 46 | + "shell": "system", |
| 47 | + // Represents the tags for inline runnable indicators, or spawning multiple tasks at once. |
| 48 | + "tags": [] |
| 49 | + }, |
| 50 | + { |
| 51 | + "label": "gradle: shadowJar", |
| 52 | + "command": "./gradlew shadowJar", |
| 53 | + //"args": [], |
| 54 | + // Env overrides for the command, will be appended to the terminal's environment from the settings. |
| 55 | + "env": {}, |
| 56 | + // Current working directory to spawn the command into, defaults to current project root. |
| 57 | + //"cwd": "/path/to/working/directory", |
| 58 | + // Whether to use a new terminal tab or reuse the existing one to spawn the process, defaults to `false`. |
| 59 | + "use_new_terminal": false, |
| 60 | + // Whether to allow multiple instances of the same task to be run, or rather wait for the existing ones to finish, defaults to `false`. |
| 61 | + "allow_concurrent_runs": false, |
| 62 | + // What to do with the terminal pane and tab, after the command was started: |
| 63 | + // * `always` — always show the task's pane, and focus the corresponding tab in it (default) |
| 64 | + // * `no_focus` — always show the task's pane, add the task's tab in it, but don't focus it |
| 65 | + // * `never` — do not alter focus, but still add/reuse the task's tab in its pane |
| 66 | + "reveal": "no_focus", |
| 67 | + // Where to place the task's terminal item after starting the task: |
| 68 | + // * `dock` — in the terminal dock, "regular" terminal items' place (default) |
| 69 | + // * `center` — in the central pane group, "main" editor area |
| 70 | + "reveal_target": "dock", |
| 71 | + // What to do with the terminal pane and tab, after the command had finished: |
| 72 | + // * `never` — Do nothing when the command finishes (default) |
| 73 | + // * `always` — always hide the terminal tab, hide the pane also if it was the last tab in it |
| 74 | + // * `on_success` — hide the terminal tab on task success only, otherwise behaves similar to `always` |
| 75 | + "hide": "always", |
| 76 | + // Which shell to use when running a task inside the terminal. |
| 77 | + // May take 3 values: |
| 78 | + // 1. (default) Use the system's default terminal configuration in /etc/passwd |
| 79 | + // "shell": "system" |
| 80 | + // 2. A program: |
| 81 | + // "shell": { |
| 82 | + // "program": "sh" |
| 83 | + // } |
| 84 | + // 3. A program with arguments: |
| 85 | + // "shell": { |
| 86 | + // "with_arguments": { |
| 87 | + // "program": "/bin/bash", |
| 88 | + // "args": ["--login"] |
| 89 | + // } |
| 90 | + // } |
| 91 | + "shell": "system", |
| 92 | + // Represents the tags for inline runnable indicators, or spawning multiple tasks at once. |
| 93 | + "tags": [] |
| 94 | + } |
| 95 | +] |
0 commit comments