fix: avoid finding references in the current file twice (#846)

This commit is contained in:
Eric Puentes 2022-12-22 22:25:56 -05:00 committed by GitHub
parent c355a54dd1
commit 44b6c4dae4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
},