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

Tiny simplification to the compilation tracker. #57628

Merged
merged 3 commits into from
Nov 9, 2021

Conversation

CyrusNajmabadi
Copy link
Member

No description provided.

// If same language then we can wrap the other project's compilation into a compilation reference
if (this.ProjectState.LanguageServices == fromProject.LanguageServices)
{
// otherwise, base it off the compilation by building it first.
compilation = await this.GetCompilationAsync(solution, cancellationToken).ConfigureAwait(false);
var compilation = await this.GetCompilationAsync(solution, cancellationToken).ConfigureAwait(false);
Copy link
Member Author

Choose a reason for hiding this comment

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

GetCompilationAsync already fastpaths if TryGetCompilation returns a value. So no need for the above fast path

@CyrusNajmabadi CyrusNajmabadi merged commit 9727863 into dotnet:main Nov 9, 2021
@ghost ghost added this to the Next milestone Nov 9, 2021
@allisonchou allisonchou modified the milestones: Next, 17.1.P2 Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants