contexted icon indicating copy to clipboard operation
contexted copied to clipboard

`delegate_all` LSP integration issues

Open Jdyn opened this issue 6 months ago • 0 comments

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.

Jdyn avatar Jul 08 '25 18:07 Jdyn