From 268c8b1de41c105324b8c667460aeb5e23b0b6da Mon Sep 17 00:00:00 2001 From: Julien Cretin Date: Sat, 30 Dec 2023 21:13:38 +0100 Subject: [PATCH] Save index to cache as it would be returned (#524) Fixes #523 --- crates/taplo-common/src/schema/associations.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/taplo-common/src/schema/associations.rs b/crates/taplo-common/src/schema/associations.rs index 75d4110c5..628d3e10a 100644 --- a/crates/taplo-common/src/schema/associations.rs +++ b/crates/taplo-common/src/schema/associations.rs @@ -342,6 +342,8 @@ impl SchemaAssociations { } }; + index.transform_paths(); + if self.cache.is_cache_path_set() { if let Err(error) = self .cache @@ -352,8 +354,6 @@ impl SchemaAssociations { } } - index.transform_paths(); - Ok(index) }