Skip to content

Commit 6ff4c17

Browse files
committed
fix(references): ignore references to elixir source code
I think these lines are recorded as references when macros in the elixir standard library are expanded.
1 parent 55ead79 commit 6ff4c17

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: lib/next_ls.ex

+3
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ defmodule NextLS do
194194
WHERE refs.identifier = ?
195195
AND refs.type = ?
196196
AND refs.module = ?
197+
AND NOT like('/home/runner/work/elixir/%', refs.file)
197198
""",
198199
[function, "function", module]
199200
)
@@ -206,6 +207,7 @@ defmodule NextLS do
206207
FROM "references" as refs
207208
WHERE refs.module = ?
208209
and refs.type = ?
210+
AND NOT like('/home/runner/work/elixir/%', refs.file)
209211
""",
210212
[module, "alias"]
211213
)
@@ -712,5 +714,6 @@ defmodule NextLS do
712714
end
713715
end
714716
end
717+
715718
defp clamp(line), do: max(line, 0)
716719
end

0 commit comments

Comments
 (0)