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

Fix generate type dialog invoked on type argument in a base list #63378

Merged
merged 5 commits into from
Oct 30, 2024

Conversation

Youssef1313
Copy link
Member

@Youssef1313 Youssef1313 commented Aug 13, 2022

Fixes #63280

@Youssef1313 Youssef1313 requested a review from a team as a code owner August 13, 2022 06:26
@ghost ghost added the Community The pull request was submitted by a contributor who is not a Microsoft employee. label Aug 13, 2022
Comment on lines +173 to +172
Assert.Equal(assertGenerateTypeDialogOptions.IsPublicOnlyAccessibility, generateTypeDialogOptions.IsPublicOnlyAccessibility);
Assert.Equal(assertGenerateTypeDialogOptions.TypeKindOptions, generateTypeDialogOptions.TypeKindOptions);
Assert.Equal(assertGenerateTypeDialogOptions.IsAttribute, generateTypeDialogOptions.IsAttribute);
Copy link
Member Author

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.

@Youssef1313
Copy link
Member Author

Can someone review this PR please? Thanks!

@jmarolf jmarolf self-assigned this Sep 19, 2022
@@ -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)]
Copy link
Member

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.

@CyrusNajmabadi
Copy link
Member

Thanks!

auto-merge was automatically disabled November 10, 2022 21:30

Head branch was pushed to by a user without write access

@CyrusNajmabadi
Copy link
Member

@Youssef1313 do you want to bring this up to main so it can be merged?

@CyrusNajmabadi CyrusNajmabadi marked this pull request as draft October 25, 2024 04:22
@Youssef1313
Copy link
Member Author

Sure. Let's see if it will turn green.

@Youssef1313 Youssef1313 marked this pull request as ready for review October 28, 2024 15:33
@Youssef1313
Copy link
Member Author

@CyrusNajmabadi This is green.

@CyrusNajmabadi CyrusNajmabadi merged commit a26b144 into dotnet:main Oct 30, 2024
25 checks passed
@CyrusNajmabadi
Copy link
Member

Thanks!

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. VSCode
Projects
None yet
4 participants