Skip to content

[Bug]: Some issues related to the serverGen in VSCode #6634

@lirenhe

Description

@lirenhe

Describe the bug

  • While config server emitters in vscode, the default emitter-output-dir is different from client emitter. Is this expected?
  "@typespec/http-server-csharp":
    emitter-output-dir: "{output-dir}/{emitter-name}"
  "@typespec/http-server-js":
    emitter-output-dir: "{output-dir}/{emitter-name}"
  • The folder structure with the above setting doesn't look right as there are a couple of cs files in the root folder
    I expect all items related to .net will be under http-server-csharp folder
    Image

  • The readme.md file that talked about the next step is a bit confusing. Shall we ask user to run C# scaffolding commands to generate some runnable code so that user could start the server?

  • I have no idea what I shall do with the generated JS server code? Seems there is no document or link that tells me the next step.

Reproduction

  1. In vscode, invoke the command of TypeSpec: emit from TypeSpec
  2. select .NET server and JS server code emitter.
  3. run the emitter.

Checklist

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions