mirror of
https://github.com/zed-industries/zed.git
synced 2026-05-23 12:37:09 +00:00
### Summary
This PR starts work on adding basic hook support in the `TaskStore`. To
enable users to setup tasks that are ran when the agent panel creates a
new git worktree to start a thread in. It also adds a new task variable
called `ZED_MAIN_GIT_WORKTREE` that's the absolute path to the main repo
that the newly created linked worktree is based off of.
### Follow Ups
- Get this hook working with the git worktree picker as well
- Make a more general approach to the hook system in `TaskStore`
- Add `ZED_PORT_{1..10}` task variables
- Migrate the task context creation code from `task_ui` to the basic
context provider
Before you mark this PR as ready for review, make sure that you have:
- [ ] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [x] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
Release Notes:
- N/A *or* Added/Fixed/Improved ...
---------
Co-authored-by: Remco Smits <djsmits12@gmail.com>
Co-authored-by: Richard Feldman <oss@rtfeldman.com>
16 lines
350 B
JSON
16 lines
350 B
JSON
[
|
|
{
|
|
"label": "clippy",
|
|
"command": "./script/clippy",
|
|
"args": [],
|
|
"allow_concurrent_runs": true,
|
|
"use_new_terminal": false,
|
|
},
|
|
{
|
|
"label": "cargo run --profile release-fast",
|
|
"command": "cargo",
|
|
"args": ["run", "--profile", "release-fast"],
|
|
"allow_concurrent_runs": true,
|
|
"use_new_terminal": false,
|
|
},
|
|
]
|