zed/crates/project/src
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
..
lsp_command
buffer_store.rs Start to split out initialization and registration (#21787) 2024-12-11 14:05:10 -07:00
color_extractor.rs
connection_manager.rs
debounced_delay.rs
direnv.rs
environment.rs
image_store.rs image viewer: Allow dropping images on pane (#21803) 2024-12-10 15:01:14 +01:00
lsp_command.rs LspStore: move language_server_ids to local state too (#21786) 2024-12-10 00:15:06 -07:00
lsp_ext_command.rs
lsp_store.rs Start to split out initialization and registration (#21787) 2024-12-11 14:05:10 -07:00
prettier_store.rs Add .prettierignore support (#21297) 2024-12-12 15:45:44 -08:00
project.rs Start to split out initialization and registration (#21787) 2024-12-11 14:05:10 -07:00
project_settings.rs
project_tests.rs Start to split out initialization and registration (#21787) 2024-12-11 14:05:10 -07:00
search.rs
search_history.rs
task_inventory.rs Prefer project (worktree) tasks to language/global tasks in task::Spawn (#21706) 2024-12-14 09:30:48 +02:00
task_store.rs Add the ability for tasks to target the center pane (#22004) 2024-12-13 19:39:46 -08:00
terminals.rs Add the ability for tasks to target the center pane (#22004) 2024-12-13 19:39:46 -08:00
toolchain_store.rs toolchains: Run listing tasks on background thread (#21414) 2024-12-02 21:03:31 +01:00
worktree_store.rs lsp: Add support for didRename/willRename LSP messages (#21651) 2024-12-07 13:08:18 +01:00
yarn.rs