-
Notifications
You must be signed in to change notification settings - Fork 76
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
Should ignore client.tsp config in rlc #1896
Should ignore client.tsp config in rlc #1896
Conversation
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.
Left some comments on how we calculate the clients, I don't think we actually need any changes to generator-core.
The other refactorings (moving utils and removing the other test case) look good.
Co-authored-by: Jeff Fisher <xirzec@xirzec.com>
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.
I'm good with this approach, modulo the breaking change concern when a second client is added to a service namespace.
packages/typespec-test/test/healthinsight/generated/typespec-ts/src/parameters.ts
Show resolved
Hide resolved
packages/typespec-test/test/healthinsight/generated/typespec-ts/src/isUnexpected.ts
Show resolved
Hide resolved
packages/typespec-ts/test/integration/generated/mediaTypes/src/clientDefinitions.ts
Show resolved
Hide resolved
packages/typespec-ts/test/integration/generated/overload/src/clientDefinitions.ts
Show resolved
Hide resolved
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.
Looks good to me and I believe this matches the feedback.
@bterlson @witemple-msft @mpodwysocki any concerns with merging this?
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.
LGTM
fixes #1891
And refactored the code in typespec-ts a little to move all utils related file into utils folder.
Also, removed the multiclient test case in the typespec-test folder, giving we have a real case of loadTest in RLC as the multi-client in test case.