-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Fix generate type dialog invoked on type argument in a base list #63378
Conversation
Assert.Equal(assertGenerateTypeDialogOptions.IsPublicOnlyAccessibility, generateTypeDialogOptions.IsPublicOnlyAccessibility); | ||
Assert.Equal(assertGenerateTypeDialogOptions.TypeKindOptions, generateTypeDialogOptions.TypeKindOptions); | ||
Assert.Equal(assertGenerateTypeDialogOptions.IsAttribute, generateTypeDialogOptions.IsAttribute); |
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.
This produces better assertion failures.
Can someone review this PR please? Thanks! |
@@ -2309,6 +2309,105 @@ public struct Bar | |||
isNewFile: false, | |||
assertGenerateTypeDialogOptions: new GenerateTypeDialogOptions(false, TypeKindOptions.Class | TypeKindOptions.Structure, false)); | |||
} | |||
|
|||
[Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateType)] |
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.
don't need the trait. should already be on the type.
Thanks! |
Head branch was pushed to by a user without write access
@Youssef1313 do you want to bring this up to main so it can be merged? |
84518b3
to
5743730
Compare
Sure. Let's see if it will turn green. |
@CyrusNajmabadi This is green. |
Thanks! |
Fixes #63280