Skip to content

Conversation

@CyrusNajmabadi
Copy link
Member

No description provided.

@ghost ghost added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Feb 14, 2025
@CyrusNajmabadi CyrusNajmabadi marked this pull request as ready for review February 14, 2025 17:49
@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner February 14, 2025 17:49
@CyrusNajmabadi
Copy link
Member Author

@ToddGrun ptal

// a subset of that call so that we don't accidentally reuse results that would not correspond to
// what we are computing ourselves.
if (_projectToForceAnalysisData.TryGetValue(project, out var box) &&
var checksum = await project.GetDependentChecksumAsync(cancellationToken).ConfigureAwait(false);
Copy link
Contributor

Choose a reason for hiding this comment

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

var checksum = await project.GetDependentChecksumAsync(cancellationToken).ConfigureAwait(false);

Not sure of the expense of this, but if would it make sense to have this only done if the TryGetValue succeeds?

Copy link
Member Author

Choose a reason for hiding this comment

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

so, if TryGet fails, we need this data to compute and cache. If it succeed, we need it to compare with the cached value. So we always need it.

Copy link
Contributor

@ToddGrun ToddGrun left a comment

Choose a reason for hiding this comment

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

:shipit:

@CyrusNajmabadi CyrusNajmabadi merged commit 250126c into dotnet:main Feb 14, 2025
25 checks passed
@CyrusNajmabadi CyrusNajmabadi deleted the diagProjectStateFull2 branch February 14, 2025 20:36
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead VSCode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants