Skip to content

Conversation

@etvorun
Copy link
Contributor

@etvorun etvorun commented May 7, 2025

Delay loading of CodeRefactoringProvider's till absolutely needed. For example, we do not want to load refactoring provider for AdditonalDocument XAML files unless user is editing such files.

@ghost ghost added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels May 7, 2025
@dotnet-policy-service dotnet-policy-service bot added Community The pull request was submitted by a contributor who is not a Microsoft employee. VSCode labels May 7, 2025
@etvorun etvorun marked this pull request as ready for review May 7, 2025 21:44
@etvorun etvorun requested a review from a team as a code owner May 7, 2025 21:44

foreach (var type in expectedProviderTypes)
{
Assert.Contains(actualProviders, p => p.GetType() == type);
Copy link
Member

Choose a reason for hiding this comment

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

We have an AssertEx.SetEqual() helper for doing set comparisons.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actual set are CodeRefactorerProvider instances. Expected set are the types of those instances.

Copy link
Member

@jasonmalinowski jasonmalinowski May 8, 2025

Choose a reason for hiding this comment

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

You could say AssertEx.SetEqual(expectedProviderTypes, actualProviders.Select(p => p.GetType()) then.

(leave this as is though unless you need to do a follow-up for something else)

@jasonmalinowski jasonmalinowski merged commit b422f78 into dotnet:main May 8, 2025
25 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone May 8, 2025
@RikkiGibson RikkiGibson modified the milestones: Next, 18.0 P1 Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee. 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.

5 participants