Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.
like image 313
Max Heiber Avatar asked Nov 21 '25 05:11

Max Heiber


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.

like image 116
juan.facorro Avatar answered Nov 23 '25 23:11

juan.facorro



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!