racer-rust / racer

Rust Code Completion utility
MIT License
3.36k stars 278 forks source link

Fix #1052. #1107

Closed rbartlensky closed 4 years ago

rbartlensky commented 4 years ago

The code now looks up the required module correctly, depending on the file in which its declaration was found.

I didn't add a test for this. Could you point me to where I could setup a crate, and test the module search?

kngwyu commented 4 years ago

Thank you!

You can add a module on test_project and test it by with_test_project. See external.rs for how to use it.

rbartlensky commented 4 years ago

@kngwyu Thank you for your help! I wrote some tests; I hope they're OK! Let me know if you need anything else.

kngwyu commented 4 years ago

LGTM, thanks :100: