Azure / Azure/azure-sdk-tools

[tsp-client] Add alternate emitter path information in tsp-client metadata file

Open
#10,966 0 comments 0 reactions 1 assignee Claimed by @catalinaperalta View on GitHub
TypeSpec
Dominant language
C#
Stars
135
Forks
260
Avg merge
3d 2h
Merged PRs (30d)
130

Description

Host the list of emitters and their corresponding paths in the metadata file. Then tsp-client will read this config file first and know which emitters are supported by this repo, then the tool will do the look up in tspconfig.yaml for the first entry that matches an emitter in that list. Giving preference to the list order. So the default emitter would be the first in the list and so on until a match is found in tspconfig.yaml. Per our offline teams chat having 2 emitters for the same language in tspconfig.yaml is wrong and we should be validating against this in the specs repo. We also agreed grabbing the first entry that matches in the tspconfig.yaml file.

> NOTE: The teams chat also noted that at some point in the future we may choose to allow multiple entries for a single language, but we will not track that until it becomes an issue we need to support. Wes' comment related to this: "If we do need to support multiple ones in the future we can have tsp-client iterate and run each matching one found in the tspconfig".

cc @JoshLove-msft @weshaggard

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.