From 88750d2529753018367ba0b12793143f6c2756a0 Mon Sep 17 00:00:00 2001 From: Techatrix <19954306+Techatrix@users.noreply.github.com> Date: Wed, 26 Oct 2022 05:22:15 +0200 Subject: [PATCH] fix allocator mismatch in tagStoreCompletionItems (#717) --- src/DocumentStore.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DocumentStore.zig b/src/DocumentStore.zig index 7d53b46..3df40f9 100644 --- a/src/DocumentStore.zig +++ b/src/DocumentStore.zig @@ -878,8 +878,8 @@ fn tagStoreCompletionItems(self: DocumentStore, arena: std.mem.Allocator, handle defer tracy_zone.end(); var dependencies = std.ArrayListUnmanaged(Uri){}; - try dependencies.append(self.allocator, handle.uri); - try self.collectDependencies(self.allocator, handle, &dependencies); + try dependencies.append(arena, handle.uri); + try self.collectDependencies(arena, handle, &dependencies); // TODO Better solution for deciding what tags to include var result_set = analysis.CompletionSet{};