Skip to content

Report execute result for each emitter in compiler #7161

@chunyu3

Description

@chunyu3

When compiling, the compiler will report the execute result for each emitter in log, as following:

Image

In VSCode extension, we want to record the result of each emitter and send telemetry, It is not be able to parse out those information form the log.

Can compiler report the execute result and set it in program as following?

export interface EmitResult {
  emitterName: string;
  result: "fail"|"success"|"skipped";
  error?: string;
}
export interface Program {
   ......
  emits: EmitResult[];
}

vscode extension will use LSP to emit code instead of cmd-line. extension can get those information and send telemetry.

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    compiler:coreIssues for @typespec/compilerdesign:neededA design request has been raised that needs a proposaltriaged:core

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions