Skip to content

Allow LSP to disable running emitters #7305

Closed
@timotheeguerin

Description

@timotheeguerin

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

Metadata

Metadata

Assignees

Labels

ideIssues for VS, VSCode, Monaco, etc.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions