-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EnC support for source-generated files #51526
Conversation
@davidwengier PTAL |
// Given the following assumptions: | ||
// - source generators are deterministic, | ||
// - source documents, metadata references and compilation options have not changed, | ||
// - additional documents have not changed, | ||
// - analyzer config documents have not changed, | ||
// the outputs of source generators will not change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So what's the intent here for project-to-project references? That you're not running? I don't disagree with the decision, I wasn't sure if there were some other cases you have in mind.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean the generator depending on content of other projects to which it gets thru references of the compilation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does the IDE deal with that for other services, like completion?
Builds on top of #51420.
Adds ability to detect changes in files generated by source generators: #50283.
Fixes an issue with merging partial type edits.