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

Attribute value initializer of PropertyDirective changes #1758

Merged
merged 6 commits into from
Jan 9, 2024

Conversation

Mylan719
Copy link
Contributor

@Mylan719 Mylan719 commented Jan 4, 2024

Now the initializer of the attribute supports half written values for the VS extension.
The validation before was way too strict and replaced invalid values with empty literal.

@Mylan719 Mylan719 requested a review from exyi January 4, 2024 22:28
@Mylan719 Mylan719 self-assigned this Jan 4, 2024
@Mylan719 Mylan719 requested a review from tomasherceg January 6, 2024 11:36
@Mylan719 Mylan719 force-pushed the attribute-initializer-fix branch from 4963d4c to 07df42b Compare January 6, 2024 16:19
src/Tests/AssertEx.cs Outdated Show resolved Hide resolved
{
var root = ParseSource(@$"
@viewModel object
@property string[] MyProperty=["""",""""], MarkupOptionsAttribute.Required = true, MarkupOptionsAttribute.AllowBinding = false");
Copy link
Member

Choose a reason for hiding this comment

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

You could use the """ string literal to avoid the double-quoting

@Mylan719 Mylan719 requested a review from exyi January 8, 2024 15:47
Copy link
Member

@exyi exyi left a comment

Choose a reason for hiding this comment

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

Yes, it's good to go. I already approved of this yesterday, the comments were just nitpicks :]

@exyi exyi merged commit ce78339 into main Jan 9, 2024
14 checks passed
@exyi exyi deleted the attribute-initializer-fix branch January 9, 2024 10:53
@exyi exyi added this to the Version 4.3 milestone Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants