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

[Optimization] Specify the path to the generated code when Generate from TypeSpec #5666

Open
xiaohua899 opened this issue Jan 20, 2025 · 0 comments

Comments

@xiaohua899
Copy link

Description:

When Generate from TypeSpec, users cannot specify the path for code generation in the UI interface, and there is no documentation explaining how to change the code generation path in the tspconfig.yaml file.

Repro steps:

  1. Install the typespec extension.
  2. Install @typespec/compiler: npm install -g @typespec/compiler.
  3. Typing >TypeSpec: Generate from TypeSpec and Click the command.
  4. Choose a project.
  5. Select Emitter Type.
  6. Select a language.
  7. Select an emitter for code generation.

Environment:

  • TypeSpec for VS Code extension version: 0.64.0
  • TypeSpec compiler/CLI version: 0.64.0
  • OS: Windows, Linux

Suggestion:

Choose one of the following two suggestions:

  1. After select the emitter type and language, can add a step to interact with the UI interface of select the path for code generation, the default is the project path.
  2. There is a document explaining how to modify the code generation path in the tspconfig.yaml file.

@RodgeFu , @chunyu3 and @msyyc for notification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant