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
bugfix : skip doc(hidden) default members #15050
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we'll ever want to not ignore doc(hidden) assoc items here so we can drop the ignore_hidden: bool,
param.
I initially thought the same thing, but on a second thought, you may want them when they're in local crates as opposed to external crates. |
From the thumbs up I gather that we do want to have some sort of guard and this should in addition check that the original trait is a local one if we want to skip ignoring items with hir::AssocItem::containing_trait(assoc_item, db)?
.module(db)
.krate()
.origin(db)
.is_local(); |
That seems fine for checking if the crate is local |
This PR is almost finished, the last problem I have is with declaring a crate as workspace crate using |
I think what you want is |
@alibektas did you take a look at the |
Yes I did. But I couldn't really do what I wanted to, which I though could have been fixed with this PR . It was however not merged the last time I checked it. So now that it's merged I will finish this one either today or tomorrow the latest. |
@rustbot label -S-waiting-on-author +S-waiting-on-review |
I believe this is ready to be merged. |
@bors r+ |
☀️ Test successful - checks-actions |
fixes #14957 . I have two questions :
crates/ide-assists/src/utils.rs
. SeeFIXME
in that file.DefaultMethods
to something likeinstead of adding a boolean to every function that calls
crates/ide-assists/src/utils.rs::filter_assoc_items