Stream: t-compiler/rust-analyzer

Topic: find references on `fn`

Brennan Vincent (Jun 16 2020 at 19:36, on Zulip):

how hard would it be to make it so finding references on the fn keyword (as opposed to the name of the function) would find references to the function being defined?

matklad (Jun 16 2020 at 21:13, on Zulip):

Should be pretty trivial, but I wonder why this is desirable? Navigations
such as goto definition or document symbols put caret on function
identifier anyway, having the cursor on fn seems pretty rare?

Brennan Vincent (Jun 20 2020 at 17:47, on Zulip):

R-A isn't the only way to navigate; sometimes I also use search :). This happens to me when searching my editor for fn foo. In vim/spacemacs and similar, this will cause the cursor to be on the fn token.

Last update: Jul 27 2021 at 22:15UTC