Files
oak-gpui/crates
IViktorov cbc226597c Prefer project (worktree) tasks to language/global tasks in task::Spawn (#21706)
`Inventory::list_tasks()` in `project` crate now is ordered by task
types. Worktree tasks comes first, language tasks second and global
tasks last.
That leads to `spawn_task_with_name()` from `task_ui` crate will find
worktree task first, so it's possible to override global tasks at
project level.

* `Inventory::templates_from_settings()` splitted to
`Inventory::global_templates_from_settings()` and
`Inventory::worktree_templates_from_settings()`.

* In tests function `list_tasks()` renamed to
`list_tasks_sorted_by_last_used()`, because it call's
`Inventory::used_and_current_resolved_tasks()`. Also added
`list_tasks()` which calls `Inventory::list_tasks()`.

Closes #20987 

Release Notes:

- Fix task::Spawn to search for task name in project tasks first.
2024-12-14 09:30:48 +02:00
..
2024-12-12 15:20:21 -08:00
2024-12-13 14:23:02 -05:00
2024-12-13 14:23:02 -05:00
2024-12-13 14:23:02 -05:00
2024-12-13 14:23:02 -05:00
2024-12-13 14:23:02 -05:00
2024-12-13 14:23:02 -05:00
2024-12-13 14:23:02 -05:00
2024-12-13 14:23:02 -05:00
2024-12-13 14:23:02 -05:00
2024-12-13 14:23:02 -05:00
2024-12-13 14:23:02 -05:00
2024-12-13 14:23:02 -05:00
2024-12-13 14:23:02 -05:00
2024-12-13 14:23:02 -05:00
2024-11-18 22:56:34 +01:00
2024-12-13 14:23:02 -05:00
2024-12-03 23:22:26 -05:00
2024-12-13 14:23:02 -05:00
2024-12-13 14:23:02 -05:00
2024-12-13 14:23:02 -05:00
2024-12-13 14:23:02 -05:00
2024-12-13 14:23:02 -05:00
2024-12-13 14:23:02 -05:00
2024-12-13 14:23:02 -05:00
2024-12-13 14:23:02 -05:00