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

Always make project changes using the 'batch scope' approach to reduce duplication. #74863

Merged
merged 6 commits into from
Aug 22, 2024

Conversation

CyrusNajmabadi
Copy link
Member

Followup to #74858

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner August 22, 2024 20:00
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Aug 22, 2024
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:

@@ -238,6 +239,8 @@ private void ChangeProjectProperty<T>(
Func<SolutionChangeAccumulator, ProjectUpdateState, T, ProjectUpdateState> updateSolution,
bool logThrowAwayTelemetry = false)
{
using var _ = CreateBatchScope();
Copy link
Member

Choose a reason for hiding this comment

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

Looks like CreateBatchScope takes the semaphore inside. Any benefit of creating a CreateBatchScope_NoLock and moving it inside the gate we already take below?

Copy link
Member Author

Choose a reason for hiding this comment

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

Talked offline. Def an option. Would prefer to see if we actually run into any contention that warrants this.

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