Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go to definition does not work with backticks #1061

Open
xxdavid opened this issue Feb 1, 2024 · 0 comments
Open

Go to definition does not work with backticks #1061

xxdavid opened this issue Feb 1, 2024 · 0 comments

Comments

@xxdavid
Copy link

xxdavid commented Feb 1, 2024

Environment

  • Elixir & Erlang versions (elixir --version):
Erlang/OTP 25 [erts-13.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit:ns]

Elixir 1.14.3 (compiled with Erlang/OTP 25)

and

Erlang/OTP 26 [erts-14.2.1] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit:ns]

Elixir 1.15.7 (compiled with Erlang/OTP 26)

(tested on both)

  • Elixir Language Server version: 0.19.0
  • Operating system: macOS 11.7
  • Editor or IDE name (e.g. Emacs/VSCode): VS Code
  • Editor Plugin/LSP Client name and version: ElixirLS 0.19.0

Current behavior

Suppose we have a file like this

1 defmodule SomeModule do
2   @doc """
3   Some function.
4 
5   See MyModule.my_fun/1
6   See `MyModule.my_fun/1`
7   """
8   def some_fun, do: 42
9 end

If I use go to definition on my_fun on line 5, it jumps to the definition of MyModule.my_fun/1. If I do the same with my_fun on line 6, it does not do anything. The same happens on MyModule and it's also the same with hover. If I remove the first backtick on line 6, it works. If I remove (only) the second backtick on line 6, it does not work.

Expected behavior

I would expect that go to definition and hover would work on line 6 (and also on line 5).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant