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

[tcgc] refine logic to iterate over all user-defined namespaces #2222

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

iscai-msft
Copy link
Contributor

No description provided.

@microsoft-github-policy-service microsoft-github-policy-service bot added the lib:tcgc Issues for @azure-tools/typespec-client-generator-core library label Feb 14, 2025
@azure-sdk
Copy link
Collaborator

azure-sdk commented Feb 14, 2025

All changed packages have been documented.

  • @azure-tools/typespec-client-generator-core
Show changes

@azure-tools/typespec-client-generator-core - fix ✏️

Recurse over namespaces to get all user defined namespaces"

@azure-sdk
Copy link
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 📚 Next docs

namespace?: Namespace,
retval?: Namespace[],
): Namespace[] {
if (!retval) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any way we can use this typekit to filter non user defined namespaces?

https://github.com/microsoft/typespec/blob/main/packages%2Fcompiler%2Fsrc%2Fexperimental%2Ftypekit%2Fkits%2Ftype.ts#L127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lib:tcgc Issues for @azure-tools/typespec-client-generator-core library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants