forked from microsoft/typespec
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[http-client-csharp] the post processor should always keep customized…
… code as root documents (microsoft#5481) Fixes microsoft#5441 Previously in our generator, we have two instances of `GeneratedCodeWorkspace`: one for the project that is being generated right now (the generated code project), one for the existing part of the generated library (the customized code project). This leads to an issue that in the post processor, only the generated documents are passed into the post processor, therefore the post processor actually does not know about the existence of the customized files. This is not very correct because the generated files must need those customized files to work properly therefore they should be in the same project. This PR refactors this part to change the structure of `GeneratedCodeWorkspace`: now we only create one instance of `GeneratedCodeWorkspace`, and the project inside it will be initialized with shared files and all the customized files in it. In this way, when we get to the post processor, it should be able to access all the necessary documents. --------- Co-authored-by: Wei Hu <live1206@gmail.com>
- Loading branch information
1 parent
bcf6aeb
commit 27373e7
Showing
4 changed files
with
54 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters