You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use Go to Definition on a function will jump to the start of def keyword of the function, instead of the function identifier.
For example when jumping to the definition to foo, it will land the cursor at the start of def like this:
def foo() do
^
This is same for modules, macros and etc.
The problem
While the current behaviour is okay to use, it seems to me that it would be more appropriate to jump to the actual identifier of the definition instead of the leading keyword, like most language server implementations did.
For example this is how JavaScript language server handles Go to Definition:
And Python too:
Expected behaviour
Instead of landing on def, it should land on the start of foo like this:
def foo() do
^
The text was updated successfully, but these errors were encountered:
Current behaviour
Use
Go to Definition
on a function will jump to the start ofdef
keyword of the function, instead of the function identifier.For example when jumping to the definition to
foo
, it will land the cursor at the start ofdef
like this:This is same for modules, macros and etc.
The problem
While the current behaviour is okay to use, it seems to me that it would be more appropriate to jump to the actual identifier of the definition instead of the leading keyword, like most language server implementations did.
For example this is how JavaScript language server handles
Go to Definition
:And Python too:
Expected behaviour
Instead of landing on
def
, it should land on the start offoo
like this:The text was updated successfully, but these errors were encountered: