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

Viewed 202

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.
1 Answers

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.

Related