microsoft / microsoft/typespec

Add-Debug-Profile needs to handle new emitter changes

Open
#8,967 0 comments 1 reaction 1 assignee Assigned to @Copilot View on GitHub
emitter:client:csharp
Dominant language
Java
Stars
5.9k
Forks
394
Avg merge
1d 23h
Merged PRs (30d)
104

Description

Add-Debug-Profile uses tsp-client to bootstrap the tspCodeModel. This ends up using whatever version of the emitter is specified in the tsp-location.yaml. We should attempt to use the local unbranded emitter so that any local changes are reflected in the tspCodeModel. We should probably use the same approach as the RegenPreview script and possibly just use the code defined there to instead build a local unbranded emitter, then update the azure-sdk-for-net artifacts to reference that local build. Then build a local Azure emitter and update the artifacts to reference that. I think the majority of Add-Debug-Profile impl can be deleted and we can reuse RegenPreview to accomplish the same thing. The end result should be that we have a local tspCodeModel/modified launchSettings that can be used for debugging. The changed artifacts can be `git restored` after the script completes.

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.