You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From what I can tell it is possible to find references from a call, but you can't find references from the definition of a function.
So this works:
test "working example" do
buffer = """
defmodule A do
def a_fun do
B.Callee.fun()
^
end
end
"""
references = ElixirSense.references(buffer, 3, 14)
assert references != []
end
But this does not:
test "elixir-ls references test" do
buffer = """
defmodule B.Callee do
def fun() do
^
:ok
end
end
"""
references = ElixirSense.references(buffer, 2, 7)
assert references != []
end
I'm trying to use ElixirSense.references/3 (elixir-lsp/elixir-ls#39) but need to be able to find the references for a function from it's definition (which I think makes sense from a usability standpoint as well).
The text was updated successfully, but these errors were encountered:
axelson
changed the title
Support finding references for a function from it's definition
Support finding references for a function named "fun"
Aug 24, 2019
From what I can tell it is possible to find references from a call, but you can't find references from the definition of a function.
So this works:
But this does not:
I'm trying to use
ElixirSense.references/3
(elixir-lsp/elixir-ls#39) but need to be able to find the references for a function from it's definition (which I think makes sense from a usability standpoint as well).The text was updated successfully, but these errors were encountered: