fix allocator mismatch in tagStoreCompletionItems (#717)

This commit is contained in:
Techatrix 2022-10-26 05:22:15 +02:00 committed by GitHub
parent 2a17590bf4
commit 88750d2529
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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{};