Closed
Description
Action item to help around those kind of issue #7287
Right now if an emitter support dryRun option it will run in the lsp compile step.
Emitters however could potentially be slow and cripple the ide experience.
Ideally we should be handling the compilation in a smartter approach but allowing the user to disable runnning emitters(or choosing select emitters) would at least provide a clean escape hatch.
Currently to work around this you have to make sure to remove the emit
field in your tspconfig.yaml
and probably create a separate one for the emitters you really want to use.
Could be something like that
"typespec.compile.emit": [],
"typespec.compile.emit": ["@typespec/openapi3"]
Or maybe anoither name than emit
that clarify that it doessn't actually emit but just run the emitters in a dry run mode