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

Change the header of inheritance margin #53964

Merged
merged 12 commits into from
Jun 15, 2021

Conversation

Cosifne
Copy link
Member

@Cosifne Cosifne commented Jun 9, 2021

Fix #53489

Change the title based on the suggestions by @sharwell

Example1:
Before:
image

After:
image

Example2:
Before:
image

After:
image

TOTO:
I might miss some comments and unnecessary code.

@Cosifne Cosifne requested a review from a team June 9, 2021 07:25
Copy link
Member

@CyrusNajmabadi CyrusNajmabadi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoops. hnit approve too fast. i was looking at only a single commit.

@ryzngard
Copy link
Contributor

I like the idea, but the wording seems slightly off to me. Maybe "Implemented Interface/Type Members" ?

@sharwell
Copy link
Member

I like the idea, but the wording seems slightly off to me. Maybe "Implemented Interface/Type Members" ?

Can you clarify which portion you are referring to?

@Cosifne
Copy link
Member Author

Cosifne commented Jun 15, 2021

@ryzngard
Tag you again because I guess Sam's comments get lost in the your radar : )

Also tag @CyrusNajmabadi : )

var overridingSymbols = GetOverridingSymbols(memberSymbol);
// For all implementing symbols, make sure it is in source.
// For example, if the user is viewing IEnumerable from metadata,
// then don't show the derived overriden & implemented types in System.Collections
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was this just to limit size? otherwise, i can see this being nice functionality :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd leave them out for now, but considering adding them back once we can get filter buttons on the bottom of the list like completion has.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense to me. i def coudl see problems having only a combined list for metadata-symbols. some things would have a far too unweildy number of results to display.


builder.AddIfNotNull(item);
if (overridingSymbols.Any() || overriddenSymbols.Any() || implementedSymbols.Any())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if CreateInheritanceMemberItemForClassOrStructMemberAsync already can return a nul value, then consider moving this code into it.

CreateInheritanceItemAsync(solution,
symbol,
InheritanceRelationship.ImplementingType,
cancellationToken), cancellationToken)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation is wonky here. also code is inconsistently wrapped with similar pattern above. i.e. CreateInheritanceItemAsync is not wrapped in teh first form, but is in the second.

CreateInheritanceItemAsync(solution,
symbol,
InheritanceRelationship.DerivedType,
cancellationToken), cancellationToken)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please indent children in from parents. otherwise, they look like siblings :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I might be confused by the inline parameter
image

The text makes me feel the parameters are already indented somehow. 🙁

FYI @akhera99 , this might not meet the bar of a bug, but just let you aware this problem.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. Visually I still see it as not indented because the text starts on the same vertical space. I can see how you got confused though

@ryzngard
Copy link
Contributor

@sharwell @Cosifne I see that the before was what I was looking at before. Updated wording looks good

@Cosifne Cosifne merged commit bac57ff into dotnet:main Jun 15, 2021
@ghost ghost added this to the Next milestone Jun 15, 2021
@Cosifne Cosifne deleted the dev/shech/InheritanceMarginTitleFix branch June 15, 2021 21:20
@RikkiGibson RikkiGibson modified the milestones: Next, 17.0.P2 Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use proper title for inheritance margin
5 participants