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

Expose initScaffolding via an internals export #6333

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

Conversation

timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Mar 8, 2025

In theory a better approach would probably move the init logic to a new package but I think this would require quite a refactor of our compiler to extract a lot of the utils.

Refactor a little bit to split compiler host from just a filesystem host which non compile operation should depend on.

So this is a cheap solution that is only meant for our own use case for now.

@microsoft-github-policy-service microsoft-github-policy-service bot added the compiler:core Issues for @typespec/compiler label Mar 8, 2025
@azure-sdk
Copy link
Collaborator

azure-sdk commented Mar 8, 2025

All changed packages have been documented.

  • @typespec/bundler
  • @typespec/compiler
Show changes

@typespec/bundler - internal ✏️

@typespec/compiler - internal ✏️

Expose initScaffolding via an internals export

Copy link
Member Author

Choose a reason for hiding this comment

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

the reason for splitting this file is that it depends on teh diagnostcs which then start loading too many things that don't work well in the bundled vscode extension.

There is some refactoring that we need to do so boundaries are better.

@azure-sdk
Copy link
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

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

Successfully merging this pull request may close these issues.

2 participants