From 44b6c4dae4ace789c5a3ebf9fdbeb65db8f1cf30 Mon Sep 17 00:00:00 2001 From: Eric Puentes Date: Thu, 22 Dec 2022 22:25:56 -0500 Subject: [PATCH] fix: avoid finding references in the current file twice (#846) --- src/references.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/references.zig b/src/references.zig index 3da4e88..e04df2f 100644 --- a/src/references.zig +++ b/src/references.zig @@ -497,6 +497,8 @@ pub fn symbolReferences( for (dependencies.keys()) |uri| { const handle = store.getHandle(uri) orelse continue; + if (std.mem.eql(u8, handle.uri, curr_handle.uri)) continue; + try symbolReferencesInternal(&builder, 0, handle, true); } },