-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Goto file for include!(...) #5871
Comments
I just ran into this messing with |
Now when I tried Ctrl+Click the items defined in the |
I've opened #6992 for go to definition on items defined in an included file; let's keep this about going to the file by clicking on the path itself. |
I’ll give this a go if no-one else is already working on it. |
It seems this feature doesn't work any more. mod prometheus {
include!(concat!(env!("OUT_DIR"), "/prometheus.rs"));
}
pub use prometheus::*; Snippet above include prost-build generated output file, when invoke
|
I don't think this feature worked with expressions other than the string literal like this |
This is a feature request. I think it should not be hard to get a goto-file (maybe just via goto-definition lsp functionality) for
include!(...) expressions and items
.This might work by invoking the goto-definition request on the path string literal expression in
include!(<here>)
. This will greatly simplify navigating to code which resides inOUT_DIR
.As a second step it might be super-awesome if goto-definition requests for symbols defined in
include!()
ed files navigated the users exactly to the included files source instead ofinclude!(...) expression
The text was updated successfully, but these errors were encountered: