Closed shuying2244 closed 5 months ago
Fixed the way Kind equals record/record_def_field/define works in find_references/2, this uri_pois_to_locations(find_scoped_references_for_def(Uri, Poi)); is really too slow, now they can use find_references_for_id(Kind, Key); like a function.
record
record_def_field
define
find_references/2
uri_pois_to_locations(find_scoped_references_for_def(Uri, Poi));
find_references_for_id(Kind, Key);
This PR should make find_references faster, without sacrificing correct behavior. https://github.com/erlang-ls/erlang_ls/pull/1476
Fixed the way Kind equals
record
/record_def_field
/define
works infind_references/2
, thisuri_pois_to_locations(find_scoped_references_for_def(Uri, Poi));
is really too slow, now they can usefind_references_for_id(Kind, Key);
like a function.