-
Notifications
You must be signed in to change notification settings - Fork 337
Defer customization filtering in EnsureBuilt to allow visitor transformations #9665
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
Merged
+85
−4
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… method suppression Co-authored-by: ArthurMa1978 <20514459+ArthurMa1978@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix bug in CreateOrUpdate method parameter merging
Fix IsNameMatch to compare generic type arguments when matching custom methods
Feb 10, 2026
…ansformations Co-authored-by: ArthurMa1978 <20514459+ArthurMa1978@users.noreply.github.com>
Copilot
AI
changed the title
Fix IsNameMatch to compare generic type arguments when matching custom methods
Defer customization filtering in EnsureBuilt to allow visitor transformations
Feb 10, 2026
...tp-client-csharp/generator/Microsoft.TypeSpec.Generator/test/TestHelpers/TestTypeProvider.cs
Outdated
Show resolved
Hide resolved
…modifying TestTypeProvider Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>
.../http-client-csharp/generator/Microsoft.TypeSpec.Generator/test/OutputLibraryVisitorTests.cs
Outdated
Show resolved
Hide resolved
…ntion Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>
...ages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/src/Providers/TypeProvider.cs
Show resolved
Hide resolved
JoshLove-msft
approved these changes
Feb 10, 2026
jorgerangel-msft
approved these changes
Feb 10, 2026
Contributor
|
@copilot sync from main |
Contributor
Author
Done — merged from main with no conflicts. Commit: 54f5d77 |
JoshLove-msft
approved these changes
Feb 11, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
EnsureBuilt(), butEnsureBuilt()triggersMethodslazy init which applies customization filtering prematurely, removing methods before visitors can transform themEnsureBuilt()to build members without applying customization filtering, deferring it toCSharpGen.ExecuteAsyncafter visitors runMethodIsNotFilteredWhenVisitorChangesSignaturethat verifies a method matching custom code is preserved throughEnsureBuilt()so visitors can transform itMethodsOverridefromTestTypeProviderand replaced with a localMutableMethodsTypeProviderclass private to the test fileMethods_toMethodProvidersfollowing existing convention fromClientCustomizationTests💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.