Skip to content
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

Merged
merged 6 commits into from
Mar 1, 2021
Merged

Conversation

tmat
Copy link
Member

@tmat tmat commented Feb 26, 2021

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.

@tmat
Copy link
Member Author

tmat commented Feb 26, 2021

@davidwengier PTAL

@tmat tmat merged commit af7a90f into dotnet:master Mar 1, 2021
@ghost ghost added this to the Next milestone Mar 1, 2021
@tmat tmat deleted the EncSourceGenerators branch March 1, 2021 17:36
Comment on lines +357 to +362
// 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.
Copy link
Member

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.

Copy link
Member Author

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?

Copy link
Member Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants