Skip to content

delegate_all LSP integration issues #49

@Jdyn

Description

@Jdyn

I am not entirely sure if these issues are solvable, but i'm using ElixirLS, and currently critical LSP information is lost about the functions when using delegate_all, impacting the DX. I am sure you're aware of them, but hoping there are potential solutions here. I do have enable_recompilation on and getting the docs and specs is great, but there are a few pieces missing.

When I hover over functions, or write functions, utilizing auto complete, functions that are from delegate_all are missing information.

  1. Hovering over functions or using auto-complete reveals the arguments like:
MyApp.Accounts.reset_password(
  arg_0,
  arg_1,
  arg_2
)

Losing the named arguments is quite impactful for quickly see what arguments the function takes.

  1. Go to definition does not work, instead of going to the function definition, it goes to the delegate_all line. For me this is the biggest issue currently, as it requires doing go-to definition twice, and then searching for the function within the delegated context file again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions