-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[dotnet] Fix name collisions for commands/responses/eventargs #15193
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
[dotnet] Fix name collisions for commands/responses/eventargs #15193
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|
It fixes warnings like: We still need add types from domains. |
|
And this is an issue. We have the same name for |
|
Do you plan to do this in this PR, or a following one? |


User description
Proper source generated json context
Motivation and Context
Road for devtools json context
Types of changes
Checklist
PR Type
Bug fix, Enhancement
Description
Added snake_case type names to avoid name collisions.
Updated JSON serialization attributes with snake_case type names.
Removed unused NuGet configuration file.
Enhanced code generation for commands, responses, and events.
Changes walkthrough 📝
CommandInfo.cs
Add snake_case properties to CommandInfo classthird_party/dotnet/devtools/src/generator/CodeGen/CommandInfo.cs
FullSnakeTypeNameproperty for snake_case type names.FullSnakeResponseTypeNameproperty for snake_case response typenames.
EventInfo.cs
Add snake_case property to EventInfo classthird_party/dotnet/devtools/src/generator/CodeGen/EventInfo.cs
FullSnakeTypeNameproperty for snake_case type names.DevToolsSessionDomains.hbs
Update JSON serialization attributes in templatesthird_party/dotnet/devtools/src/generator/Templates/DevToolsSessionDomains.hbs
NuGet.Config
Remove unused NuGet configuration filethird_party/dotnet/devtools/NuGet.Config