erlang-ls / erlang_ls

The Erlang Language Server
https://erlang-ls.github.io/
Apache License 2.0
620 stars 136 forks source link

Add goto definition for implemented behaviour callbacks #1463

Closed fridayy closed 6 months ago

fridayy commented 7 months ago

Description

Currently erlang_ls supports navigation from a behaviour callback to its implementation. It is not possible to navigate back from the implementation to the definition to the callback using goto definition. This PR adds this support.

Looking forward hearing some feedback on this. Have a nice day!

fridayy commented 6 months ago

Hi, although I haven't touched apps/els_core/src/els_dodger.erl shall I run the formatter and fix this?

edit: the file seems to be properly formatted:

❯ rebar3 fmt -c apps/els_core/src/els_dodger.erl
Checking formatting...
All matched files use erlfmt code style!
fridayy commented 6 months ago

Used erlfmt 1.2.0 locally but CI already runs with v.1.3.0. That's the issue. The file should be properly formatted now. TIL: Update local plugins regularly