ZIm/crates/languages/src
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
..
bash Recognize PKGBUILD as bash script (#10946) 2024-04-25 09:44:52 -04:00
c Clean up whitespace (#10755) 2024-04-23 13:31:21 -04:00
cpp Clean up whitespace (#10755) 2024-04-23 13:31:21 -04:00
css Autodetect parser name with prettier by default (#11558) 2024-05-15 22:51:46 +03:00
go go: Highlight constant identifiers (#12111) 2024-05-22 08:37:20 +02:00
gomod File context for assistant panel (#9712) 2024-03-29 13:55:01 -07:00
gowork File context for assistant panel (#9712) 2024-03-29 13:55:01 -07:00
javascript html: release 0.1.0 (#12083) 2024-05-21 14:04:02 +02:00
jsdoc Clean up whitespace (#10755) 2024-04-23 13:31:21 -04:00
json Autodetect parser name with prettier by default (#11558) 2024-05-15 22:51:46 +03:00
markdown Autodetect parser name with prettier by default (#11558) 2024-05-15 22:51:46 +03:00
proto chore: Extract languages from zed crate (#8270) 2024-02-23 15:56:08 +01:00
python python: Add highlighting to variables (#11851) 2024-05-16 11:43:48 -04:00
regex Add regex syntax highlighting for JS and TS (#7851) 2024-03-18 09:49:01 -06:00
rust rust: reduce false positives in runnables query (#11845) 2024-05-15 11:42:05 +02:00
tsx html: release 0.1.0 (#12083) 2024-05-21 14:04:02 +02:00
typescript Autodetect parser name with prettier by default (#11558) 2024-05-15 22:51:46 +03:00
yaml Autodetect parser name with prettier by default (#11558) 2024-05-15 22:51:46 +03:00
bash.rs tasks: Expose captured variables to ContextProvider (#12134) 2024-05-22 19:45:43 +02:00
c.rs Extract http from util (#11680) 2024-05-10 15:50:20 -06:00
css.rs Improve the ergonomics of creating local buffers (#10347) 2024-04-10 08:32:51 -06:00
elm.rs Add language_server_workspace_configuration to extension API (#10212) 2024-04-05 17:04:07 -04:00
go.rs tasks: Expose captured variables to ContextProvider (#12134) 2024-05-22 19:45:43 +02:00
json.rs Rework task modal (#10341) 2024-04-11 02:02:04 +03:00
lib.rs gomod and gowork add gopls server (#12109) 2024-05-22 08:16:55 +02:00
python.rs tasks: Expose captured variables to ContextProvider (#12134) 2024-05-22 19:45:43 +02:00
rust.rs tasks: Expose captured variables to ContextProvider (#12134) 2024-05-22 19:45:43 +02:00
tailwind.rs tailwind: Allow configuring custom tailwind server build (#11921) 2024-05-16 18:00:30 +02:00
typescript.rs eslint: Change default configuration to fix errors (#11896) 2024-05-16 10:41:57 +02:00
yaml.rs Add language_server_workspace_configuration to extension API (#10212) 2024-04-05 17:04:07 -04:00