From fbeed4997a92806c99affb40e4afb622af6f8312 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A0=91=E5=BD=B1?= <15079462244@163.com> Date: Tue, 7 Nov 2023 14:34:17 +0800 Subject: [PATCH] index_reference fix macro --- apps/els_lsp/src/els_indexing.erl | 1 + 1 file changed, 1 insertion(+) 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);