Skip to content

Move off of a linear walk in solution-explorer symbol tree updates. #78771

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

Merged
merged 10 commits into from
May 30, 2025

Conversation

CyrusNajmabadi
Copy link
Member

Followup to #78754.
Updates our core structure to be a dictionary keyed off of the IVsHierarchyItem's CanonicalName instead.

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner May 30, 2025 19:30
@CyrusNajmabadi CyrusNajmabadi marked this pull request as draft May 30, 2025 19:30
@CyrusNajmabadi CyrusNajmabadi marked this pull request as ready for review May 30, 2025 20:11
@@ -10,6 +10,7 @@
using System.ComponentModel.Composition;
using System.Threading;
using System.Threading.Tasks;
using ICSharpCode.Decompiler.Util;
Copy link
Member

Choose a reason for hiding this comment

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

needed?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes. it's where we get multi-dictionary from that supports removing a particular FilePath-Source pair.

public async Task UpdateIfAffectedAsync(
HashSet<string> updatedFilePaths,
CancellationToken cancellationToken)
public async Task UpdateIfEverExpandedAsync(CancellationToken cancellationToken)
Copy link
Member Author

Choose a reason for hiding this comment

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

A nice part of this is no need to pass "these were the changed files along". we automatically are updating the source for the files that changed directly.

@@ -95,27 +91,10 @@ public async Task UpdateIfAffectedAsync(
}
}

private string? TryGetCanonicalName()
Copy link
Member Author

Choose a reason for hiding this comment

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

made into a local function inside DetermineDocumentId

@CyrusNajmabadi CyrusNajmabadi enabled auto-merge May 30, 2025 21:10
@CyrusNajmabadi CyrusNajmabadi merged commit 8edf1c0 into dotnet:main May 30, 2025
24 of 25 checks passed
@CyrusNajmabadi CyrusNajmabadi deleted the removeProgressionMaps branch May 30, 2025 21:59
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone May 30, 2025
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.

2 participants