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

Does not complete for inner type on lock guards. #455

Open
johalun opened this issue Dec 27, 2015 · 1 comment
Open

Does not complete for inner type on lock guards. #455

johalun opened this issue Dec 27, 2015 · 1 comment

Comments

@johalun
Copy link

johalun commented Dec 27, 2015

Hi! Thank you for your effort on this wonderful project. It's a lifesaver for me :)

I would love it if it was possible to add completion for T when you have things like RwLockReadGuard, RwLockWriteGuard, MutexGuard, etc.

Thank you.

@Jonesey13
Copy link
Contributor

I did this for Box<T> earlier (see Issue #438) using the rather naive approach of seeing if the type begins with the string "Box" and then searching for completions on the inner type. This method could easily be extended to the types you mentioned but involves a bit of repetition and is not terribly robust.

What would be ideal is to find implementations of Deref<Target=T> for a given type and then look for methods on the type T.

Update: This issue should hopefully be fixed now :)

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