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

[compiler] listServices should take in namespace #6247

Open
iscai-msft opened this issue Mar 4, 2025 · 0 comments
Open

[compiler] listServices should take in namespace #6247

iscai-msft opened this issue Mar 4, 2025 · 0 comments
Labels
compiler:core Issues for @typespec/compiler
Milestone

Comments

@iscai-msft
Copy link
Member

Currently, listServices can only be called from a program instance. This doesn't work well if we're doing mutation, because if we want to just mutate the global namespace once, then find all of the services in the program, we aren't able to explicitly tell listServices to iterate over our specific mutated global namespace.

It would be great if listServices could also take in an optional specific namespace, allowing you to find all services associated with a given namespace. This could be a good typekit too as a different implementation way

@iscai-msft iscai-msft added the compiler:core Issues for @typespec/compiler label Mar 4, 2025
@iscai-msft iscai-msft added this to the Backlog milestone Mar 4, 2025
@timotheeguerin timotheeguerin removed their assignment Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:core Issues for @typespec/compiler
Projects
None yet
Development

No branches or pull requests

2 participants