rls icon indicating copy to clipboard operation
rls copied to clipboard

Not work for 'pub use' type method !

Open zhuxiujia opened this issue 4 years ago • 3 comments

just like the tokio's code see this tokio's time mod.

mod delay;
pub use delay::{delay_for, delay_until, Delay};

when need call the pub use method 'delay_for' we write in your Clion or VSCode:

 tokio::time::delay_ 

But ! the IDE do not tip me have func delay_for. Unless you change the module to pub and call it according to path example: So I have to check tokio documents every time when i write delay,it' s so bad.....

zhuxiujia avatar Feb 13 '20 17:02 zhuxiujia

I can replicate this in 1.41.0.

aschuhardt avatar May 12 '20 07:05 aschuhardt

I can replicate this in 1.41.0.

how? The problem is code generated using macros!

zhuxiujia avatar May 12 '20 07:05 zhuxiujia

Create a new project, add a reference to noise (https://github.com/Razaekel/noise-rs).

Enter use noise:: and notice that no completion is offered for noise::Perlin.

noise::Perlin is re-exported from the noise_fns module via pub use noise::noise_fns::* and RLS can't find it.

aschuhardt avatar May 13 '20 00:05 aschuhardt