Combine code generator with code fix #53899
Unanswered
Superheftig
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Considering execution order. It should be achievable, since generated code needs to be contained to obtain a complete semantic model. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wrote a code generator that also creates diagnostics, if the analyzed code is somehow "wrong". I also wrote a code fix for the diagnostic id, but it seems not to be picked up (So i don´t get the suggestion from visual studio). If i write an additional DiagnosticAnalyzer and remove it from the code generator for the error case the code fix works.
Is it not possible to combine a code generator with a code fix?
Beta Was this translation helpful? Give feedback.
All reactions