aboutsummaryrefslogtreecommitdiff
path: root/helix-core/tests
diff options
context:
space:
mode:
authorPascal Kuthe2023-05-12 14:49:39 +0000
committerBlaž Hrastnik2023-05-18 06:23:37 +0000
commitb0705337bec836604bdb97689d0a44940c6bddae (patch)
tree4f7e3607cb891f290aae853f938d1db17a1e3c95 /helix-core/tests
parent2f2306475cac7ee9385b816424137421c13bf4c2 (diff)
automatically disable TS when parsing takes longer than 500ms
Diffstat (limited to 'helix-core/tests')
-rw-r--r--helix-core/tests/indent.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-core/tests/indent.rs b/helix-core/tests/indent.rs
index f558f86f..409706bb 100644
--- a/helix-core/tests/indent.rs
+++ b/helix-core/tests/indent.rs
@@ -72,7 +72,7 @@ fn test_treesitter_indent(file_name: &str, lang_scope: &str) {
let language_config = loader.language_config_for_scope(lang_scope).unwrap();
let highlight_config = language_config.highlight_config(&[]).unwrap();
- let syntax = Syntax::new(&doc, highlight_config, std::sync::Arc::new(loader));
+ let syntax = Syntax::new(&doc, highlight_config, std::sync::Arc::new(loader)).unwrap();
let indent_query = language_config.indent_query().unwrap();
let text = doc.slice(..);