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
Currently, "go to definition" on a type that was generated by a macro takes you to the macro invocation. This is extremely inconvenient for complicated macros that generate a lot of code. It would be far more convenient if it took you to the expansion of the macro instead.
rust-analyzer is already capable of showing the macro expansion with the "expand macro recursively" command, and it knows which specific macro invocation a definition comes from, so it should already have all the information needed to take you there directly.
The text was updated successfully, but these errors were encountered:
We could probably make it work with an lsp extension to allow the server to allocate "fake files" on the client side. Anything but trivial though for a variety of reasons.
Currently, "go to definition" on a type that was generated by a macro takes you to the macro invocation. This is extremely inconvenient for complicated macros that generate a lot of code. It would be far more convenient if it took you to the expansion of the macro instead.
rust-analyzer is already capable of showing the macro expansion with the "expand macro recursively" command, and it knows which specific macro invocation a definition comes from, so it should already have all the information needed to take you there directly.
The text was updated successfully, but these errors were encountered: