From 1da3ccd3dfff7e490e2f83e8bf2b1da869b38d00 Mon Sep 17 00:00:00 2001 From: usamoi Date: Fri, 11 Oct 2024 14:30:17 +0800 Subject: [PATCH] pass include_children = true to text_ranges in formatting --- crates/taplo/src/formatter/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/taplo/src/formatter/mod.rs b/crates/taplo/src/formatter/mod.rs index 0af198312..d5565c869 100644 --- a/crates/taplo/src/formatter/mod.rs +++ b/crates/taplo/src/formatter/mod.rs @@ -324,7 +324,7 @@ where let matched = dom.find_all_matches(keys, false)?; for (_, node) in matched { - s.extend(node.text_ranges(false).map(|r| (r, opts.clone()))); + s.extend(node.text_ranges(true).map(|r| (r, opts.clone()))); } }