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

Signature help should use SymbolDisplayMiscellaneousOptions.AllowDefaultLiteral #47552

Merged
merged 4 commits into from
Sep 11, 2020

Conversation

Youssef1313
Copy link
Member

@Youssef1313 Youssef1313 commented Sep 9, 2020

Fixes #47364

@jinujoseph jinujoseph added Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee. labels Sep 9, 2020
@Youssef1313 Youssef1313 marked this pull request as ready for review September 10, 2020 19:35
@Youssef1313 Youssef1313 requested a review from a team as a code owner September 10, 2020 19:35
@Youssef1313
Copy link
Member Author

The test passes locally now. This is ready for review.

@Youssef1313 Youssef1313 requested review from CyrusNajmabadi and removed request for a team September 10, 2020 19:49
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.

LGTM with hte PR feedback taken care of. please ping me when green :)

@@ -53,7 +56,7 @@ protected static SymbolDisplayPart NewLine()
parameter.Name,
parameter.IsOptional,
parameter.GetDocumentationPartsFactory(semanticModel, position, formatter),
parameter.ToMinimalDisplayParts(semanticModel, position));
parameter.ToMinimalDisplayParts(semanticModel, position, s_allowDefaultLiteralFormat));
Copy link
Member

Choose a reason for hiding this comment

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

Does this need to take into account language version, so we don't show default literals to people on C# <7.1? Or do we not worry about that sort of thing? Or does ToMinimalDisplayParts take care of that?

Copy link
Member Author

Choose a reason for hiding this comment

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

@davidwengier I don't know if ToMinimalDisplayParts accounts for language version or not.
Probably @sharwell or @CyrusNajmabadi know?

Copy link
Member

Choose a reason for hiding this comment

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

It doesn't need to account for lang version. How we present info is different from what suggestions we offer, or what code we generate :)

@CyrusNajmabadi CyrusNajmabadi merged commit 98c8f9f into dotnet:master Sep 11, 2020
@ghost ghost added this to the Next milestone Sep 11, 2020
@CyrusNajmabadi
Copy link
Member

Thanks!

@Youssef1313 Youssef1313 deleted the patch-7 branch September 11, 2020 18:18
@dibarbet dibarbet modified the milestones: Next, 16.8.P4 Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Signature help should use SymbolDisplayMiscellaneousOptions.AllowDefaultLiteral
6 participants