3

Does erlang-ls support go-to-definition for variables?

Going to definition seems to work for functions and modules, but Coc.vim says "provider not found" when I gd on a variable name. Cmd-clicking a variable name doesn't do anything in VSCode, either.

What I tried:

  • erlang-ls docs and issues
  • Peeking through the source, I see that els_code_navigation matches on poi_kind. The relevant poi_kind would be variable, but "variable" doesn't appear in els_code_navigation.
Max Heiber
  • 14,346
  • 12
  • 59
  • 97
  • 2
    There is currently no support in `erlang_ls` for jumping to the definition of a variable. If this is something that you would like implemented please open a feature request in the [`erlang_ls`](https://github.com/erlang-ls/erlang_ls/issues) GitHub project. – juan.facorro Jun 03 '20 at 08:18
  • 1
    Thanks! If you post as an answer, I can mark correct. – Max Heiber Jun 03 '20 at 09:33

1 Answers1

4

There is currently no support in erlang_ls for jumping to the definition of a variable.

If this is something that you would like implemented please open a feature request in the erlang_ls GitHub project.

juan.facorro
  • 9,791
  • 2
  • 33
  • 41