Skip to content
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

'importing' a mod inside a funcion don't take effect for intelisense autocompletion or type highlights #5434

Closed
E-ricus opened this issue Jul 18, 2020 · 1 comment

Comments

@E-ricus
Copy link

E-ricus commented Jul 18, 2020

Referring to a module with use like use self::models::Post; inside a function don't works for the code analizys (it does compile and run)

Screenshot_20200718_171017
Screenshot_20200718_170049

It does work if the use sentence is at mod level outside the function.

Screenshot_20200718_170943
Screenshot_20200718_170028

Attached some screenshots, happy to provide more info if needed.
Thanks!

@bjorn3
Copy link
Member

bjorn3 commented Jul 19, 2020

Duplicate of #1165

@bjorn3 bjorn3 marked this as a duplicate of #1165 Jul 19, 2020
@bjorn3 bjorn3 closed this as completed Jul 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants