editor: Move runnables querying to background thread (#11487)

Originally reported by @mrnugget and @bennetbo 
Also, instead of requerying them every frame, we do so whenever buffer
changes.

As a bonus, I modified tree-sitter query for Rust tests.

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2024-05-07 15:31:07 +02:00 committed by GitHub
parent 4eca7875ae
commit 0c11d841e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 83 additions and 46 deletions

View file

@ -1,6 +1,6 @@
(
(attribute_item (attribute) @_attribute
(#match? @_attribute ".*test.*"))
(#match? @_attribute ".*test"))
.
(function_item
name: (_) @run)