Files
oak-gpui/crates/languages/src/rust/runnables.scm
T
Piotr Osiewicz 9dfe4a30bb languages: Do not expose unnecessary captures from tasks (#19625)
This tackles an issue with us exposing unnecessary env variables in
environment which are not actually needed for tasks themselves (and may
have little utility), yet come into the way of ssh remoting.

/cc @ConradIrwin 

Release Notes:

- N/A
2024-10-23 18:54:08 +02:00

40 lines
692 B
Scheme

(
(mod_item
name: (_) @run
(#eq? @run "tests")
)
(#set! tag rust-mod-test)
)
(
(
(attribute_item (attribute
[((identifier) @_attribute)
(scoped_identifier (identifier) @_attribute)
])
(#match? @_attribute "test")
) @_start
.
(attribute_item) *
.
(function_item
name: (_) @run
body: _
) @_end
)
(#set! tag rust-test)
)
; Rust main function
(
(
(function_item
name: (_) @run
body: _
) @_rust_main_function_end
(#eq? @run "main")
)
(#set! tag rust-main)
)