zed/crates/task
Piotr Osiewicz 58796a8480
tasks: Expose captured variables to ContextProvider (#12134)
This PR changes the interface of ContextProvider, allowing it to inspect
*all* variables set so far during the process of building
`TaskVariables`. This makes it possible to capture e.g. an identifier in
tree-sitter query, process it and then export it as a task variable.

Notably, the list of variables includes captures prefixed with leading
underscore; they are removed after all calls to `build_context`, but it
makes it possible to capture something and then conditionally preserve
it (and perhaps modify it).

Release Notes:

- N/A
2024-05-22 19:45:43 +02:00
..
src tasks: Expose captured variables to ContextProvider (#12134) 2024-05-22 19:45:43 +02:00
test_data VS Code -> Zed tasks converter (#9538) 2024-03-20 16:37:26 +01:00
Cargo.toml Add support for detecting tests in source files, and implement it for Rust (#11195) 2024-05-05 16:32:48 +02:00
LICENSE-GPL Rename runnables into tasks (#8119) 2024-02-21 14:56:43 +02:00