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

Do all parsing work using InProgressState translation actions in the compilation tracker #72215

Merged
merged 14 commits into from
Feb 24, 2024

Conversation

CyrusNajmabadi
Copy link
Member

@CyrusNajmabadi CyrusNajmabadi commented Feb 21, 2024

Changes our work so that we don't up-front parse all files when transitioning from the null state to the initial inprogressstate. INstead, we just make an inprogressstate with a series of parsing actions within it.

This now cleanly allows us to transition to all files parsed, awhile also ensuring that any frozen snapshots that come along see those parsed documents.

also, we still attempt to do the work to parse all the files concurrently to get the benefits of multi-core.

@CyrusNajmabadi CyrusNajmabadi marked this pull request as ready for review February 23, 2024 04:00
@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner February 23, 2024 04:00
@CyrusNajmabadi
Copy link
Member Author

@ToddGrun @jasonmalinowski ptal

@CyrusNajmabadi CyrusNajmabadi merged commit 855c70d into dotnet:main Feb 24, 2024
25 of 27 checks passed
@CyrusNajmabadi CyrusNajmabadi deleted the nullToInProgress branch February 24, 2024 02:47
// we'll see the results of how far we've gotten if someone asks for a frozen snapshot midway
// through.
var initialProjectState = this.ProjectState.RemoveAllDocuments();
var initialCompilation = this.CreateEmptyCompilation();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var initialCompilation = this.CreateEmptyCompilation();

Looks like this is the same as compilationWithoutGeneratedDocuments

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

Successfully merging this pull request may close these issues.

4 participants