Upgrade Tree-sitter and limit query cursors' concurrently-buffered matches

This commit is contained in:
Max Brunsfeld
2022-07-08 14:09:34 -07:00
parent a82e56918e
commit 1f16c68e6b
4 changed files with 10 additions and 9 deletions
+6 -6
View File
@@ -2393,12 +2393,12 @@ impl<'a> Iterator for BufferChunks<'a> {
impl QueryCursorHandle {
pub(crate) fn new() -> Self {
QueryCursorHandle(Some(
QUERY_CURSORS
.lock()
.pop()
.unwrap_or_else(|| QueryCursor::new()),
))
let mut cursor = QUERY_CURSORS
.lock()
.pop()
.unwrap_or_else(|| QueryCursor::new());
cursor.set_match_limit(64);
QueryCursorHandle(Some(cursor))
}
}
+1 -1
View File
@@ -88,7 +88,7 @@ tempdir = { version = "0.3.7" }
thiserror = "1.0.29"
tiny_http = "0.8"
toml = "0.5"
tree-sitter = "0.20.8"
tree-sitter = "0.20"
tree-sitter-c = "0.20.1"
tree-sitter-cpp = "0.20.0"
tree-sitter-go = { git = "https://github.com/tree-sitter/tree-sitter-go", rev = "aeb2f33b366fd78d5789ff104956ce23508b85db" }