Replies: 1 comment 9 replies
-
Every keystroke. Do not do this. Make an equatable model to at least dampen the impact. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I was to do something like this, when/how often would it trigger?
I want to run the source generator once, since I just want to generate some metadata about the project, so I don't need to inspect the code and inspect SyntaxNodes.
However as part of my generator, I do need access to the
Compilation
object. So I was assuming the CompilationProvider would make the most sense? I have tried CompilationProvider, but my generated classes don't seen to be available in the IDE.If I emit them in the csproj, I can see they get generated on a build, but does that mean they're not available before that?
I need them available to users before they build, like keystroke/syntax node source generators would be.
Beta Was this translation helpful? Give feedback.
All reactions