-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
No completion on new file unless linked to the main.rs #7937
Comments
This happens because rust-analyzer does not know where the file belongs if it is not specified in an existing module, and the file isn't always used in the package. I don't think this is an issue, could be wrong though. |
I believe there is an existing issue about improving this case, but I can't find it. |
#6377 (comment) probably this one, but they only propose to warn when editing a file that is not in the hierarchy, and not to actually support them. |
Sorry could not find it. Thanks for linking that though! |
I have no completion on a new
.rs
file unless I add amod foo;
tomain.rs.
I am running multiple buffers in vim and I open a new file with:e foo.rs
and then save it.The text was updated successfully, but these errors were encountered: