diff --git a/apps/els_lsp/src/els_indexing.erl b/apps/els_lsp/src/els_indexing.erl index f835db8a4..5900105f1 100644 --- a/apps/els_lsp/src/els_indexing.erl +++ b/apps/els_lsp/src/els_indexing.erl @@ -158,6 +158,7 @@ index_references(Id, Uri, POIs, Version) -> -spec index_reference(atom(), uri(), els_poi:poi(), version()) -> ok. index_reference(M, Uri, #{kind := Kind, id := {F, A}} = POI, Version) when + Kind =/= macro, Kind =/= record_field -> index_reference(M, Uri, POI#{id => {M, F, A}}, Version);